
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 分
