Skip to content
Cursor

x402 Micro Tollgate for Cursor

io.github.kevin2003050666-coder/x402-micro-tollgate

x402 HTTP 402 + MCP paywall: charge USDC per agent call. Self-host via npx or Docker.

client:Cursor transport:stdio runtime:npm

Install x402 Micro Tollgate 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": {
    "x402-micro-tollgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-micro-tollgate"
      ],
      "env": {
        "CDP_API_KEY_ID": "<CDP_API_KEY_ID>",
        "CDP_API_KEY_SECRET": "<CDP_API_KEY_SECRET>",
        "X402_PAY_TO": "<X402_PAY_TO>",
        "UPSTREAM_URL": "<UPSTREAM_URL>",
        "PRICE": "<PRICE>",
        "NETWORK": "<NETWORK>",
        "X402_ENVIRONMENT": "<X402_ENVIRONMENT>"
      }
    }
  }
}

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

x402 Micro Tollgate in other clients