Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.
Connect Runs on your machine
claude mcp add p402 -e P402_API_KEY=<P402_API_KEY> -e P402_ROUTER_URL=<P402_ROUTER_URL> -- npx -y @p402/[email protected]
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/[email protected]"
],
"env": {
"P402_API_KEY": "<P402_API_KEY>",
"P402_ROUTER_URL": "<P402_ROUTER_URL>"
}
}
}
}
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/[email protected]"
],
"env": {
"P402_API_KEY": "<P402_API_KEY>",
"P402_ROUTER_URL": "<P402_ROUTER_URL>"
}
}
}
}
{
"servers": {
"p402": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@p402/[email protected]"
],
"env": {
"P402_API_KEY": "<P402_API_KEY>",
"P402_ROUTER_URL": "<P402_ROUTER_URL>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
P402_API_KEYRequired, secret | Your P402 API key. Get one at https://p402.io/dashboard/settings |
P402_ROUTER_URLOptional | P402 router base URL override. Defaults to https://p402.io |
Details
| Package | @p402/[email protected] (NPM, stdio) |
| First published | 17 Mar 2026 |
| Last updated | 17 Mar 2026 |
| Registry name | io.github.Z333Q/p402 |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
