
X402score Mcp
io.github.zagchk由 GitHub 帳號 zagchk 發布v0.4.2更新於 Oct 26, 2026
Check an x402-paid API endpoint's trust score before paying it - live-probed, not self-reported.
發布方自己的服務:x402 Counterparty Score
概覽
本機 MCP 伺服器,讓助理在付費前查詢 x402 付費 API 端點的 x402Score 信任評分、等級與排行榜資料。
- 可以做什麼
- 依 URL 或端點 ID 為單一 x402 端點評分,回傳等級與可信區間
- 依名稱、網域、URL、ID 或垂直領域搜尋與瀏覽已追蹤端點,並可依評分、價格、上線率或延遲排序
- 讀取校準報告,了解評分公式是否具預測力
- 將新的 x402 端點提交至監控佇列
- 執行輕量的可達性與延遲偵測
- 讀取方法學資源,了解評分、等級、可信區間與鏈上修正項的含義
- 適用情境
- 當助理或代理準備呼叫或支付某個以 x402 計費的 API,想先做一次第三方、即時探測的信譽查核時;或需要依評分、價格、上線率、延遲比較候選付費端點時。
- 執行需求
- 以 stdio 在本機執行;需安裝 npm 套件 x402score-mcp(全域安裝或以 npx 執行),因此需要 Node.js。需要能連線至 x402Score 後端。可選擇設定 X402SCORE_BASE_URL 指向預備環境或本機後端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 X402score Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
x402score-mcp
MCP server exposing x402Score's reputation data as agent tools — check an x402-paid API endpoint's trust score before paying it, from inside any MCP-compatible client (Claude Desktop, Claude Code, etc.).
Published to npm, not yet submitted to any MCP registry. The package
itself (x402score-mcp) is installable now — what's being held is the
registry listing (Claude's, Smithery, etc.), until the on-chain modifier's
calibration gate closes (~2026-10-19); see the main project README for why.
Registry listing content is pre-written in REGISTRY_SUBMISSION.md, ready to
copy-paste the moment the gate closes. Last re-verified end-to-end against
live production (real stdio MCP client, all 5 tools + the methodology
resource, confirmed structured output, error handling, and tool annotations
all work correctly): 2026-10-10.
Tools
check_endpoint_score— score, grade, and credible interval for one endpoint. Passurldirectly (preferred — the endpointId is derived locally, no separate lookup) orendpointIdif already known.search_leaderboard— search/browse tracked endpoints by name/domain/url/id and/or vertical, sortable byscore(default),price,uptime, orlatency.get_calibration_report— is the scoring formula actually predictive?submit_endpoint— add a new x402 endpoint to the monitoring queue.ping— cheap reachability/latency check, useful as a first call when connecting.
All tools declare readOnlyHint/destructiveHint/idempotentHint/openWorldHint
annotations and a matching outputSchema, and all return structured errors
(isError: true with a clear message, including the backend's own error text
where available — e.g. a rate-limit message, not just an HTTP status) instead
of letting a network failure or backend timeout kill the connection. A
x402score://methodology resource explains what the score, grade, credible
interval, and on-chain modifier actually mean — read once per session rather
than inferred from tool descriptions alone. Requests time out client-side
after 10s so a slow or degraded backend fails fast and visibly instead of
hanging the caller. See CHANGELOG.md for the version history.
Install & run
Or from source:
Use from Claude Desktop / Claude Code
Add to your MCP client config:
Or point command/args at a local node/dist/server.js build instead,
same as before.
Optionally set X402SCORE_BASE_URL in the server's env to point at a local
wrangler dev or staging deployment instead of production. This redirects
all of the server's traffic to whatever URL you give it, so only set it to a
backend you control and trust.
Development
Tool logic (src/tools.ts) is separated from MCP protocol wiring
(src/server.ts) specifically so it's testable without a real MCP transport —
tests run via the main project's vitest (from the repo root: npm test).
src/server.ts wires those same functions into @modelcontextprotocol/sdk's
McpServer, connected over stdio.
來源:mcp/README.md,提交 ca47c14
工具
0版本歷史
2- v0.4.2最新Oct 18, 2026
- v0.4.1Oct 18, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。