Skip to main content

x402 Micro Tollgate

io.github.kevin2003050666-coder/x402-micro-tollgate

v0.3.3Updated Sep 3, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add x402-micro-tollgate -e 'PRICE=$0.001' -e NETWORK=eip155:84532 -e X402_ENVIRONMENT=development -- npx -y [email protected]

The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.

Configuration

7 settings.

  • CDP_API_KEY_ID
    Env var· optional· secret
    Coinbase CDP API key ID for the x402 facilitator
  • CDP_API_KEY_SECRET
    Env var· optional· secret
    Coinbase CDP API key secret for the x402 facilitator
  • X402_PAY_TO
    Env var· optional
    EVM address that receives USDC settlements
  • UPSTREAM_URL
    Env var· optional
    Upstream HTTP API to proxy after payment (omit for built-in mock)
  • PRICE
    Env var· optional
    Dollar price per paid call, e.g. $0.001Default: $0.001
  • NETWORK
    Env var· optional
    CAIP-2 network id (eip155:84532 Base Sepolia or eip155:8453 Base)Default: eip155:84532
Show 1 more
  • X402_ENVIRONMENT
    Env var· optional
    development or productionDefault: development

Listed in the official MCP Registry since Sep 3, 2026. Mirrored daily; last checked Nov 26, 2026.