mcp
Check before paying x402 APIs — ok|caution|avoid + history. $0.01/tool Base; deep $0.05.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 compare_tools 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"x402check-mcp"
]
}
}
}可執行的套件
0.1.4stdio遠端端點
https://x402check.dev/mcpstreamable-http它能做什麼
工具清單
工具(6)
🟢preflight_check(url, fresh)
Mandatory check before paying any x402 endpoint. Pass the absolute https seller URL. Returns verdict ok|caution|avoid plus that tool's history only (uptime, payToChanges, priceChanges). Use when: about to settle / PAYMENT-SIGNATURE; asking is this API a scam; is this endpoint safe or legit; debugging a failing 402; checking uptime; validating payment requirements before signing USDC on Base. Do not pay if verdict=avoid. Charged $0.01 per URL via x402 Exact on this MCP tools/call (params._meta['x402/payment']).
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Absolute https URL of the x402 seller endpoint (the resource you are about to pay)"
},
"fresh": {
"type": "boolean",
"description": "Force a live probe; ignore cache"
}
},
"required": [
"url"
]
}🟢verify_payto(url, fresh)
Verify the payTo / receiving wallet an x402 seller demands before you sign. Same check as preflight_check: live 402 probe + history.payToChanges (wallet rotations) and priceChanges. Use when confirming which Base USDC address you will pay, comparing payTo to an allowlist, or detecting a rug-style wallet swap. Charged per URL via MCP x402 payment.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Absolute https URL of the x402 seller endpoint (the resource you are about to pay)"
},
"fresh": {
"type": "boolean",
"description": "Force a live probe; ignore cache"
}
},
"required": [
"url"
]
}🟢preflight_batch(urls, fresh)
Trust-check up to 25 x402 seller URLs in one request. Charged per URL (N × unit) in a single Exact settlement via MCP _meta payment. Prefer when comparing candidates, picking the cheapest/most reliable, or screening Bazaar search hits before paying any of them.
輸入結構描述
{
"type": "object",
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 25,
"description": "Absolute https seller URLs; billed per item"
},
"fresh": {
"type": "boolean"
}
},
"required": [
"urls"
]
}🟢compare_tools(urls, fresh)
Compare several x402 tools before choosing which to pay. Alias of preflight_batch: returns each URL's verdict, priceUsd, payTo, uptimePct, and drift history so you can pick reliable/cheap candidates and skip avoid. Charged per URL via MCP x402 payment.
輸入結構描述
{
"type": "object",
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 25,
"description": "Candidate seller URLs to compare"
},
"fresh": {
"type": "boolean"
}
},
"required": [
"urls"
]
}🟢deep_check(url)
Deeper trust check before paying an x402 endpoint ($0.05 Exact USDC). Runs the same live 402 + history as preflight_check, then repeated probes for payTo/price consistency, a recent public Base USDC-to-payTo transfer sample, Bazaar + 402 Index listing checks, and drift vs last KV history. Does not claim OFAC or wallet simulation. Optional when the base check is not enough signal.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Absolute https URL of the x402 seller endpoint (the resource you are about to pay)"
}
},
"required": [
"url"
]
}⚪watch_tool(url, webhookUrl, email)
Subscribe to daily re-checks of one x402 seller URL for 30 days. Alerts your webhook and/or email when payTo, price, network, or availability changes. Fixed $5 USDC Exact (not per-check). Optional after a one-shot preflight when you will revisit the same seller.
輸入結構描述
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "Absolute https URL of the x402 seller endpoint (the resource you are about to pay)"
},
"webhookUrl": {
"type": "string",
"description": "https URL that receives POST JSON alerts on change"
},
"email": {
"type": "string",
"description": "Optional email for change alerts via Resend (also set webhookUrl if you want an HTTPS webhook)"
}
},
"required": [
"url"
]
}社群
證據