mcp-contractaudit
Supports auditing and inspecting deployed Ethereum smart contracts, including static analysis, vulnerability reporting, gas optimization, formal verification, and contract information retrieval.
Supports auditing and inspecting deployed Optimism smart contracts, including static analysis, vulnerability reporting, gas optimization, formal verification, and contract information retrieval.
Supports auditing and inspecting deployed Polygon smart contracts, including static analysis, vulnerability reporting, gas optimization, formal verification, and contract information retrieval.
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., "@mcp-contractauditrun static analysis on 0x1234567890abcdef1234567890abcdef12345678 on ethereum"
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.
mcp-contractaudit
MCP server for Smart Contract Audit — static analysis, vulnerability scanning, gas optimization, formal verification, report generation, and contract information.
Tools
run_static_analysis
Run static analysis on a smart contract using multiple tools (Slither, Mythril, Echidna, Manticore, Foundry).
Parameter | Type | Default | Description |
| string | required | Contract address on-chain |
| string | required | Solidity source code for analysis |
| array |
| Analysis tools to run |
| string enum |
| ethereum, polygon, arbitrum, optimism, base |
Returns audit with findings, summary by severity, and metadata.
get_vulnerability_report
Get vulnerability report for a completed audit.
Parameter | Type | Default | Description |
| string | required | Audit identifier |
Returns audit with findings grouped by severity.
optimize_gas
Analyze and suggest gas optimizations for contract functions.
Parameter | Type | Default | Description |
| string | required | Contract address on-chain |
| string | required | Solidity source code |
| string | - | Specific function to optimize; omit for all |
Returns optimization suggestions with estimated gas savings.
verify_formal_spec
Verify formal specification against contract implementation.
Parameter | Type | Default | Description |
| string | required | Contract address on-chain |
| string | required | Path to formal specification file |
| string enum |
| k-framework, certora, scribble |
Returns verification result with proof status and counterexamples.
generate_audit_report
Generate a comprehensive audit report from audit findings.
Parameter | Type | Default | Description |
| string | required | Audit identifier |
| string enum |
| pdf, markdown, html, json |
| boolean |
| Include code snippets |
| boolean |
| Include executive summary |
Returns formatted audit report.
get_contract_info
Get basic information about a deployed contract.
Parameter | Type | Default | Description |
| string | required | Contract address on-chain |
| string enum |
| ethereum, polygon, arbitrum, optimism, base |
Returns contract info with audit history.
Related MCP server: solidity-sentinel
Installation
pip install -r requirements.txtUsage
python main.pyState persisted in ./state/. Override with MCP_CONTRACTAUDIT_STATE_DIR.
Connecting to an MCP client
{
"mcpServers": {
"contractaudit": {
"command": "python3",
"args": ["/tmp/v3-services/mcp-contractaudit/main.py"]
}
}
}License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
EVM audit (Slither + source + security.txt + MCP-probe + wallet-exposure). 6 tools + /trace.
Smart-contract security audits for EVM chains and DAML: quote, run and fetch reports.
Read-only smart-contract security intelligence for autonomous agents.
Audits any Base/EVM address for bytecode risk, proxy patterns, honeypot selectors, and balance.
Related MCP Servers
- AlicenseAqualityDmaintenanceFetches verified EVM smart contract source code, scans for vulnerabilities, analyzes token holder distribution, and generates audit reports.5MIT
- AlicenseAqualityCmaintenanceEnables static security audit of Solidity smart contracts by analyzing source code or deployed bytecode for vulnerabilities, providing risk scores and detailed findings.1MIT
- FlicenseNot gradedqualityBmaintenanceEnables automated Solidity smart contract auditing by analyzing callgraphs and control flow to detect reentrancy vulnerabilities. Integrates with MCP-compatible clients to provide deterministic, zero-dependency security assessments.8-
- AlicenseAqualityCmaintenanceEnables Solidity developers and security auditors to decode EVM calldata, pinpoint revert locations in debug traces, calculate storage slot layouts, and scan contracts for reentrancy and Yul assembly issues.6MIT