heimdall_decompile
Decompile EVM bytecode to Solidity source code and ABI
How to use it
heimdall_decompile is exposed by the Foundry MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the heimdall_decompile tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL FOUNDRY MCP SERVER LISTINGOther tools in Foundry MCP Server (26)
Start a new Anvil instance
Check if Anvil is running and get its status
Stop a running Anvil instance
Lookup function or event signature from the 4byte directory
Check the ETH balance of an address
Call a contract function (read-only)
Get information about the current chain
Get logs by signature or topic
Get the transaction receipt
Run a published transaction in a local environment
Send a transaction to a contract function
Get the selector for a function or event signature
Read contract storage at a specific slot
Compute the address of a contract that would be deployed
Get the bytecode size of a deployed contract
Convert between EVM units (wei, gwei, hex)
Create or update a Solidity file in the workspace
Estimate the gas cost of a transaction
Run a Forge script from the workspace
Generate visual control flow graph for EVM bytecode
Decode raw calldata without requiring ABI
Disassemble EVM bytecode into human-readable opcodes
Detailed inspection of Ethereum transactions
Install a dependency for the Forge workspace
List files in the workspace
Read the content of a file from the workspace