x402-trust-mcp MCP Server
Discover x402 endpoints and check their trust score before your agent pays them.
x402-trust-mcp scores 67 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 15 tools. Filed under Finance. GitHub shows 1 stars. Package registries report about 182 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
75/100 for listing completeness. Lost points: 15 of 15 tools barely described, short summary.
How quality is graded
Where the 67 comes from
22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jonasfuchss-x402-trust-mcp": { "command": "npx", "args": [ "-y", "x402-trust-mcp@1.16.0" ], "env": { "X402_PRIVATE_KEY": "YOUR_X402_PRIVATE_KEY", "X402_MAX_USD": "0.05", "X402_MAX_TOTAL_USD": "1.00", "X402_MAX_CALLS": "1000", "X402_TRUST_API_BASE": "https://x402-trust.com", "X402_TIMEOUT_MS": "20000" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
X402_PRIVATE_KEYSecret | Optional | Optional Base wallet private key (with or without the 0x prefix). When set, the paid tools auto-pay over x402 up to X402_MAX_USD; otherwise they return a price quote. The free tools need no key. |
X402_MAX_USD | Optional | Per-call auto-pay ceiling in USD. 0 disables auto-pay. |
X402_MAX_TOTAL_USD | Optional | Cumulative auto-pay cap per process in USD. 0 = unlimited. |
X402_MAX_CALLS | Optional | Max paid calls per process. 0 = unlimited. |
X402_TRUST_API_BASE | Optional | API base URL. |
X402_TIMEOUT_MS | Optional | Request timeout in milliseconds. |
Tools15Tool docs quality grade F
All capabilitiesfree
paid
paid
x402_searchtoolfree
free
x402_trust_bulktoolpaid
free
free
x402_trust_scoretoolpaid
free
free
paid
About
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 |
|---|---|---|
x402_ecosystem_stats | free | Snapshot of the whole x402 ecosystem: endpoint counts, reachability, and real USDC settlement volume over 30 days. |
x402_trust_leaderboard | free | Top-100 ranking of the most trustworthy x402 hosts, scored by their whole measured surface. Page with offset. |
x402_verified_providers | free | Hosts that proved domain control and confirmed a contact email. Informational only, verification never changes the score. |
x402_search | free | Substring search over host, URL and service name across the catalog. |
x402_semantic_search | free | Meaning-based search: describe the capability you need in plain words. Discovery only, no verdicts. |
x402_trust_preview | free | Three complete trust reports (best, median, worst) exactly as x402_trust_score returns them. |
x402_trust_score | paid | The full trust verdict for one endpoint: score 0-100, grade, recommendation, price, and flags. Unknown endpoints get live-probed on the spot. |
x402_endpoint_history | paid | Raw probe and event history for one endpoint over 1-90 days. |
x402_find_alternatives | paid | Semantically similar endpoints that out-score a given one. Empty result means nothing beats it. |
x402_trust_bulk | paid | Score up to 500 endpoints in one call; the cheapest fitting tier (10/50/100/200/500) is picked automatically. |
x402_watch_create | 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. |
x402_watch_events | free | Poll a watch's event log with watch id and secret, paging by the returned cursors. |
x402_watch_edit | free | Change a watch's webhook URLs, sensitivity or subscribed events. |
x402_watch_cancel | free | Stop a watch now; its log stays readable until expiry. |
x402_watch_renew | 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.
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 |
|---|---|---|
X402_TRUST_API_BASE | https://x402-trust.com | API base URL. |
X402_PRIVATE_KEY | (unset) | Base wallet private key. Enables auto-pay for paid tools. A set-but-malformed key logs a warning and leaves auto-pay off. |
X402_MAX_USD | 0.05 | Per-call auto-pay ceiling. 0 disables auto-pay. |
X402_MAX_TOTAL_USD | 1.00 | Cumulative auto-pay cap per process. 0 = unlimited. |
X402_MAX_CALLS | 1000 | Max paid calls per process. 0 = unlimited. |
X402_TIMEOUT_MS | 20000 | Request timeout. |
X402_BASE_RPC_URL | public Base RPCs | Endpoint for the pre-signing USDC balance check (free eth_call; defaults to the public Base mainnet/Sepolia RPCs). |
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 needed
The 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
Frequently asked questions
What is x402-trust-mcp MCP Server?
Discover x402 endpoints and check their trust score before your agent pays them.
How do I install x402-trust-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. x402-trust-mcp MCP Server runs locally from the npm package x402-trust-mcp with the command npx -y x402-trust-mcp@1.16.0.
Is x402-trust-mcp MCP Server free and open source?
Yes. x402-trust-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does x402-trust-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for x402-trust-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does x402-trust-mcp MCP Server provide?
x402-trust-mcp MCP Server provides 15 tools, including x402_ecosystem_stats, x402_endpoint_history, x402_find_alternatives, and x402_search. See the full tool list for descriptions and parameters.
How is x402-trust-mcp MCP Server's trust score calculated?
x402-trust-mcp MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.