
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 分
请在仓库或注册中心条目中声明许可证。