x402 HTTP 402 + MCP paywall: charge USDC per agent call. Self-host via npx or Docker.
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
CDP_API_KEY_IDOptional, secret | Coinbase CDP API key ID for the x402 facilitator |
CDP_API_KEY_SECRETOptional, secret | Coinbase CDP API key secret for the x402 facilitator |
X402_PAY_TOOptional | EVM address that receives USDC settlements |
UPSTREAM_URLOptional | Upstream HTTP API to proxy after payment (omit for built-in mock) |
PRICEOptional | Dollar price per paid call, e.g. $0.001 |
NETWORKOptional | CAIP-2 network id (eip155:84532 Base Sepolia or eip155:8453 Base) |
X402_ENVIRONMENTOptional | development or production |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 3 Sep 2026 |
| Last updated | 3 Sep 2026 |
| Registry name | io.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.
