p402 for Claude Desktop
io.github.z333q/p402
Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.
client:Claude Desktop
transport:stdio
runtime:npm
Install p402 in Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json · windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"p402": {
"command": "npx",
"args": [
"-y",
"@p402/mcp-server"
],
"env": {
"P402_API_KEY": "<P402_API_KEY>",
"P402_ROUTER_URL": "<P402_ROUTER_URL>"
}
}
}
}
Settings → Developer → Edit Config opens this file. Restart the app after saving. Claude Desktop docs