NestDaddy

x402 Micro Tollgate

io.github.kevin2003050666-coder/x402-micro-tollgate ยท v0.3.3

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

Connect Runs on your machine

Terminal
claude mcp add x402-micro-tollgate -e CDP_API_KEY_ID=<CDP_API_KEY_ID> -e CDP_API_KEY_SECRET=<CDP_API_KEY_SECRET> -e X402_PAY_TO=<X402_PAY_TO> -e UPSTREAM_URL=<UPSTREAM_URL> -e PRICE=<PRICE> -e NETWORK=<NETWORK> -e X402_ENVIRONMENT=<X402_ENVIRONMENT> -- npx -y [email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "x402-micro-tollgate": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CDP_API_KEY_ID": "<CDP_API_KEY_ID>",
        "CDP_API_KEY_SECRET": "<CDP_API_KEY_SECRET>",
        "X402_PAY_TO": "<X402_PAY_TO>",
        "UPSTREAM_URL": "<UPSTREAM_URL>",
        "PRICE": "<PRICE>",
        "NETWORK": "<NETWORK>",
        "X402_ENVIRONMENT": "<X402_ENVIRONMENT>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "x402-micro-tollgate": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CDP_API_KEY_ID": "<CDP_API_KEY_ID>",
        "CDP_API_KEY_SECRET": "<CDP_API_KEY_SECRET>",
        "X402_PAY_TO": "<X402_PAY_TO>",
        "UPSTREAM_URL": "<UPSTREAM_URL>",
        "PRICE": "<PRICE>",
        "NETWORK": "<NETWORK>",
        "X402_ENVIRONMENT": "<X402_ENVIRONMENT>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "x402-micro-tollgate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "CDP_API_KEY_ID": "<CDP_API_KEY_ID>",
        "CDP_API_KEY_SECRET": "<CDP_API_KEY_SECRET>",
        "X402_PAY_TO": "<X402_PAY_TO>",
        "UPSTREAM_URL": "<UPSTREAM_URL>",
        "PRICE": "<PRICE>",
        "NETWORK": "<NETWORK>",
        "X402_ENVIRONMENT": "<X402_ENVIRONMENT>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

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

Details

Package[email protected] (NPM, stdio)
First published3 Sep 2026
Last updated3 Sep 2026
Registry nameio.github.kevin2003050666-coder/x402-micro-tollgate

More cloud and devops servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.