Skip to content
VS Code

mcp x402 for VS Code

io.github.codespar/mcp-x402

MCP server for x402 — HTTP-native micropayments protocol by Coinbase (USDC on Base/Solana)

client:VS Code transport:stdio runtime:npm

Install mcp x402 in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "x402-api-key",
      "description": "X402_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "mcp-x402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-x402"
      ],
      "env": {
        "X402_API_KEY": "${input:x402-api-key}"
      }
    }
  }
}

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

mcp x402 in other clients