x402 Trust Scores
x402-trust-mcp
An MCP server that lets your agent check the trust & reliability of x402 endpoints before paying them.
Backed by x402.fuchss.app, which monitors the entire x402 ecosystem on Base 24/7: uptime probes, 402-envelope spec compliance, advertised-price history, and real on-chain USDC settlement volume per endpoint.
Why
Agents increasingly pay x402 endpoints autonomously. But ~⅔ of listed x402 endpoints are unreachable and ~⅓ of the reachable ones serve non-compliant payment envelopes. Before your agent sends USDC to an unknown endpoint, ask: is it alive, compliant, and does anyone actually pay it?
Related MCP server: Thoughtproof-mcp
Tools
Tool | Cost | Description |
| free | Aggregate state of the x402 ecosystem (listings, reachability, compliance, 30d settlement volume). |
| free | Top-25 most trustworthy x402 endpoints. |
| free | Showcase of what |
| paid | Trust score (0-100, grade A-F) for a specific endpoint, plus a machine-readable pay/don't-pay verdict, the advertised price, a confidence band, and structured flags — everything to decide in one call. |
| paid | Observation time-series for a specific endpoint (listings, price changes, probes). |
Paid tools cost a few tenths of a cent, charged over x402 (USDC on Base). If you
set X402_PRIVATE_KEY, the server auto-pays within your X402_MAX_USD
limit; otherwise it returns the price quote for your host to pay.
x402_trust_score result
A single call returns everything an agent needs to decide whether and at what price to use an endpoint — no second round-trip, no raw-unit guessing:
Field | Meaning |
| 0-100 point score and its A-F grade. |
| Machine verdict: |
|
|
| Overall confidence plus its parts: |
| The score cutoffs for each grade, so the verdict is auditable. |
| The last observed 402 quote: |
| Legacy string flags plus structured |
| The full deterministic math (uptime, compliance, latency, age, activity, stability → technical / spec / economic subscores). |
| Observed evidence: probe counts, latency, payTo, |
Everything is computed deterministically (no LLM) from continuous on-chain and probe observation, so the breakdown is fully auditable.
x402 V2 Payment Flow
This MCP server uses the canonical x402 V2 payment flow:
402 +
PAYMENT-REQUIRED— The server responds with HTTP 402 and a base64-encodedPAYMENT-REQUIREDheader containing the payment requirements (accepts, network, asset, amount, payTo).Sign + retry with
PAYMENT-SIGNATURE— The MCP client signs an EIP-3009transferWithAuthorizationfor the selected accept and re-POSTs with thePAYMENT-SIGNATUREheader (base64-encoded payment payload).Settlement +
PAYMENT-RESPONSE— The server settles the payment and responds with the data plus aPAYMENT-RESPONSEheader.
Legacy X-PAYMENT / X-PAYMENT-RESPONSE headers are accepted as a fallback
during the V1→V2 transition period but are not the default.
Accept selection: When a 402 response offers multiple accepts (e.g. Solana
Base USDC), the client selects the best compatible one (canonical USDC on an allow-listed chain) rather than blindly taking the first accept.
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"
}
}
}
}Configuration (env vars)
Var | Default | Description |
|
| API base URL. |
| (unset) | Base wallet private key. Enables auto-pay for paid tools. Accepted with or without the |
|
| 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. |
The free tools work with no configuration at all.
Security
X402_PRIVATE_KEY is a hot wallet — fund it with only what you're willing to
spend on trust lookups. The key never leaves your machine; it signs EIP-3009
payment authorizations locally.
Policy checks enforced before signing:
Chain allow-list (Base mainnet by default)
Canonical USDC contract verification (no arbitrary tokens)
Optional payTo allow-list
Per-call spend ceiling (
X402_MAX_USD)Cumulative spend cap (
X402_MAX_TOTAL_USD)Call-count cap (
X402_MAX_CALLS)
License
MIT
Maintenance
Latest Blog Posts
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/JonasFuchss/x402-trust-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server