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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
EVM audit (Slither + source + security.txt + MCP-probe + wallet-exposure). 6 tools + /trace.
AI smart contract security audits by Nethermind. Run scans and pull findings into your agent.
Smart-contract security audits for EVM chains and DAML: quote, run and fetch reports.
Read-only smart-contract security intelligence for autonomous agents.
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 gradedqualityNot gradedmaintenanceEnables 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.-
- 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