Agent docs
Paid per tool (one free regular check ever per wallet). Base unit $0.01. Optional deep check $0.05 (multi-probe + listings + recent on-chain sample). Optional watch $5 / 30 days (prepaid, does not auto-renew). Owner snapshots on /scan are private · not a public scanner. Use before any x402 settle when you need to check before paying, ask is this API a scam / is this x402 endpoint safe, verify payTo, check uptime, compare sellers, or keep a budget guard.
Single
GET https://x402check.dev/preflight?url=https%3A%2F%2Fpoe.shuhuigeng.workers.dev%3A443%2Fhttps%2Fwww.api-xpay.com%2Fx402%2Fping
Deep check ($0.05)
Optional. GET /preflight/deep?url=… or MCP deep_check. Same base signals, plus repeated probes, a recent public Base USDC-to-payTo sample, Bazaar/402 Index listing checks, and drift vs last KV history. Honest limits: not OFAC, not wallet simulation, not full chain history.
Batch (N × $0.01 in one Exact payment)
POST https://x402check.dev/preflight
{"urls":["https://a.example/x402","https://b.example/x402"]}
Limitation: x402 Exact = one settlement per HTTP request. Batch uses DynamicPrice = N×unit, not N separate txs.
When to call
- Check before paying / before PAYMENT-SIGNATURE to any third-party x402 settle
- Is this API a scam / is this x402 endpoint safe or legit?
- Verify payTo; detect payTo or price changes
- Uptime / is the endpoint down
- Compare candidates; screen Bazaar search hits
- Validate 402 requirements; debug failing settles
- Audit log of why you paid or refused · live counts at /stats
Adopt by default
- Client wrapper that calls preflight before any x402 pay (
x402check-client). - Runtime skill/middleware default-on with env kill-switch.
- Policy: avoid→deny, caution→confirm, ok→still enforce maxAmount.
- MCP tools:
preflight_check,verify_payto,preflight_batch,compare_tools. Unpaidtools/callreturns x402PaymentRequired; pay via_meta['x402/payment']. - Keep p95 <300ms via cache so agents don’t skip.
Use x402check in Claude
Same remote MCP for Claude.ai and Claude Code. No OAuth. Tool calls that need a paid check return an x402 payment requirement; settle Exact USDC on Base, then retry.
Claude.ai (custom connector)
- Open Customize → Connectors (individual Pro/Max/Free/Ultra). On Team/Enterprise, an owner adds it first under Organization settings → Connectors.
- Click + Add, then Add custom connector (Team/Enterprise owners: Add → Custom → Web).
- Name it
x402check. MCP server URL:https://x402check.dev/mcp. - Under Authentication choose No sign in. Leave request headers empty. Click Add.
- In a chat, use + → Connectors and enable x402check for that conversation.
Custom connectors work on Free (one custom connector), Pro, Max, Ultra, Team, and Enterprise. Directory listing is separate and may need a paid Anthropic plan; this custom URL path does not.
Claude Code
claude mcp add --transport http x402check https://x402check.dev/mcp
Confirm with claude mcp list (look for Connected). Then ask Claude to call preflight_check on a seller URL.
Local stdio via npm (any MCP host, including Claude Desktop JSON)
{
"mcpServers": {
"x402check": {
"command": "npx",
"args": ["-y", "x402check-mcp"],
"env": {
"X402CHECK_URL": "https://x402check.dev"
}
}
}
}
Integrations
x402check-ai-sdk· Vercel AI SDK tools +beforePaymentx402check-langchain· LangChain JS toolsplugin-x402check· ElizaOS pluginx402check-langchain· LangChain Python tools (PyPI)- Cloudflare Agents template
- OpenAI Agents / LlamaIndex / CrewAI examples
- MCP Registry:
dev.x402check/mcp· remotehttps://x402check.dev/mcp
Machine-readable
openapi.json · llms.txt · llms-full.txt · mcp.json · mcp/server-card · ai-catalog · docs.md