← Agent Tools Directory / MCP servers

x402-mcp MCP server

Exposes x402-paid APIs discovered from Coinbase Bazaar, handling USDC micropayments on Base.

Category: Developer Tools · Source: x402node/x402-mcp

Install in Claude Code

claude mcp add x402-mcp -e X402_PRIVATE_KEY=YOUR_VALUE -- npx -y x402node-mcp

Install in Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "x402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "x402node-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "0xYOUR_BASE_PRIVATE_KEY"
      }
    }
  }
}

Install in VS Code (Copilot agent mode)

Add to .vscode/mcp.json:

{
  "servers": {
    "x402-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "x402node-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "0xYOUR_BASE_PRIVATE_KEY"
      }
    }
  }
}

The same mcpServers block works in Claude Desktop (claude_desktop_config.json), Windsurf and most other MCP clients.

Required environment variables

Values shown as placeholders in the README; get them from the provider. Never commit them to git.

Config taken from the project README. Check the repository for the latest options before running third-party code.

Similar MCP servers (Developer Tools)