
402sentinel Mcp
io.github.kaditang由 GitHub 账号 kaditang 发布v0.9.0更新于 Oct 26, 2026
DEPRECATED: hosted 402Sentinel retired 2026-10-31. Client for x402 payment-safety checks.
概览
已弃用的 x402 支付安全检测 MCP 客户端:在代理付款前评估交易对手、支付本身、代币化资产与合规风险。
- 可以做什么
- 评估卖方:针对 payTo 地址返回风险评分、allow/review/block 决策和可直接套用的支出策略,另有更深入的链上历史扫描选项。
- 审查支付本身:防火墙识别 payTo 被替换的路由欺诈、资金快速流出、超额收费和来自注入内容的指令,并提供免费工具写入支付历史与回报结果。
- 筛查资产与合规:代币化资产(国债、股票、信贷)风险闸门、OFAC 制裁与尽职调查筛查,以及可选的已验证徽章审计。
- 付款后上报交付结果,用于改进可靠性评分。
- 适用场景
- 仅当你自行运行或信任某个 402Sentinel 兼容端点,并希望代理在 Base 上花费 USDC 前核查 x402 交易对手、单笔支付、代币化资产或制裁风险时使用。原托管服务已退役,对原端点的全新部署没有意义。
- 运行要求
- 以 npm 包形式在本地以 stdio 运行。需要 SENTINEL_URL 指向你自己运行且信任的服务器(旧默认地址会被拒绝),付费调用还需 CLIENT_PRIVATE_KEY,即一个持有 USDC 的 Base 钱包;免费工具无需密钥。付费调用按 x402 以 USDC 计费,从 0.002 到 0.02 美元,无需 gas。
安装
在 SourceWeft 中
- 打开 控制台中的 402sentinel Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
402sentinel-mcp
[!WARNING] Retirement notice. The 402Sentinel service this package talks to (402sentinel.com) will be retired on 31 October 2026, and the domain will not be renewed (it lapses in May 2027). After 31 October the default endpoint stops answering; after May 2027 the domain may be controlled by someone else. This package can make x402 payments, so do not keep a version that defaults to 402sentinel.com — uninstall it, or point it only at an endpoint you trust. The package is deprecated; the code stays here under its licence.
0.9.0 (final release): there is no default endpoint any more, and
402sentinel.comis refused even if you set it, so this version can never send requests or payments to the retired domain. SetSENTINEL_URLonly to a server you run and trust.
MCP tools that let your AI agent check an x402 counterparty's risk before it
pays — and turn that risk into an enforceable wallet spending policy. Give it a
payTo address, get back a 0–100 risk score + an allow / review / block
decision, scored from on-chain settlement behaviour on Base (address age,
facilitator-aware payer diversity, settlement maturity) + a delivery-outcome
flywheel, with honest confidence/coverage.
Tools — vet the seller:
assess_counterparty($0.002) — risk score + decision + a ready-to-applyrecommended_policyassess_counterparty_deep($0.02) — same, scans more on-chain historyrecommend_policy($0.002) — decision + wallet-ready spending policy (caps, denylist, approval)report_outcome(free) — after paying, report delivery to train the reliability flywheel
Tools — vet the payment itself (buyer-side):
firewall($0.002) — should YOUR agent make THIS payment now? Catches fraudulent routing (payTo swapped vs the address you usually pay), drain velocity, overcharge, and injection-sourced instructions.agent_id+ a wallet-ownership signature are attached automatically from your configured wallet — trusted routing history with no extra steps.firewall_record(free) — seed your agent's payment history so the firewall has a behavioural baseline.firewall_outcome(free) — after a verdict, report what actually happened (fraud / legit / …) so the firewall learns which signals are predictive and downweights noisy ones (safety signals stay deterministic).
Tools — vet the asset and the flow:
assess_rwa($0.02) — RWA risk gate: score a tokenized asset (treasury/stock/credit) before buying it. Proxy-aware transfer-restriction scan + behavioral transfer simulation — catches permissioned securities an agent can buy but not transfer or redeem (trapped funds), live pause state, issuer identity + issuer sanctions.compliance_check($0.02) — pre-pay compliance screen: OFAC sanctions (hard block), counterparty due-diligence tier, structuring/smurfing detection, FATF Travel-Rule threshold (informational). Not legal advice.verify_service($0.02) — opt-in 402Sentinel Verified badge: submit your own payTo for a deep settlement-graph audit; pass → signed time-boxed credential + public allow-list. Failures stay private.
It's a thin client for the hosted service at https://402sentinel.com — the scoring model and facilitator-identification logic live server-side (closed); this package only forwards the request and pays for it, so it's open source.
Quickstart — gate a payment in 5 lines
Before your agent pays any x402 counterparty, ask the firewall; if it doesn't say
allow, don't pay. No MCP needed — any standard x402 v2 client works:
That one $0.002 call catches fraudulent routing (payTo swapped vs the address you
usually pay), prompt-injection payments (a payTo that appeared in untrusted_text),
drains, overcharges, and sanctioned/illicit counterparties.
In an MCP framework (Claude, Cursor, …) instead, just add the server — your agent gets all 10 tools by name (see Configure below):
Install
Configure
Add to your MCP client (Claude Desktop, Cursor, etc.):
Paid calls cost from $0.002 (shallow) to $0.02 (deep), paid automatically
in USDC via standard x402 (exact EIP-3009 on Base — the facilitator submits the
transfer, so the buyer needs no gas) from the configured wallet. The free tools
need no key.
Use
The agent calls it before authorizing a payment:
block/deny→ don't payreview/limit→ cap exposure / escrow (userecommended_policyfor the caps)allow→ proceed
recommend_policy(...) returns just the decision + recommended_policy — apply
max_payment_usdc / daily_cap_usdc / add_to_denylist directly to your agent
wallet's spending limits. After paying, call report_outcome({ assessment_id, outcome }) to improve future scores.
Disclaimer
Algorithmic risk signal, informational only — not advice, not an endorsement, and not an accusation about any party. Scores are probabilistic estimates from limited public on-chain data and heuristics, and may misclassify. Do your own due diligence; don't rely on it as your sole basis to pay or refuse. See https://402sentinel.com/terms.
MIT.
来源:README.md,提交 6355a64
工具
0版本历史
4- v0.9.0最新Oct 19, 2026
- v0.8.1Oct 17, 2026
- v0.8.0Oct 17, 2026
- v0.7.1Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。