EVM MCP Auditor
This server provides EVM smart contract security auditing and blockchain telemetry tools for Claude/Claude Code.
Audit Solidity contracts for vulnerabilities (reentrancy, unsafe delegatecall, tx.origin auth, unchecked calls, timestamp dependency, selfdestruct, floating pragma, missing zero-address checks) and generate a security score.
Fetch verified source code of smart contracts from block explorers across Ethereum, Base, Arbitrum, Optimism, Polygon, and BSC.
Decode raw transaction calldata into function selectors, parameter segments, and byte length.
Estimate gas prices and get real-time network execution telemetry across supported EVM networks.
Provides tools for auditing EVM smart contracts on Ethereum and compatible networks, including static vulnerability analysis, fetching verified source code, decoding calldata, and estimating gas costs.
Supports multi-chain telemetry and security auditing of smart contracts on Optimism, including fetching verified source code, decoding calldata, and estimating gas costs on the Optimism network.
Supports multi-chain telemetry and security auditing of smart contracts on Polygon, including fetching verified source code, decoding calldata, and estimating gas costs on the Polygon network.
Enables static security analysis of Solidity smart contracts for vulnerabilities such as reentrancy, unsafe delegatecall, and timestamp dependency, covering SWC/CWE categories and providing audit results.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EVM MCP Auditor Audit this Solidity contract for security vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🛡️ EVM MCP Auditor
Production-grade Model Context Protocol (MCP) server for EVM Smart Contract security auditing, static vulnerability analysis, and multi-chain telemetry for Claude & Claude Code.
⚡ Overview
EVM MCP Auditor connects Anthropic's Claude, Claude Desktop, and Claude Code CLI directly to Ethereum and EVM ecosystems. It equips Claude with specialized security auditing tools to automatically inspect Solidity smart contracts for critical attack vectors, fetch verified source code from block explorers, decode raw transaction calldata, and estimate multi-chain gas costs.
┌───────────────────────────┐ ┌───────────────────────────────┐
│ │ stdio │ │
│ Claude Desktop / Code │ ◄─────► │ EVM MCP Auditor Server │
│ (Anthropic AI) │ │ (@zalana/evm-mcp-auditor) │
│ │ │ │
└───────────────────────────┘ └──────────────┬────────────────┘
│
▼
┌───────────────────────────────┐
│ EVM Networks & Explorers │
│ • Ethereum • Base • Arbitrum │
│ • Optimism • Polygon • BSC │
└───────────────────────────────┘Related MCP server: solidit-mcp-server
🚀 Features & MCP Tools
MCP Tool | Description |
| Run static security analysis on Solidity code (Reentrancy, Unsafe Delegatecall, |
| Pull verified contract source code directly from block explorers across 6 EVM networks. |
| Decode raw transaction hex data into 4-byte function selectors and parameter chunks. |
| Fetch real-time gas telemetry across Ethereum, Base, Arbitrum, Polygon, Optimism, and BSC. |
📦 Quickstart & Installation
Option 1: Claude Desktop Integration
Add the following snippet to your claude_desktop_config.json:
{
"mcpServers": {
"evm-auditor": {
"command": "npx",
"args": ["-y", "@zalana/evm-mcp-auditor"]
}
}
}Option 2: Claude Code CLI
claude mcp add evm-auditor npx -y @zalana/evm-mcp-auditorOption 3: Local Development
# Clone repository
git clone https://github.com/zalana28/evm-mcp-auditor.git
cd evm-mcp-auditor
# Install dependencies
npm install
# Run automated test suites
npm test
# Build TypeScript to dist/
npm run build
# Run local MCP server
npm start🛡️ Supported Vulnerability Scanners (SWC / CWE)
EVM-SEC-001: Reentrancy (Checks-Effects-Interactions violation)
SWC-107/CWE-841EVM-SEC-002: Arbitrary / Uncontrolled Delegatecall
SWC-112/CWE-829EVM-SEC-003: Vulnerable Authentication via
tx.originSWC-115/CWE-287EVM-SEC-004: Unchecked Return Value of Low-Level Call
SWC-104/CWE-252EVM-SEC-005: Block Timestamp Manipulation
SWC-116/CWE-330EVM-SEC-006: Deprecated
selfdestruct/ Unprotected State LockSWC-106/CWE-284EVM-SEC-007: Floating Pragma Compiler Warning
SWC-103/CWE-664EVM-SEC-008: Missing Zero-Address (
address(0)) Setter ValidationSWC-100/CWE-20
🤝 Contributing
Contributions, issues, and feature requests are welcome! Please check the Contributing Guide.
📄 License
This project is licensed under the MIT License.
Built with ⚡ by Zalana for the global Open-Source and Web3 developer community.
Available Tools
4 toolsevm_audit_contractA
Audit Solidity smart contract source code for critical security vulnerabilities (Reentrancy, Unsafe Delegatecall, Tx.Origin authentication, Unchecked Calls, etc.) and generate a security score.
Inputs: sourceCode (required), contractName.
evm_decode_calldataA
Decode raw EVM transaction calldata into function selector, parameter segments, and byte length.
Inputs: calldata (required).
evm_estimate_gasB
Get real-time gas price and network execution telemetry across supported EVM networks.
Inputs: chain.
evm_fetch_sourceA
Fetch verified smart contract source code from block explorers across Ethereum, Base, Arbitrum, Optimism, or Polygon.
Inputs: contractAddress (required), chain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool occupies a completely distinct role: estimating gas, auditing source, fetching source, and decoding calldata. There is zero functional overlap between the four, eliminating any chance of an agent selecting the wrong tool for a given intent.
All tools follow a flawless 'evm_verb_noun' snake_case convention with no exceptions. The consistent prefix plus action word makes the API predictable and easy to reason about.
Four focused tools is perfectly scoped for a specialized auditing server covering the key audit workflow without bloat. It hits the sweet spot of being comprehensive for its domain without unnecessary features.
The core fetch-source-and-audit workflow is well covered, with useful supporting utilities for gas analysis and calldata decoding. However, there's no way to list past audits, compare versions, or interact with the broader transaction context, which are minor gaps for a full auditing lifecycle.
Maintenance
Related MCP Connectors
AI smart contract security audits by Nethermind. Run scans and pull findings into your agent.
Read-only smart-contract security intelligence for autonomous agents.
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
EVM audit (Slither + source + security.txt + MCP-probe + wallet-exposure). 6 tools + /trace.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI coding agents to scan smart contracts and code for vulnerabilities, check against 12 famous-hack patterns, and return public security receipts directly in the IDE.423 npmMIT
- AlicenseAqualityDmaintenanceConnects AI assistants to Solodit's 49,000+ blockchain vulnerability database, enabling search, browse, and lookup of audit findings directly from your AI workflow.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query on-chain data across EVM chains like Base, Optimism, Avalanche, Celo, and Arbitrum, including balances, transactions, gas, and smart contract interactions.53 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform Web3 development operations such as toolchain diagnostics, chain registry queries and live probing, address validation, secret scanning, deployment logging, and standards searches across multiple blockchains.MIT