EVMole
Lets your AI agent analyze deployed Ethereum contract bytecode to find functions, argument types and storage layout.
473 stars on GitHubby cdumpLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add evmole -- npx -y evmole-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Analyze this contract bytecode and list its function selectors and arguments.
Which functions in this contract are view or pure?
What it is
EVMole reads the compiled bytecode of Ethereum (EVM) smart contracts and works out what is inside, even when the source code is not published. It finds function selectors, argument types, state mutability and storage layout. The local MCP server runs on your machine and does not send bytecode to a service.
What it can do
- Infer function selectors from bytecode
- Infer function argument types
- Detect state mutability (pure, view, nonpayable)
- Read persistent and transient storage layouts
- Read CBOR metadata
- JSON command:
npx -y evmole analyze --bytecode 0x...
When to use
- βΊWhen you inspect an unverified smart contract and want to know its functions
- βΊWhen you need argument types for a contract you only have bytecode for
- βΊWhen you analyze many contracts in a script and want fast results
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
analyzing-ethereum-smart-contract-vulnerabilitiesMakes your agent analyze smart contract code on Ethereum to find security flaws. It looks for vulnerabilities before the code is used. It's useful for preventing financial losses.ida-reverseHelps your agent analyze any type of program file. It can decompile, find references, and help understand complex code. Essential for security analysis and development.web3-auditLets your agent review smart contract code. It looks for security errors in blockchain systems.Frequently asked questions
Is it free and open source?
Yes. It is an open-source library with JavaScript, Rust, Python and Go versions.
Does bytecode leave my computer?
The readme says the integrations run locally and do not send bytecode to an EVMole-operated service.
What kind of bytecode does it need?
Deployed (runtime) bytecode, not the creation code.
Does it work on Vyper contracts?
It was tested on both Solidity and Vyper contracts.
How accurate is it?
The readme benchmarks show zero false selector errors on its Solidity and Vyper test sets, and lower argument error rates than the other tools compared.
Are there other ways to use it?
Yes. There is a JSON CLI, a portable skill and language libraries, and Foundry cast uses the Rust version.
If it does not work
- βΊCheck that Node.js is installed, since the command uses npx.
- βΊPass runtime bytecode that starts with 0x, not the creation code.
- βΊSee the agent guide in the repository for setup details and limits.
5 new skills a week. 1 minute to read.