
Contract Guard Mcp
io.github.eltociear由 GitHub 账号 eltociear 发布v1.1.0更新于 Oct 24, 2026
EVM contract/token risk check + ERC20 approval (proxy, EIP-7702, unlimited-allowance). Zero deps.
概览
本地 MCP 服务器,对 EVM 合约与代币做交互前风险检查,识别代理合约、EIP-7702 委托和无限 ERC20 授权。
- 可以做什么
- 检查 Base 或以太坊上的 EVM 地址:是合约还是外部账户或已自毁、EIP-7702 委托 EOA 检测、可升级代理检测(EIP-1967 与旧版 zeppelinos)、ERC20 名称/符号/精度/总量,以及风险评分和可操作标记。
- 按代币、持有者与授权方审计 ERC20 授权额度,标记无限授权。
- 通过公共 JSON-RPC 只读查询,不签名,无依赖。
- 适用场景
- 适合在助手即将授权、兑换或信任某个代币或合约地址之前,先获取一份快速风险信号;也适合在撤销授权前审计现有的 ERC20 授权额度。
- 运行要求
- 以 stdio 本地进程运行,可用已发布的容器镜像或直接运行 Python 服务脚本。需要访问 Base 与以太坊的公共 JSON-RPC 端点。未声明任何账户、API 密钥、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Contract Guard Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
contract-guard-mcp
[smithery badge] [MCP Registry]
MCP server for a pre-interaction risk check on any EVM contract/token — what an agent needs before it approves, swaps, or trusts an address.
Tool: check_contract(address, chain="base") →
- is-contract vs EOA / self-destructed
- EIP-7702 delegated-EOA detection
- upgradeable proxy detection (EIP-1967 + legacy zeppelinos)
- ERC20 metadata (name / symbol / decimals / totalSupply)
- risk score + actionable flags
Chains: Base, Ethereum. Pure public JSON-RPC, zero dependencies, no signing.
Also available as a pay-per-call x402 HTTP endpoint:
https://eltociear-contract-guard.hf.space (POST /check, $0.005 USDC on Base).
Run
MIT licensed.
Tools
check_contract(address, chain)— is-contract/EOA, EIP-7702, proxy, ERC20 metadata, risk scorecheck_approval(token, owner, spender, chain)— ERC20 allowance audit; flags unlimited approvals (the #1 drain vector)
Free MCP vs paid x402
This MCP server is free (run it locally / via your client). For server-side, batch, or no-install use, the same engine is a pay-per-call x402 HTTP API — POST https://eltociear-contract-guard.hf.space/check ($0.005 USDC on Base, no signup). Your agent's wallet pays per call.
Professional audit services
Maintained by the same author — paid services on Polar (Stripe checkout):
- MCP Security Audit Report — $5 — one-off audit of your MCP server: 68 attack patterns, severity-rated PDF report with concrete fixes.
- Security Pulse — $5/mo (annual $50) — monthly briefing on newly disclosed MCP server vulnerabilities, scan stats across 100+ tracked repos, mitigation playbooks.
- Pro Audit Stack — $20/mo — for teams running MCP servers in CI/CD: 50 hosted scans/month, Discord access, 24h SLA on vulnerability questions.
Full catalog: polar.sh/eltociear
Also live: clean-read ($0.005 / call)
Same operator, same x402 rails: clean-read turns any URL into clean Markdown for AI agents — fetches the page, strips nav/ads/boilerplate (trafilatura), returns the main content with title and word count. POST https://eltociear-skill-audit.hf.space/read — $0.005 USDC on Base, no signup.
来源:README.md,提交 f435081
工具
0版本历史
1- v1.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分