x402reputation

Developer guide

x402reputation is an automatic trust and reputation service for x402 paid endpoints. Get a free score and severe-warning flag, or buy a delayed, redacted detail report for $0.25 in Base mainnet USDC via x402 v2.

Connect an MCP client

Score is free. Detail costs $0.25 (250000 atomic units) via x402 v2 with the exact scheme, Base mainnet (eip155:8453), USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 120s quote lifetime. Get explicit operator approval and confirm the budget before paying. Never send private keys or invent amounts.

GET /v1/score?url=…
Free score and warning
GET /v1/detail?url=…
x402 v2 quote and detail report
POST https://api.x402reputation.com/mcp
JSON-RPC tools for agents

Claude Code

claude mcp add --transport http x402reputation https://api.x402reputation.com/mcp

mcp.json

{"mcpServers":{"x402reputation":{"url":"https://api.x402reputation.com/mcp"}}}

Copy-paste prompts

Check a seller before paying any x402 endpoint

Before payment, call GET https://api.x402reputation.com/v1/score?url=... with the encoded seller URL, or call MCP score with {url}. Report the score and severe_warning. Stop on not_x402, mcp_free, unreachable or severe_warning. Ask before proceeding when detection is unknown or x402_likely. On ambiguous, present candidates and ask which to check. Get explicit user approval for the $0.25 detail report in Base mainnet USDC. Send only a signed x402 v2 payload via PAYMENT-SIGNATURE (base64) or params._meta["x402/payment"] (object). Never pass private keys.

Add the x402reputation MCP server

Configure x402reputation at https://api.x402reputation.com/mcp. For Cursor, add this to .cursor/mcp.json: {"mcpServers":{"x402reputation":{"url":"https://api.x402reputation.com/mcp"}}}. For Claude Code, run claude mcp add --transport http x402reputation https://api.x402reputation.com/mcp. Call tools/list, then smoke-test score with {"url":"https://api.example.com/endpoint"}. Do not call paid detail.

Add a pre-pay reputation check to an x402 buyer agent

Call the free score check at https://api.x402reputation.com/v1/score?url=... (or MCP score) before paying any x402 endpoint. Stop on not_x402, mcp_free, unreachable, severe_warning or a numeric score below a configurable floor. Ask the operator on not_tested or unknown, and present candidates on ambiguity. Do not call detail or seller routes automatically.

Score and detection

Check the free score first. Stop on not_x402, mcp_free or unreachable. If detection is unknown or x402_likely, ask the operator before proceeding. If ambiguous is true, present candidates and ask which endpoint to check.

Read the top-level score (0–100, not_tested for insufficient evidence, unknown for a stale score, or null for ambiguity) and severe_warning. An exact URL or a single template match reports the specific route’s status. A whole-service lookup, such as a sibling-collapsed root or a domain that resolves to a service root, uses the calls-weighted mean of currently numeric routes. Any active severe warning on a route propagates to the service-wide roll-up. For services with at least two catalogued templates, the service object shows that roll-up alongside the headline (canonical, pay_to, templates, tested, score, severe_warning). Use resolution (confidence, reason, signals), canonical and template to identify what was scored.

When a catalogued receiving address changes, the new seller starts with fresh score history. The previous seller’s evidence stays attached to the previous address. Score and detail return payee_changed and previous_pay_to while the new score is nonnumeric or for the first 30 days after the change. The notice appears in resolution.reason.

Unpaid MCP detection checks safe read-only tools. Detection x402 confirms a payment requirement and returns up to five accepts entries (scheme, network, asset, amount, payTo) and pay_to when there is a single receiving address. Detection mcp_free means the sampled tools succeeded unpaid and the tool list showed no payment hints. Detection unknown means the check could not confirm either outcome. HTTP probes can also report not_x402 or unreachable. Detection x402_likely means the lookup found partial evidence. The resolution reason explains it, and evidenceRank identifies the strongest signal in this order: (1) HTTP 402 hints, (2) MCP metadata, (3) an unpaid MCP call signaling payment, (4) a discovery listing, (5) indexed USDC transfers to an advertised payTo.

HTTP routes

GET https://api.x402reputation.com/v1/score?url=... — Required URL or domain, optional wallet address via wallet or X-Caller-Wallet. Returns query, canonical, template, resolution, ambiguous, pay_to, score and severe_warning. Optional fields include detection, accepts, evidenceRank, query_detection, payee_changed, previous_pay_to, catalogued_url, candidates (url, why, optional lookup_url, pay_to or severe_warning), and service.

GET https://api.x402reputation.com/v1/detail?url=... — Required endpoint URL. Returns 404 for an uncatalogued endpoint, 409 for multiple matching templates, or a 402 quote when unpaid. A successful paid GET returns the delayed report with model and component data, optional score, confidence, coverage, tests, weeks, last_test_week, warnings, history, trend and seller summary.

GET https://api.x402reputation.com/v1/categories — Returns {categories: [{month, category, free, detail}]} with privacy-filtered monthly totals.

GET https://api.x402reputation.com/health — Returns {ok: true, network: "eip155:8453"}.

POST https://api.x402reputation.com/v1/seller/requests — Takes the seller_request input below, returns the signing challenge (HTTP 201). POST https://api.x402reputation.com/v1/seller/requests/{id} takes {signature} and returns the seller_fulfill result.

MCP tools

POST https://api.x402reputation.com/mcp — Send JSON-RPC 2.0 messages. Start with initialize and notifications/initialized, use tools/list for current schemas, then call tools/call with params {name, arguments}. Results expose structuredContent (the same JSON as HTTP), a JSON text item in content and isError. Tool errors are represented in the result, so inspect isError even when the transport returns HTTP 200.

score — {url, wallet?} returns the free score response. detail — {url} returns the detail report or a quote/error as described below.

seller_request — {url, seller, action, method, payer?, agent?, kind?, statement?, scope?, delegationExpires?}. Actions are report, alerts, appeal, delegate and revoke. Methods are siwe, safe and agent. Returns {id, message, digest, expires_at, basis_month, attributable_revenue, amount, resource}. Amounts are atomic USDC.

seller_fulfill — {id, signature}. Returns a quote for unpaid reports or alerts, {reports} or {alerts, month} on payment, {id, state, evidence} for an appeal or {id, action} for delegation and revocation.

Pricing and payment

Score is free. Detail costs $0.25 (250000 atomic units) via x402 v2 with the exact scheme, Base mainnet (eip155:8453), USDC asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, 120s quote lifetime. Get explicit operator approval and confirm the budget before paying. Never send private keys or invent amounts.

Make the first call unpaid. Read the x402 v2 PaymentRequired quote from the 402 JSON body or the base64 PAYMENT-REQUIRED header. Review the resource (which may use the canonical catalogue URL), accepts and budget before signing. Retry the same request with the base64 signed x402 v2 payload in PAYMENT-SIGNATURE and retain the PAYMENT-RESPONSE receipt.

An unpaid detail call for an uncatalogued URL yields the 404 endpoint error as structuredContent. When payment is required, structuredContent holds x402 PaymentRequired and isError is true. After approval, retry with identical arguments and the signed x402 v2 payload object in params._meta["x402/payment"]. Retain the receipt in result._meta["x402/payment-response"].

Seller routes (POST /v1/seller/requests and POST /v1/seller/requests/{id}) and tools (seller_request and seller_fulfill) are for endpoint operators only.

Build the signed x402 v2 payload from the quote: {x402Version: 2, resource, accepted, payload}. Copy resource and the selected entry from accepts into accepted and sign the authorisation in your own wallet. Use a current quote.

Rate limits and errors

Public /v1/* and /mcp routes are rate-limited. Cache results and do not poll. On HTTP 429, back off and respect Retry-After when present.

HTTP errors may return {error}. Correct invalid inputs (400) and resolve catalogue conflicts (409) before retrying. For HTTP POST and other write methods sent to the marketing host, use the canonical endpoint in the 308 Location header.