x402 Discovery & Trust MCP
Discover x402 endpoints and audit their trust (scores, history, alternatives, monitoring) before paying them — free discovery tools plus paid, per-call trust lookups over x402 USDC.
Explore the ecosystem for free: snapshot stats (counts, reachability, 30-day USDC volume), top-100 trust leaderboard, verified providers, keyword search (
x402_search) and meaning-based semantic search.Preview verdicts:
x402_trust_previewreturns three full sample trust reports (best/median/worst) with no arguments.Score endpoints (paid): get a full 0–100 trust verdict with grade, recommendation, price and flags for any endpoint; unknown URLs are live-probed.
Inspect history (paid): raw probe/event history over 1–90 days (price/payTo changes, failures, latency).
Find better options (paid): semantically similar endpoints that out-score the one you're considering.
Bulk scoring (paid): score up to 500 URLs in one call with automatic cheapest-tier selection.
Monitor endpoints (paid create/renew): 30-day watches alerting on price/payTo changes, delisting, spec regressions, downtime or flapping via polling or signed webhooks.
Manage watches (free): poll event logs with cursors, edit webhook URLs/sensitivity/events, or cancel.
Payments: paid tools cost $0.005–~$0.50 in USDC on Base; auto-pay via
X402_PRIVATE_KEYwith per-call/total/call-count caps, or receive an in-band x402 quote.Verify responses: results carry Ed25519 signatures over JCS-canonicalized payloads (pin the key, don't trust it from the response).
x402-trust-mcp
An MCP server for discovering x402 endpoints and checking their trust before paying them: semantic and keyword search across the monitored catalog, plus trust scores, history, bulk scoring, and watches for any endpoint.
Backed by x402-trust.com, which monitors the x402 ecosystem on Base and Solana 24/7: uptime probes, 402-envelope spec compliance, price history, and real on-chain USDC settlement volume per endpoint. Every score is computed deterministically, no LLM involved, so the breakdown is fully auditable.
Tools
Tool | Cost | Description |
| free | Snapshot of the whole x402 ecosystem: endpoint counts, reachability, and real USDC settlement volume over 30 days. |
| free | Top-100 ranking of the most trustworthy x402 hosts, scored by their whole measured surface. Page with |
| free | Hosts that proved domain control and confirmed a contact email. Informational only, verification never changes the score. |
| free | Substring search over host, URL and service name across the catalog. |
| free | Meaning-based search: describe the capability you need in plain words. Discovery only, no verdicts. |
| free | Three complete trust reports (best, median, worst) exactly as |
| paid | The full trust verdict for one endpoint: score 0-100, grade, recommendation, price, and flags. Unknown endpoints get live-probed on the spot. |
| paid | Raw probe and event history for one endpoint over 1-90 days. |
| paid | Semantically similar endpoints that out-score a given one. Empty result means nothing beats it. |
| paid | Score up to 500 endpoints in one call; the cheapest fitting tier (10/50/100/200/500) is picked automatically. |
| paid | 30-day monitor for one endpoint: alerts on payTo or price changes, delisting, spec regressions and downtime, via polling or webhooks. Returns a one-time secret. |
| free | Poll a watch's event log with watch id and secret, paging by the returned cursors. |
| free | Change a watch's webhook URLs, sensitivity or subscribed events. |
| free | Stop a watch now; its log stays readable until expiry. |
| paid | Add another 30 days to an active watch. Same secret. |
Paid tools cost from $0.005 (single lookup) to ~$0.50 (500-endpoint
bulk), charged over x402 (USDC on Base). With X402_PRIVATE_KEY set the server
auto-pays within your limits; otherwise it returns the price quote for your
host to pay. List tools page with limit (max 25) + offset and return a
total.
Field-level documentation, verdict semantics, watch cursor rules and webhook signature details live at x402-trust.com/llms.txt; every response is self-describing via its schema at x402-trust.com/schemas.
Related MCP server: x402-mcp
Install
Add to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"x402-trust": {
"command": "npx",
"args": ["-y", "x402-trust-mcp"]
}
}
}To enable autonomous payment for the paid tools, add a funded Base USDC wallet:
{
"mcpServers": {
"x402-trust": {
"command": "npx",
"args": ["-y", "x402-trust-mcp"],
"env": {
"X402_PRIVATE_KEY": "0xYOUR_BASE_WALLET_KEY",
"X402_MAX_USD": "0.05"
}
}
}
}Hosted MCP endpoint (no install)
You can connect to a stateless Streamable HTTP endpoint instead of running the npm package:
Endpoint:
POST https://x402-trust.com/mcp(Streamable HTTP, stateless)Manifest:
https://x402-trust.com/mcp.json
Same 15 tools, limits and response signatures as the stdio package. The free
tools need no authentication. A paid tool answers the call with an in-band x402
quote (the accepts list); pay it and retry the same call with the
PAYMENT-SIGNATURE header. The hosted endpoint never pays for you (auto-pay
with X402_PRIVATE_KEY is a client-side feature of the stdio package) and it
does not forward your Authorization header anywhere.
Configuration (env vars)
Var | Default | Description |
|
| API base URL. |
| (unset) | Base wallet private key. Enables auto-pay for paid tools. A set-but-malformed key logs a warning and leaves auto-pay off. |
|
| Per-call auto-pay ceiling. 0 disables auto-pay. |
|
| Cumulative auto-pay cap per process. 0 = unlimited. |
|
| Max paid calls per process. 0 = unlimited. |
|
| Request timeout. |
| public Base RPCs | Endpoint for the pre-signing USDC balance check (free |
The free tools work with no configuration at all.
Security
X402_PRIVATE_KEY is a hot wallet: fund it with only what you are willing to
spend on trust lookups. The key never leaves your machine; it signs EIP-3009
payment authorizations locally, after policy checks: chain allow-list (Base
mainnet by default), canonical USDC contract verification, and the spend and
call-count caps above. Before every payment the client re-reads the wallet's
USDC balance: a wallet that cannot cover the quote is refused locally, before
anything is signed, so an empty wallet never produces failed settlement
attempts, and a top-up takes effect on the very next call.
Response signatures
Signed tool results carry a top-level signature block: an Ed25519 signature
over the JCS-canonicalized (RFC 8785) response. It proves the content was
assembled by x402-trust and not modified afterwards.
One rule matters when verifying: pin the trust anchor, never follow it from
the response. signature.publicKeys is a discovery hint; a forged response
would point at the attacker's own key document and still verify. Pin the public
key itself or fetch https://x402-trust.com/.well-known/x402-trust-keys.json
once at bootstrap and cache it. A worked test vector and a 20-line reference
verifier live at x402-trust.com/schemas.
Watch management responses are unsigned by design: they carry capability
secrets that must never be forwarded as evidence.
Development
Requires Node.js >= 22.12 (the test runner's floor; the published package itself still runs on Node >= 20).
npm install
npm run build # tsc → dist/ (+ chmod on dist/server.js)
npm test # vitest, no network and no database neededThe tool schemas (src/tool-spec.ts) are shared with the hosted endpoint, so
a zod major bump changes the tools/list JSON schema both distributions emit.
Regenerate both from the same zod version; details of the zod 3 → 4 wire drift
are in the commit history.
License
MIT
Available Tools
15 toolsx402_ecosystem_statsx402 Trust ecosystem statsA
Snapshot of the whole x402 ecosystem: endpoint counts, reachability, and real USDC settlement volume over 30 days. Use it to gauge market health.
Inputs: no named parameters.
x402_endpoint_historyx402 Trust endpoint observation historyA
Raw probe and event history for one endpoint over 1-90 days: price and payTo changes, failures, latencies, plus a summary. Excluded probes never count as downtime.
Inputs: resource (required), days.
x402_find_alternativesFind better-scored alternatives to an x402 endpointA
Finds semantically similar endpoints that out-score a given one. Empty result means nothing beats it.
Inputs: resource (required), limit, minScoreDelta.
x402_searchKeyword search over the x402 catalogA
Substring search over host, URL and service name across the catalog. For meaning-based search use x402_semantic_search instead.
Inputs: query (required), limit, offset.
x402_semantic_searchSemantic search over the x402 catalogB
Meaning-based search across the catalog: describe the capability you need in plain words. Discovery only, no verdicts.
Inputs: query (required), limit.
x402_trust_bulkx402 Trust bulk scoringA
Score up to 500 endpoints in one call; the cheapest fitting tier is picked automatically. Unknown URLs come back found:false, the batch is charged either way.
Inputs: resources (required), tier.
x402_trust_leaderboardx402 Trust leaderboardA
Top-100 ranking of the most trustworthy x402 hosts, scored by their whole measured surface. Page with offset, then use x402_search to list a host's endpoints.
Inputs: limit, offset.
x402_trust_previewx402 Trust preview: full sample reportsA
Sample pack: three complete trust reports (best, median, worst) exactly as x402_trust_score returns them. Takes no arguments.
Inputs: no named parameters.
x402_trust_scorex402 Trust score for an endpointB
The full trust verdict for one x402 endpoint: score 0-100, grade, recommendation (proceed, caution, avoid, ...), price, and flags. Unknown endpoints get live-probed on the spot.
Inputs: resource (required).
x402_verified_providersx402 Trust verified providersA
List of hosts that proved domain control and confirmed a contact email. Verification is informational only, it never changes the score.
Inputs: limit, offset.
x402_watch_cancelx402 Trust watch: cancel earlyA
Stop a watch now; its log stays readable until expiry. Idempotent.
Inputs: secret (required), watch_id (required).
x402_watch_createx402 Trust watch: create 30-day endpoint monitorB
30-day monitor for one endpoint with alerts on payTo or price changes, delisting, spec regressions and downtime, via polling or webhooks. Returns a one-time secret, keep it.
Inputs: endpoint (required), events, slack_url, webhook_url, +1 more.
x402_watch_editx402 Trust watch: edit delivery URLs, sensitivity or eventsA
Change a watch's webhook URLs, sensitivity or subscribed events. New URLs are tested first; failures leave the old config untouched.
Inputs: secret (required), watch_id (required), events, slack_url, +2 more.
x402_watch_eventsx402 Trust watch: poll event logA
Poll a watch's event log with watch_id and secret, paging by the returned cursors. Nothing between polls is lost.
Inputs: secret (required), watch_id (required), since, watch_since.
x402_watch_renewx402 Trust watch: renew 30 daysB
Add another 30 days to an active watch. Same secret.
Inputs: watch_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools target clearly different actions (search vs semantic search, single vs bulk vs preview trust scoring, distinct watch lifecycle operations). A few families—trust_score/trust_bulk/trust_preview and search/semantic_search—could be momentarily confused, but descriptions explicitly cross-reference and differentiate them.
All tools consistently use snake_case with an x402_ prefix, grouped by feature (x402_trust_*, x402_watch_*). Minor deviation: some names are noun-first (x402_endpoint_history, x402_ecosystem_stats) while others are verb-first (x402_search, x402_find_alternatives), but the pattern remains predictable.
15 tools is at the upper end of the well-scoped range but each earns its place across discovery, trust scoring, and watch monitoring. No redundant tools and no filler.
Core discovery and trust coverage is strong: substring/semantic search, single/bulk/preview scoring, leaderboard, stats, history, and alternatives. The main gap is watch management lacking a list/get operation, so an agent cannot enumerate existing watches without saved watch_ids.
Maintenance
Related MCP Connectors
Pre-spend trust for AI agents that buy: check x402 services and product listings before paying.
x402 payment security and pre-execution transaction risk screening for autonomous AI agents.
Verify x402 payment endpoints before an AI agent pays: scam scan, on-chain checks, trust scores.
Pre-payment checks for AI agents: x402 quotes, untrusted prompts and audit receipts.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to access paid content by integrating cryptocurrency payments through the x402 protocol, allowing LLMs to verify payments and retrieve paid resources automatically.1-
- AlicenseCqualityCmaintenanceMCP server bringing 100+ x402-paid APIs to AI agents (Claude, Cursor, MCP-aware clients). Auto-discovers tools from CDP Bazaar; handles USDC micropayments on Base.10058 npm1MIT
- AlicenseAqualityCmaintenanceTrust layer for AI agents: 22 pay-per-call x402 tools for scam and fraud checks, payment pre-flight, wallet screening, policy approvals, contact extraction and company research. Free preview with no wallet; paid calls settle in USDC on Base.2369 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to pay x402 endpoints on Cardano through a policy-gated wallet with spend caps, payee allowlists, human approval, and an audit log.45 npmApache 2.0