Skip to content
VS Code

x402 mcp for VS Code

io.github.x402node/x402-mcp

Hundreds of x402-paid APIs as MCP tools, auto-discovered from Coinbase Bazaar. USDC on Base+Solana.

client:VS Code transport:stdio runtime:npm

Install x402 mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "x402-private-key",
      "description": "X402_PRIVATE_KEY",
      "password": true
    }
  ],
  "servers": {
    "x402-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402node-mcp"
      ],
      "env": {
        "X402_PRIVATE_KEY": "${input:x402-private-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

x402 mcp in other clients