
x402 Router
io.github.camerxnduffPublished by GitHub account camerxnduffv0.1.0Updated Nov 1, 2026
Search 20k+ live, probed x402 pay-per-call endpoints and route to the best-scored one.
The publisher's own server: 370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
Overview
Read-only MCP server that searches a probed registry of live x402 pay-per-call endpoints and routes an agent to the best-scored one.
- What you can do
- Search the live x402 endpoint registry by query, chain, category, price and score
- Route a request to the best-scored endpoint, with a free top-3 preview
- Read registry statistics and counts by chain, category and source
- Retrieve the payment requirements for a paid route
- Optionally, with a funded wallet configured, run paid tools that return a full ranked list or a fresh live probe of one endpoint
- When to use it
- Useful when an agent needs to call x402 pay-per-call APIs and you want it to pick a working, reasonably priced endpoint instead of guessing among thousands of often dead or misconfigured ones.
- Requirements
- Runs locally over stdio, via uvx, Docker or a Python source install; it calls a hosted router service, so network access is needed. Optional environment variables X402_ROUTER_URL and X402_DASHBOARD_URL override the service URLs. Paid tools additionally need the pay extra, X402_EVM_PRIVATE_KEY and optionally X402_MAX_PAYMENT_USD.
Installation
In SourceWeft
- Open x402 Router in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
x402 Router: MCP server + free API to find and pay the right x402 endpoint
[MCP] [x402] [Chains] [USDC] [License: MIT] [Docker build]
20,700+ LIVE x402 pay-per-call endpoints across 3,100+ services, probed every 3 hours and scored 0-100 for reliability. Agents don't need to know which x402 API is up. Ask the router.
Keywords: x402, MCP, MCP server, AI agents, agent payments, pay-per-call APIs, USDC, Base, Solana, x402 discovery, x402 router, x402 registry, HTTP 402.
- Live router: https://router-production-ab89.up.railway.app (OpenAPI: /openapi.json · x402 discovery: /.well-known/x402 · health: /health)
- Dashboard / registry: https://router-production-ab89.up.railway.app/dashboard
- For LLMs: https://router-production-ab89.up.railway.app/dashboardllms.txt
Quick start (MCP, 30 seconds)
The server is read-only: it holds no keys and never pays. It exposes four tools:
search_x402_endpoints, route_x402_request, get_registry_stats, get_paid_route_requirements.
Option A: uvx (no clone, no PyPI needed)
Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):
Option B: Docker
Or build it yourself: docker build -t x402-router-mcp . and use x402-router-mcp as the image name.
Option C: from source
Streamable HTTP: python server.py --http 8000 serves http://localhost:8000/mcp.
Env overrides: X402_ROUTER_URL, X402_DASHBOARD_URL.
Try it with no install (curl)
Why
Thousands of x402 endpoints exist, and many are dead, misconfigured or slow. The router probes every one, checks that its 402 body is valid (version, scheme, network, payTo, asset, amount), and ranks by uptime and latency, so an agent gets a working endpoint with a known price.
HTTP API
Examples: examples/ (curl, Python, TypeScript).
MCP tools
Paid tools pay inside the tool call. To enable them:
Without a key, the paid tools return the price and the x402 payment requirements instead of paying.
Payments
x402 v2: Base USDC first, Solana USDC as fallback, settled through the PayAI facilitator.
License
MIT
Source: README.md at commit e0f015b
Tools
0Version history
1- v0.1.0LatestOct 25, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Router integrations
370.ai — AI Gateway: 100+ Chat Models, Image & Speech Generation
ai.routerOfficial publisher
Remote AI gateway MCP server that lets an assistant call 100+ chat models, generate images, and convert text to speech through one 370.ai API key.

AI Media Router
Published by GitHub account jutsuhq
Local MCP server that generates images and videos through 40+ providers using your own API keys, with price comparison and a searchable local asset library.

Bike Router
Published by GitHub account JonasHeinickeBio
MCP bridge to a self-hosted pyBikeRouter API that plans OSM-based bike routes with weather, sights and GeoJSON/GPX exports.

Uniswap Universal Router Decoder
Published by GitHub account Elnaril
Local MCP server that decodes and encodes Uniswap Universal Router calldata for V2, V3 and V4 swaps, read-only and never signing or sending.

GenPark Consistent Hash Ring Router
Published by GitHub account alphaparkinc
A local MCP server providing a consistent hashing ring with virtual nodes, for routing distributed LLM caches and partitioning agents.