defiguard-mcp
v0.1.1
Published
DeFiGuard MCP Server - DeFi protocol risk analysis tools for AI coding agents. Analyze token contracts, detect rug pull patterns, check DeFi composability risks.
Downloads
77
Maintainers
Readme
DeFiGuard MCP
DeFi protocol risk analysis tools for Claude Code, Cursor, and AI coding agents.
Detect rug pull patterns, honeypot indicators, flash loan vulnerabilities, MEV risks, and composability issues — before you deploy or invest.
Quick Start
{
"mcpServers": {
"defiguard": {
"command": "npx",
"args": ["-y", "defiguard-mcp"]
}
}
}Tools (5)
| Tool | Description |
|------|-------------|
| analyze_defi_risks | Full DeFi risk analysis of a Solidity contract |
| analyze_defi_directory | Scan all contracts in a directory |
| analyze_defi_snippet | Analyze a code snippet (no file needed) |
| rug_pull_checklist | 10-point rug pull safety checklist with pass/fail |
| list_defi_patterns | List all 22 detectable risk patterns |
Risk Categories (22 patterns)
| Category | What It Detects | Severity | |----------|----------------|----------| | Rug Pull | Mutable fees, unrestricted mint, liquidity drain, blacklist | Critical-High | | Honeypot | Transfer restrictions, bot mappings, sell blocks | Critical-High | | Flash Loan | Vulnerable callbacks, spot price oracles | High | | Composability | Unsafe ERC20 transfers, fee-on-transfer issues | Medium | | Governance | Single owner, upgradeable proxy without timelock | High-Medium | | MEV | Zero slippage, no deadline, sandwich attack vectors | Medium | | Token Standard | Non-standard decimals, missing events | Low-Info |
Protocol Detection
Automatically identifies known protocol patterns:
- Uniswap V2/V3 forks
- Compound forks
- Aave forks
- ERC-4626 vaults
The Quantum Shield Security Suite
| Package | Layer | Focus | |---------|-------|-------| | quantumguard-mcp | Cryptography | Post-quantum algorithm vulnerabilities | | smartguard-mcp | Smart Contract | Code-level vulnerabilities (reentrancy, overflow) | | defiguard-mcp | Protocol | DeFi-specific risks (rug pull, MEV, flash loan) |
Use all three for complete blockchain security coverage.
License
MIT
