Ethereum and EVM-compatible chain tools
## EVM MCP Server: Ethereum Virtual Machine Tools The **EVM MCP Server** provides low-level EVM interaction tools for Google Antigravity, enabling developers to debug smart contracts, analyze bytecode, and execute EVM operations for blockchain development. ### Why EVM MCP? - **Contract debugging** - Step through contract execution - **Bytecode analysis** - Disassemble and analyze bytecode - **State inspection** - Inspect contract storage - **Gas profiling** - Analyze gas consumption - **Trace execution** - Full execution traces ### Key Features #### 1. Contract Analysis ```python # Analyze contract bytecode analysis = await mcp.call("evm", "analyze_contract", { "address": "0x...", "chain": "ethereum" }) print(f"Functions: {analysis[\"function_count\"]}") print(f"Events: {analysis[\"event_count\"]}") # Disassemble bytecode opcodes = await mcp.call("evm", "disassemble", { "bytecode": "0x608060405..." }) ``` #### 2. Transaction Tracing ```python # Trace transaction execution trace = await mcp.call("evm", "trace_transaction", { "hash": "0x...", "trace_type": ["vmTrace", "stateDiff"] }) for step in trace["vmTrace"]["ops"]: print(f"{step[\"pc\"]}: {step[\"op\"]} gas={step[\"gas\"]}") # Debug call result = await mcp.call("evm", "debug_call", { "from": "0x...", "to": "0x...", "data": "0x..." }) ``` #### 3. Storage Inspection ```python # Get contract storage storage = await mcp.call("evm", "get_storage", { "address": "0x...", "slots": [0, 1, 2] }) for slot, value in storage.items(): print(f"Slot {slot}: {value}") # Read storage at specific block historical = await mcp.call("evm", "get_storage_at", { "address": "0x...", "slot": 0, "block": 18000000 }) ``` #### 4. Gas Profiling ```python # Profile gas usage profile = await mcp.call("evm", "profile_gas", { "to": "0x...", "data": "0xa9059cbb..." }) print(f"Total gas: {profile[\"total_gas\"]}") for op, gas in profile["by_opcode"].items(): print(f" {op}: {gas}") ``` ### Configuration ```json { "mcpServers": { "evm": { "command": "npx", "args": ["-y", "@anthropic/mcp-evm"], "env": { "ETH_RPC_URL": "https://eth.llamarpc.com", "ARCHIVE_NODE_URL": "https://archive.eth.llamarpc.com" } } } } ``` ### Use Cases **Contract Debugging**: Debug smart contract issues. **Security Auditing**: Analyze contract bytecode. **Gas Optimization**: Optimize contract gas usage. **Transaction Analysis**: Understand transaction behavior. The EVM MCP Server enables low-level blockchain development.
{
"mcpServers": {
"evm": {
"mcpServers": {
"evm": {
"env": {
"QUICKNODE_ENDPOINT": "YOUR_ENDPOINT"
},
"args": [
"-y",
"@quicknode/evm-mcp-server"
],
"command": "npx"
}
}
}
}
}