P402 MCP Server
by z333qio.github.Z333Q/p402v1.0.0
Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install P402 MCP server
Install in Claude Code
claude mcp add p402 -e P402_API_KEY='<p402-api-key>' -- npx -y @p402/mcp-serverInstall in Cursor
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<p402-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<p402-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"p402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<p402-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<p402-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| P402_API_KEY | yes | yes | Your P402 API key. Get one at https://p402.io/dashboard/settings |
| P402_ROUTER_URL | — | — | P402 router base URL override. Defaults to https://p402.io |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-04 · 4mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-03-17 · 7mo ago · official registry · v1.0.0
FAQ
›How do I install the P402 MCP server in Claude Code?
Run: claude mcp add p402 -e P402_API_KEY='<p402-api-key>' -- npx -y @p402/mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does P402 require an API key?
Yes. It expects P402_API_KEY, of which 1 is a secret.
›Can I use P402 as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is P402 in the official MCP registry?
Yes, as io.github.Z333Q/p402.