p402
About
Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
P402_API_KEY P402_ROUTER_URLClaude Code
claude mcp add --env P402_API_KEY= --env P402_ROUTER_URL= p402 -- npx @p402/mcp-server
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"p402","command":"npx","args":["@p402/mcp-server"],"env":{"P402_API_KEY":"","P402_ROUTER_URL":""}}'
JSON
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "",
"P402_ROUTER_URL": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.