X402 Service Discovery

Created By
rplryan2 months ago
The missing discovery layer for x402. AI agents can pay for services autonomously via HTTP 402 — but first they need to find them. This MCP server provides 5 tools to discover, rank, and verify x402 payment-gated APIs by capability, price, ERC-8004 trust score, and facilitator compatibility. Live services, live updates. USDC on Base mainnet.
Overview

x402 Service Discovery MCP Server

The community-built Bazaar for the x402 agentic economy — 251+ live services, real-time quality signals, facilitator-compatibility checks, and ERC-8004 trust scoring. The discovery layer that Coinbase's own PROJECT-IDEAS.md asked the community to build.

MCP Registry Smithery Score API Status Services Indexed mcp.so Glama License: MIT

Claude calling x402_discover and getting live results


What This Is (30 seconds)

x402 is Coinbase's HTTP-native micropayment standard for the agentic web. An AI agent hits an endpoint, gets an HTTP 402 challenge, pays with USDC on Base, and receives data — no API keys, no subscriptions, pure machine-to-machine.

The problem: 251+ x402-payable services exist across the ecosystem. The official x402.org catalog lists names. That's it. No uptime data. No latency scores. No facilitator-compatibility flags. No trust signals. An agent has no way to know which services are actually live, trustworthy, or compatible with its payment flow.

This MCP server solves it. Connect any Claude, Cursor, or Windsurf agent directly to the x402 Service Discovery API — a continuously-updated catalog with real quality signals on every entry. Find services, check health, verify facilitator compatibility, and register new endpoints — all from inside your AI workflow.


MCP Tools (5 tools)

ToolWhat It DoesCost
x402_discoverSemantic search across 251+ services by keyword, category, max price$0.005 USDC (pays via x402 — eats its own dogfood)
x402_health_checkReal-time uptime + latency check for any service URLFree
x402_registerRegister a new x402 service into the live catalogFree
x402_trustERC-8004 trust score and reputation signals for a serviceFree
x402_facilitator_checkVerify facilitator compatibility before committing to a paymentFree

Quickstart — 30 Seconds to Discovery

Add to your claude_desktop_config.json, Cursor MCP settings, or Windsurf config:

{
  "mcpServers": {
    "x402-discovery": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "ghcr.io/rplryan/x402-discovery-mcp:latest"]
    }
  }
}

Option B: npx (no Docker required)

{
  "mcpServers": {
    "x402-discovery": {
      "command": "npx",
      "args": ["-y", "@rplryan/x402-discovery-mcp"]
    }
  }
}

Option C: Direct API

The Discovery API is publicly accessible — no authentication required:

# Search for services
curl "https://x402-discovery-api.onrender.com/discover?query=blockchain+analytics&max_price_usd=0.01"

# Full catalog
curl "https://x402-discovery-api.onrender.com/.well-known/x402-discovery"

Why This Matters

The Discovery Gap in x402

The x402 protocol solves payment. It does not solve discovery. When 251+ services exist but agents can't find, evaluate, or route to them intelligently, the protocol's full value is unrealized.

This project fills that gap with three layers:

  1. Discovery — Find x402 services by capability, category, price ceiling
  2. Quality signals — Uptime %, latency (ms), facilitator compatibility, ERC-8004 trust score
  3. Routing intelligence — Companion x402 RouteNet selects the optimal service from discovery results

What Makes This Different from x402.org/ecosystem

Capabilityx402.org/ecosystemThis Project
Service listings✅ Names + URLs✅ Full metadata
Uptime monitoring❌ None✅ Live health checks
Latency data❌ None✅ Per-service ms scores
Facilitator compatibility❌ None✅ Per-service flag
ERC-8004 trust signals❌ None✅ Reputation scoring
Agent-native usage prompts❌ Nonellm_usage_prompt per service
Auto-updated catalog❌ Manual✅ Scans every 6 hours
MCP integration❌ None✅ 5 tools, registry-published
Semantic search❌ None✅ Keyword + category + price

Live Catalog Stats

Total Services:      251+
Auto-scan interval:  6 hours
Scan sources:        x402.org/ecosystem, awesome-x402, x402scan.com
Categories:          data, compute, agent, utility
Facilitator-compat:  Flagged per service
Trust signals:       ERC-8004 per service
API uptime:          Live at https://x402-discovery-api.onrender.com

Catalog Sample

CategoryCountNotable Services
data23+CoinGecko, Einstein AI, DJD Agent Score, Ordiscan, Nansen, Zapper, AdEx AURA
utility20+dTelecom STT, Pinata, Tip.MD, Cybercentry, Trusta Attestation, AsterPay
compute10+BlockRun.AI, X402Engine (28 APIs), AurraCloud, AiMo, QuickSilver
agent9+Questflow, Ubounty, Bitte Protocol, Farnsworth, SerenaI

Example: Agent Workflow

# 1. Agent needs blockchain analytics under $0.01
result = x402_discover(
    query="blockchain analytics whale tracking",
    max_price_usd=0.01,
    category="data"
)
# Returns: ranked list with price, uptime %, latency, llm_usage_prompt

# 2. Verify the top result is facilitator-compatible before paying
compat = x402_facilitator_check(url=result[0]["url"])
# Returns: {facilitator_compatible: true, payment_details: {...}}

# 3. Check live health before committing
health = x402_health_check(url=result[0]["url"])
# Returns: {status: "healthy", latency_ms: 142, uptime_pct: 99.1}

# 4. Now pay via x402 — agent proceeds with confidence

This is EIP-712 signed TransferWithAuthorization via the x402 HTTP protocol — not direct ERC-20 transfer. The signature is verified server-side; on-chain settlement via receiveWithAuthorization is the next tier.


CDP Builder Grant Context

This project is a direct implementation of two items from Coinbase's own public roadmap:

From PROJECT-IDEAS.md in coinbase/x402:

"Dynamic Endpoint Shopper — An agent that discovers an MCP registry, pays for access, chains results from multiple services"

From the CDP x402 facilitator roadmap:

"A discovery layer for buyers (human and agents) to find available services (Bazaar)"

We built the community Bazaar. It's live. It has 251+ services. It has quality signals the official page doesn't. And it uses x402 payments itselfx402_discover costs $0.005 USDC, paid via the protocol it serves.

What We've Shipped (11 days)

DeliverableStatus
x402 Service Discovery API v3.3.0✅ Live on Render
x402 Discovery MCP Server✅ Docker + GitHub MCP Registry
x402 RouteNet v1.0.0 (smart routing)✅ Live on Render
x402 Payment Harness v1.0.0 (EOA testing)✅ PyPI pip install x402-payment-harness
251+ services indexed with quality signals✅ Auto-updating every 6h
ERC-8004 trust layer✅ Per-service trust scoring
Facilitator compatibility layer✅ Pre-payment compatibility check
Full HTTP 402 protocol flow proven on Base✅ EIP-712 sign → X-PAYMENT header → 200
Smithery score✅ 100/100
GitHub MCP Registry✅ Published: io.github.rplryan/x402-discovery-mcp

ProjectDescriptionStatus
x402 Discovery APIREST backend powering this MCP serverLive v3.3.0
x402 RouteNetSmart routing across discovered servicesLive v1.0.0
x402 Payment HarnessEOA-based Python library + CLI for x402 payment testingPyPI v1.0.0

Register Your Service

If you're building an x402-enabled service, add it to the catalog:

curl -X POST https://x402-discovery-api.onrender.com/register \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Service",
    "url": "https://myservice.example.com/api",
    "price_usd": 0.005,
    "category": "data",
    "description": "What your service does",
    "network": "base-mainnet"
  }'

Or use the x402_register MCP tool from inside Claude/Cursor/Windsurf.


Architecture

┌─────────────────────────────────────────────────────┐
│              AI Agent (Claude / Cursor / Windsurf)  │
│                                                     │
│  x402_discover → x402_health_check → x402_trust     │
│  x402_facilitator_check → x402_register             │
└───────────────────┬─────────────────────────────────┘
                    │ MCP (stdio/Docker)
┌───────────────────▼─────────────────────────────────┐
│          x402 Discovery MCP Server                  │
│          ghcr.io/rplryan/x402-discovery-mcp         │
└───────────────────┬─────────────────────────────────┘
                    │ HTTPS
┌───────────────────▼─────────────────────────────────┐
│     x402 Discovery API (Render, v3.3.0)             │
│     https://x402-discovery-api.onrender.com         │
│                                                     │
│  • 251+ services  • Auto-scan every 6h              │
│  • Health checks  • Facilitator compat flags        │
│  • ERC-8004 trust • llm_usage_prompt per service    │
└─────────────────────────────────────────────────────┘

💬 Community

Built something with x402 Service Discovery? Found a service that should be in the catalog? Share it in our Show and Tell discussion thread.

Join the discussion


License

MIT


Built on Coinbase x402 protocol | Base Network | ERC-8004 | Model Context Protocol

Server Config

{
  "mcpServers": {
    "x402-discovery": {
      "type": "streamable-http",
      "url": "https://x402-discovery-api.onrender.com/mcp"
    }
  }
}
Project Info
Created At
2 months ago
Updated At
2 months ago
Author Name
rplryan
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Socialcrawl Mcp
@Ridio

`socialcrawl-mcp` is an MCP server that connects AI agents to the [SocialCrawl API](https://socialcrawl.dev) — a unified social media data API covering 21 platforms and 108 endpoints. Retrieve profiles, posts, comments, search results, trending content, and analytics from TikTok, Instagram, YouTube, Twitter/X, LinkedIn, Reddit, and 15 more platforms. One API key, one consistent response format, every platform. **What the MCP server does:** - Discovers available platforms and endpoints dynamically - Fetches live social media data on your behalf - Validates requests locally before making API calls (saves credits) - Provides built-in API documentation the agent can query on demand ## Installation ### Claude Code (quickest) ```bash claude mcp add --scope user socialcrawl -- npx -y socialcrawl-mcp ``` Then set your API key: ```bash claude mcp add-env socialcrawl SOCIALCRAWL_API_KEY sc_your_key_here ``` ### Claude Desktop Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows): ## Setup ### 1. Get your API key Sign up at [socialcrawl.dev](https://socialcrawl.dev) and grab your API key from the dashboard. Every account starts with **100 free credits** — no credit card required. ### 2. Add the key to your config Replace `sc_your_key_here` in the installation config above with your actual API key (starts with `sc_`). > [!TIP] > You can also set `SOCIALCRAWL_API_KEY` as a system environment variable instead of putting it in the MCP config. The discovery and documentation tools work even without a key — only actual API requests need one. ## Usage Ask your AI agent in natural language. The MCP server handles the rest.

7 hours ago