Kopachelli x402 API Fleet

v0.4.1
io.github.Kopachelli/x402-mcp Checked 1 day ago Published 2 days ago

Paid data APIs (weather, finance, geo, AI) via USDC x402 micropayments.

Values you need

VariableWhat it is
X402_PRIVATE_KEYoptional secret x402 private key (0x...) used to pay for API calls in USDC. If unset, the server runs in discovery mode and only lists endpoints/prices.
X402_NETWORKoptional CAIP-2 network to pay on. One of eip155:8453 (Base), eip155:137 (Polygon), eip155:42161 (Arbitrum), eip155:480 (World Chain). Default: eip155:8453

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add x402-mcp -- npx -y @kopachelli/x402-mcp@0.4.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "x402-mcp": {
      "args": [
        "-y",
        "@kopachelli/x402-mcp@0.4.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-mcp": {
      "args": [
        "-y",
        "@kopachelli/x402-mcp@0.4.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "x402-mcp": {
      "args": [
        "-y",
        "@kopachelli/x402-mcp@0.4.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.x402-mcp]
command = "npx"
args = ["-y", "@kopachelli/x402-mcp@0.4.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: x402_catalog, x402_call.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json