Skip to content
Cursor

x402 Universal Payer for Cursor

io.github.nirholas/x402-bridge

Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.

client:Cursor transport:stdio runtime:npm

Install x402 Universal Payer 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-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "<MCP_BRIDGE_EVM_PRIVATE_KEY>",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "<MCP_BRIDGE_SVM_PRIVATE_KEY>",
        "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "<MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC>",
        "MCP_BRIDGE_MAX_TOTAL_ATOMIC": "<MCP_BRIDGE_MAX_TOTAL_ATOMIC>",
        "MCP_BRIDGE_ALLOWED_PAYTO": "<MCP_BRIDGE_ALLOWED_PAYTO>",
        "MCP_BRIDGE_ALLOWED_HOSTS": "<MCP_BRIDGE_ALLOWED_HOSTS>",
        "MCP_BRIDGE_ALLOW_HTTP": "<MCP_BRIDGE_ALLOW_HTTP>",
        "MCP_BRIDGE_DISCOVER_LIMIT": "<MCP_BRIDGE_DISCOVER_LIMIT>",
        "MCP_BRIDGE_BAZAAR_URL": "<MCP_BRIDGE_BAZAAR_URL>",
        "MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "<MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER>",
        "MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "<MCP_BRIDGE_MAX_DEPOSIT_ATOMIC>",
        "X402_MCP_BRIDGE_CHANNELS_DIR": "<X402_MCP_BRIDGE_CHANNELS_DIR>",
        "RPC_URL_8453": "<RPC_URL_8453>"
      }
    }
  }
}

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

x402 Universal Payer in other clients