Skip to content
VS Code

x402 mcp for VS Code

io.github.carboncashmere/x402-mcp

177 crypto market intel endpoints with auto x402 USDC micropayments from your AI agent

client:VS Code transport:stdio runtime:npm

Install x402 mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "evm-private-key",
      "description": "EVM_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "svm-private-key",
      "description": "SVM_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "x402-tool-limit",
      "description": "X402_TOOL_LIMIT",
      "password": true
    }
  ],
  "servers": {
    "x402-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@carbon-cashmere/x402-mcp"
      ],
      "env": {
        "EVM_PRIVATE_KEY": "${input:evm-private-key}",
        "SVM_PRIVATE_KEY": "${input:svm-private-key}",
        "X402_TOOL_LIMIT": "${input:x402-tool-limit}"
      }
    }
  }
}

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