Skip to content
Cursor

p402 for Cursor

io.github.z333q/p402

Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.

client:Cursor transport:stdio runtime:npm

Install p402 in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "p402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@p402/mcp-server"
      ],
      "env": {
        "P402_API_KEY": "<P402_API_KEY>",
        "P402_ROUTER_URL": "<P402_ROUTER_URL>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

p402 in other clients