x402 Micro Tollgate

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

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "x402-micro-tollgate": {
      "command": "npx",
      "args": [
        "-y",
        "x402-micro-tollgate@0.3.3"
      ],
      "env": {
        "CDP_API_KEY_ID": "<your CDP_API_KEY_ID>",
        "CDP_API_KEY_SECRET": "<your CDP_API_KEY_SECRET>",
        "PRICE": "$0.001",
        "NETWORK": "eip155:84532",
        "X402_ENVIRONMENT": "development"
      }
    }
  }
}
Environment variables
  • CDP_API_KEY_IDsecretCoinbase CDP API key ID for the x402 facilitator
  • CDP_API_KEY_SECRETsecretCoinbase CDP API key secret for the x402 facilitator
  • PRICEDollar price per paid call, e.g. $0.001
  • NETWORKCAIP-2 network id (eip155:84532 Base Sepolia or eip155:8453 Base)
  • X402_ENVIRONMENTdevelopment or production

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.3.3
Registry
active
Published
9/3/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that x402 Micro Tollgate is listed here — it’s also the link we check for a free listing.

x402 Micro Tollgate — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-kevin2003050666-coder-x402-micro-tollgate?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="x402 Micro Tollgate — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![x402 Micro Tollgate — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-kevin2003050666-coder-x402-micro-tollgate?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.