Skip to content
AgentPay402 MCP
Install guide · Cursor

Install AgentPay402 MCP for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "kato9292929-x402-wallet-mcp": {      "command": "npx",      "args": [        "-y",        "agentpay402-mcp@0.4.0"      ],      "env": {        "WALLET_PROVIDER": "none",        "CDP_API_KEY_ID": "YOUR_CDP_API_KEY_ID",        "CDP_API_KEY_SECRET": "YOUR_CDP_API_KEY_SECRET",        "CDP_WALLET_SECRET": "YOUR_CDP_WALLET_SECRET",        "PRIVY_APP_ID": "YOUR_PRIVY_APP_ID",        "PRIVY_APP_SECRET": "YOUR_PRIVY_APP_SECRET",        "PRIVY_WALLET_ID": "YOUR_PRIVY_WALLET_ID",        "CROSSMINT_SERVER_API_KEY": "YOUR_CROSSMINT_SERVER_API_KEY",        "CROSSMINT_SIGNER_SECRET": "YOUR_CROSSMINT_SIGNER_SECRET",        "CROSSMINT_WALLET_ADDRESS": "YOUR_CROSSMINT_WALLET_ADDRESS",        "NVM_API_KEY": "YOUR_NVM_API_KEY",        "X402_NETWORK": "testnet",        "X402_PER_CALL_MAX_USD": "0.10",        "X402_PER_SESSION_MAX_USD": "1.00",        "X402_ALLOWED_HOSTS": "",        "X402_PROBE_MODE": "block",        "X402_PRICE_MISMATCH": "warn",        "X402_RETRY_WITH_RECEIPT": "true",        "X402_REPORT_TO_PROBE": "false"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json