evm mcp tools
A comprehensive toolkit for Ethereum blockchain analysis within Claude AI, enabling contract auditing, wallet analysis, profitability tracking, and on-chain data retrieval.
A comprehensive toolkit for Ethereum blockchain analysis within Claude AI, enabling contract auditing, wallet analysis, profitability tracking, and on-chain data retrieval.
A comprehensive toolkit for Ethereum blockchain analysis directly within Claude AI using Model Context Protocol (MCP).
Clone this repository:
git clone https://github.com/giovannialbero1992/ethereum-tools-mcp
cd ethereum-tools-mcp
Install dependencies:
npm install
Create your configuration:
mcp.json.example to mcp.jsonmcp.json to include your API keys and correct file paths{
"mcpServers": {
"ethereum-tools": {
"command": "node",
"args": ["YOUR_ABSOLUTE_PATH_TO/main.js"],
"env": {
"ETH_RPC_URL": "https://eth.llamarpc.com",
"MORALIS_API_KEY": "your_moralis_api_key",
"ETHERSCAN_API_KEY": "your_etherscan_api_key",
"CODEX_API_KEY": "your_codex_api_key"
}
}
}
}
%APPDATA%Claudeclaude_desktop_config.jsonmcp.json file into this configurationauditContract(address: "0x..."): Perform security audit on a smart contractgetEthBalance(address: "0x..."): Get ETH balancegetTransactionCount(address: "0x..."): Get transaction count (nonce)getTokensBalance(address: "0x...", chain: "eth", excludeSpam: true): Get all token balancesgetWalletPnl(address: "0x...", chain: "eth"): Analyze wallet profit/lossgetTokenInfo(address: "0x...", networkId: 1): Get basic token information including name, symbol, and supplygetTokenPriceHistory(address: "0x...", networkId: 1, days: 7, resolution: "1D"): Get historical price dataanalyzeToken(address: "0x...", networkId: 1, days: 30): Perform comprehensive token analysis including volatility and trading patternsadd(a: 1, b: 2): Simple utility function exampleCommon issues:
- Environment variables not found: Make sure your API keys are correctly set in mcp.json
- Provider errors: Check that your ETH_RPC_URL is valid and accessible
- Path errors: Ensure you're using full absolute paths with proper escaping in Windows ()
- Codex API issues: Verify your Codex API key is valid and has permission to access token data
To add new tools:
1. Create or modify files in the tools/ directory
2. Register your tools in main.js
3. Restart Claude for Desktop to see changes
This project is licensed under the MIT License.