x402-gateway-mcp
Provides access to npm download trends for core x402 packages.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x402-gateway-mcpwhat's the current USD price of Bitcoin?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
x402-gateway-mcp
The live x402 market feed for agents. The x402_market_pulse tool is
FREE — no wallet, no payment, no signup: the x402 ecosystem in one snapshot,
refreshed ~3x/day — service listings by category with week-over-week deltas,
newly listed services, npm download trends for the core x402 packages,
protocol release tags, and per-source reliability grades. Every metric
carries a freshness stamp; a stale source says so instead of pretending.
Behind the feed: every x402-gateway data
endpoint as an MCP tool that pays for calls with your wallet (USDC on
Base, x402 protocol) — crypto prices, DEX pools, gas, FX, Treasury yields,
US weather, WHOIS, DNS, email validation, web-to-markdown extraction, token
risk scores, $1 domain dossiers, and more. Tool list is fetched from the
gateway's /.well-known/x402.json at startup — new gateway endpoints appear
automatically, and every response is cryptographically signed
(verify).
⚠️ Funded-wallet warning:
WALLET_PRIVATE_KEYsigns real payments. Use a dedicated wallet holding only small balances (a few dollars of USDC). Never your main wallet. The key is read from env, never logged, and payment headers are never echoed into agent-visible output.
5-minute setup (Claude Desktop / Claude Code)
Create a fresh wallet and fund it with a small amount of USDC on Base (or Base Sepolia test USDC from https://faucet.circle.com while testing).
npm install -g x402-gateway-mcp(or usenpx).Add to your MCP config (Claude Desktop
claude_desktop_config.json, orclaude mcp addfor Claude Code):
{
"mcpServers": {
"x402-gateway": {
"command": "npx",
"args": ["-y", "x402-gateway-mcp"],
"env": {
"GATEWAY_URL": "https://<your-gateway-host>",
"WALLET_PRIVATE_KEY": "0x<small-balance-wallet-key>",
"MAX_PER_CALL_USD": "0.25",
"MAX_SESSION_USD": "2.00"
}
}
}
}Restart the client. The free
x402_market_pulsetool works immediately (no wallet needed); every paid tool description states its price, e.g.[costs $0.005 USDC per call] Get the current USD price of a cryptocurrency…
Related MCP server: fabler-x402-tools
Spend guardrails
MAX_PER_CALL_USD(default 0.25): tools priced above this are refused. Note: the gateway's premium/report/domaindossier costs $1.00 — setMAX_PER_CALL_USD=1.25to enable it; the default deliberately keeps premium tools opt-in.MAX_SESSION_USD(default 2.00): cumulative settled spend per server session; calls that would exceed it are refused with a clear message the agent can relay. Restart the server to reset.
Refusals happen before any payment is signed.
Env reference
Var | Default | Purpose |
|
| Gateway base URL (override for local/testnet) |
| — | Buyer key (small balance!). Without it, tools list but calls fail with a clear error |
|
| Per-call cap |
|
| Per-session cap |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceEnables micropayments for MCP tool invocations using the X402 payment protocol, allowing servers to charge per tool usage in USDC and clients to automatically handle payments.104

fabler-x402-toolsofficial
Alicense-qualityBmaintenanceEnables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.MIT- Alicense-qualityBmaintenanceEnables MCP tools to be gated behind per-call USDC micropayments with direct on-chain verification and settlement, removing the need for third-party payment facilitators.MIT
- FlicenseAqualityBmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7
Related MCP Connectors
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Pay for HTTP APIs and charge for your own: x402 micropayments in USDC on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Marysbrain/x402-gateway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server