HomeFinance › x402 Micro Tollgate

x402 Micro Tollgate

x402 HTTP 402 + MCP paywall: charge USDC per agent call. Self-host via npx or Docker.

TypeScript CloudLocal macOSWindowsLinux
★ 0 stars Last pushed 2026-09-05 License: MIT

Topics: Finance & Fintech

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 0.3.3)

npx -y x402-micro-tollgate@0.3.3

Or add to your MCP client config:

{
  "mcpServers": {
    "x402-micro-tollgate": {
      "command": "npx",
      "args": [
        "-y",
        "x402-micro-tollgate@0.3.3"
      ],
      "env": {
        "CDP_API_KEY_ID": "<YOUR_VALUE>",
        "CDP_API_KEY_SECRET": "<YOUR_VALUE>",
        "X402_PAY_TO": "<YOUR_VALUE>",
        "UPSTREAM_URL": "<YOUR_VALUE>",
        "PRICE": "<YOUR_VALUE>",
        "NETWORK": "<YOUR_VALUE>",
        "X402_ENVIRONMENT": "<YOUR_VALUE>"
      }
    }
  }
}
  • CDP_API_KEY_ID secret — Coinbase CDP API key ID for the x402 facilitator
  • CDP_API_KEY_SECRET secret — Coinbase CDP API key secret for the x402 facilitator
  • X402_PAY_TO — EVM address that receives USDC settlements
  • UPSTREAM_URL — Upstream HTTP API to proxy after payment (omit for built-in mock)
  • PRICE — Dollar price per paid call, e.g. $0.001
  • NETWORK — CAIP-2 network id (eip155:84532 Base Sepolia or eip155:8453 Base)
  • X402_ENVIRONMENT — development or production

This server takes extra arguments — see its repository.

Related servers

Listed in punkpeye/awesome-mcp-servers (MIT)

Data from the Official MCP Registry