
Contract Guard Mcp
Before your agent approves a token or interacts with an unfamiliar contract, you need to know if it's a proxy, an EIP-7702 delegated EOA, or flagged for unlimited allowances. This server exposes two tools: check_contract() runs risk analysis on any address (contract vs EOA, upgrade patterns, ERC20 metadata) and check_approval() audits existing token allowances for the unlimited approval vector that drives most drains. It works over public JSON-RPC on Base and Ethereum with zero dependencies or signing. If you're building agents that touch DeFi, this is the pre-interaction sanity check you bolt on first. Also available as a pay-per-call x402 HTTP endpoint at $0.005 USDC.
- tools
- 2
- transport
- STDIO
- last updated
- Jun 8, 2026
Tools
2 toolsPublic tool metadata for what this MCP can expose to an agent.
check_contractis-contract/EOA, EIP-7702, proxy, ERC20 metadata, risk score
is-contract/EOA, EIP-7702, proxy, ERC20 metadata, risk score
No parameter schema in public metadata yet.
check_approvalERC20 allowance audit; flags unlimited approvals (the #1 drain vector)
ERC20 allowance audit; flags unlimited approvals (the #1 drain vector)
No parameter schema in public metadata yet.
Sponsors
Readme
contract-guard-mcp
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
docker run -i --rm ghcr.io/eltociear/contract-guard-mcp:mcp-latest
# or
python3 server.py
MIT licensed.
Tools
Details
- Repository
- github.com/eltociear/contract-guard-mcp
- Package
ghcr.io/eltociear/contract-guard-mcp:mcp-1.1.0- Transport
- STDIO
- Registry
- MCP registry, active