evm-mcp
An MCP server that provides complete access to Ethereum Virtual Machine (EVM) JSON-RPC methods. Works with any EVM-compatible node provider including Infura, Alchemy, QuickNode, local nodes, and more.
Install / Use
claude mcp add JamesANZ -- npx -y github:JamesANZ/evm-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of evm-mcp
evm-mcp scores 83/100 on our quality scale, 283rd of 549 AI & Machine Learning skills we index.
Its MCP Server is 13 KB long, well organised into 38 sections with 17 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so evm-mcp is actively maintained.
- Our last check on 2026-09-02 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
evm-mcp compared with similar skills
All 4 of these similar skills score higher than evm-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| evm-mcp (this skill)by JamesANZ | 83 | 3 | 2mo ago | MCP Server |
| claude-memby thedotmack | 100 | 94.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 85.2k | 8d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 84.0k | 12d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install evm-mcp?
- Run
claude mcp add JamesANZ -- npx -y github:JamesANZ/evm-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does evm-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is evm-mcp safe to use?
- Our scan of the first 100 KB of the file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is evm-mcp still maintained?
- The repository was last updated about 2 months ago, so evm-mcp is actively maintained.
Skill content
View source on GitHub⛽ EVM MCP Server
Complete EVM JSON-RPC access in your AI workflow. Query any EVM-compatible network (Ethereum, Polygon, Arbitrum, Optimism, BSC, and more) through any node provider. Works with Infura, Alchemy, QuickNode, local nodes, and more.
An MCP (Model Context Protocol) server that provides comprehensive access to Ethereum Virtual Machine (EVM) JSON-RPC methods for AI coding environments like Cursor and Claude Desktop.
Why Use EVM MCP?
- 🌐 Any EVM Network – Ethereum, Polygon, Arbitrum, Optimism, BSC, Avalanche, and more
- 🔌 Any Node Provider – Infura, Alchemy, QuickNode, local nodes, or custom RPC
- 📊 20+ RPC Methods – Complete access to blockchain data, transactions, and contracts
- ⚡ Easy Setup – One-click install in Cursor or simple manual setup
- 🔧 Flexible Configuration – Works with any JSON-RPC compatible endpoint
Quick Start
Ready to interact with EVM blockchains? Install in seconds:
Install in Cursor (Recommended):
Or install manually:
npm install -g @jamesanz/evm-mcp
# Or from source:
git clone https://github.com/JamesANZ/evm-mcp.git
cd evm-mcp && npm install && npm run build
Features
🔢 Blockchain Data
eth_blockNumber– Get latest block numbereth_getBalance– Get account balanceeth_getTransactionCount– Get transaction count (nonce)eth_getBlockByNumber– Get block informationeth_getTransactionByHash– Get transaction detailseth_getTransactionReceipt– Get transaction receipteth_getCode– Get contract bytecodeeth_getStorageAt– Get storage value
🔄 Transactions
eth_call– Execute contract calleth_estimateGas– Estimate gas for transactioneth_sendRawTransaction– Send signed transactioneth_gasPrice– Get current gas price
🧪 Transaction Simulation (read-only, never broadcasts)
Craft transactions in natural language and simulate them against forked/overridden EVM state. Reports whether a transaction would succeed or revert, the revert reason in plain English, estimated gas, and balance/state changes. Supports address aliases and ENS names (e.g. alice.eth). By default the sender is funded with virtual ETH so a simulation can run "from" any address; set fund: false to use real balances.
simulate_native_transfer– Simulate sending native currency (e.g. "Transfer 100 ETH from A to B")simulate_erc20_transfer– Simulate an ERC20 transfer with human amounts (e.g. "Transfer 10 USDC to alice.eth from fun.eth")simulate_contract_call– Encode a function signature + args and simulate the callsimulate_transaction– Simulate a raw transaction (from/to/value/data)encode_function_data– Encode calldata from a human-readable signature (pure helper, no RPC)
These tools only use
eth_call,eth_estimateGas, anddebug_traceCall(when the provider supports it). They never sign or send a real transaction. Real state diffs are used whendebug_traceCallis available; otherwise changes are inferred from the decoded intent.
📊 Events & Logs
eth_getLogs– Get event logs
🌍 Network
list_supported_networks– List configured networks and providerslist_known_addresses– List configured wallet aliases and known token/contract addresseseth_chainId– Get chain IDnet_version– Get network versionnet_listening– Check if listeningnet_peerCount– Get peer count
🌐 Web3
web3_clientVersion– Get client versionweb3_sha3– Hash data with Keccak-256
Installation
Cursor (One-Click)
Click the install link above or use:
cursor://anysphere.cursor-deeplink/mcp/install?name=evm-mcp&config=eyJldm0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiQGphbWVzYW56L2V2bS1tY3AiXX19
Manual Installation
Requirements: Node.js 18+ and npm
# Clone and build
git clone https://github.com/JamesANZ/evm-mcp.git
cd evm-mcp
npm install
npm run build
# Set provider API keys
export INFURA_API_KEY="your-infura-api-key"
export DEFAULT_NETWORK="ethereum"
export DEFAULT_PROVIDER="infura"
# Run server
npm start
Claude Desktop
Add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"evm-mcp": {
"command": "node",
"args": ["/absolute/path/to/evm-mcp/build/index.js"],
"env": {
"INFURA_API_KEY": "your-infura-api-key",
"DEFAULT_NETWORK": "ethereum",
"DEFAULT_PROVIDER": "infura",
"RPC_PROVIDER_ORDER": "infura,alchemy"
}
}
}
}
Restart Claude Desktop after configuration.
Configuration
Environment Variables
| Variable | Required | Description |
| -------------------- | -------- | ------------------------------------------------------------------- |
| INFURA_API_KEY | One of* | Infura project API key (built-in preset) |
| ALCHEMY_API_KEY | One of* | Alchemy app API key (built-in preset) |
| DEFAULT_NETWORK | No | Default chain slug or chain ID (default: ethereum) |
| DEFAULT_PROVIDER | No | Provider slug to prefer (infura, alchemy, or custom) |
| RPC_PROVIDER_ORDER | No | Comma-separated provider fallback order (default: infura,alchemy) |
| CUSTOM_PROVIDERS | One of* | JSON array of user-defined providers |
| CUSTOM_NETWORKS | One of* | JSON array of user-defined networks |
| KNOWN_ADDRESSES | No | JSON array of known tokens/contracts (network-scoped) |
| WALLET_ADDRESSES | No | JSON array of personal wallet and contract aliases |
*At least one provider API key, custom provider, or custom network with rpcUrl is required.
Built-in Providers (Infura / Alchemy)
Set an API key and the server builds RPC URLs automatically for supported networks:
{
"INFURA_API_KEY": "your-infura-key",
"DEFAULT_NETWORK": "ethereum",
"DEFAULT_PROVIDER": "infura",
"RPC_PROVIDER_ORDER": "infura,alchemy"
}
Each RPC tool accepts an optional network parameter (slug, name, or chain ID). When omitted, DEFAULT_NETWORK is used.
{
"tool": "eth_chainId",
"arguments": { "network": "polygon" }
}
Use list_supported_networks to discover configured networks and providers.
Custom Providers (CUSTOM_PROVIDERS)
Register any RPC provider by supplying a base URL template and network-specific URLs:
"CUSTOM_PROVIDERS": "[{\"slug\":\"quicknode\",\"apiKeyEnv\":\"QUICKNODE_API_KEY\",\"baseUrl\":\"https://rpc.example.com/v1/{apiKey}\",\"networkUrls\":{\"ethereum\":\"https://eth.quiknode.pro/{apiKey}/\",\"polygon\":\"https://polygon.quiknode.pro/{apiKey}/\"}}]"
- Absolute
networkUrlsvalues are used directly (with{apiKey}substitution). - Relative paths (starting with
/) are appended tobaseUrl.
Custom Networks (CUSTOM_NETWORKS)
Register arbitrary chains by name:
"CUSTOM_NETWORKS": "[{\"name\":\"HyperEVM\",\"slug\":\"hyperevm\",\"chainId\":999,\"rpcUrl\":\"https://rpc.hyperliquid.xyz/evm\"}]"
Or route through a provider by setting provider and adding the network slug to that provider's networkUrls.
Known Addresses (KNOWN_ADDRESSES)
Register tokens and contracts by name so tools accept aliases like USDC instead of raw hex addresses. Each entry is scoped to a network:
"KNOWN_ADDRESSES": "[{\"name\":\"USDC\",\"address\":\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\"network\":\"ethereum\",\"type\":\"token\",\"decimals\":6,\"aliases\":[\"usd-coin\"]}]"
| Field | Required | Description |
| ---------- | -------- | -------------------------------------------- |
| name | yes | Primary lookup key |
| address | yes | Checksummed contract address |
| network | yes | Chain slug, name, chain ID, or network alias |
| type | no | token or contract (default: contract) |
| decimals | no | Token decimals for formatted balances |
| aliases | no | Extra lookup keys |
When eth_getBalance is called with a token alias, the server uses the first configured wallet in WALLET_ADDRESSES as the token holder.
Wallet Addresses (WALLET_ADDRESSES)
Register personal wallets and contracts by alias so you can say "check my personal wallet" instead of pasting hex:
"WALLET_ADDRESSES": "[{\"name\":\"my-wallet\",\"address\":\"0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f\",\"aliases\":[\"personal\",\"my wallet\"],\"description\":\"Main EOA\"}]"
| Field | Required | Description |
| ------------- | -------- | ---------------------------------------------- |
| name | yes | Primary lookup key |
| address | yes | Wallet or contract address |
| network | no | Scope alias to one chain (default: all chains) |
| aliases | no | Extra lookup keys |
| description | no | Human-readable note |
Address aliases work in eth_getBalance, eth_getCode, eth_call, eth_getLogs, and other tools that accept address parameters. Use list_known_addresses to discover configured aliases.
Migration from RPC_URL
- "RPC_URL": "https://mainnet.infura.io/v3/KEY"
- "CHAIN_ID": "1"
+ "INFURA_API_KEY": "KEY"
+ "DEFAULT_NETWORK": "ethereum"
+ "DEFAULT_PROVIDER": "infura"
Configuration changes require restarting the MCP server.
Supported Built-in Networks
- Ethereum: Mainnet, Sepolia
- Polygon: Mainnet, Amoy
- Arbitrum: One, Sepolia
- Optimism: Mainnet, Sepolia
- BNB Smart Chain: Mainnet, Testnet
- Avalanche: C-Chain
- Base: Mainnet, Sepolia
- Any EVM-compatible chain via
CUSTOM_NETWORKS
Usage Examples
Get Latest Block Number
Query the current block number:
{
"tool": "eth_blockNumber",
"arguments": {}
}
Get Account Balance
Check an address balance using a hex address or configured alias:
{
"tool": "eth_getBalance",
"arguments": {
"address": "personal",
"blockNumber": "latest"
}
}
Get Transaction Details
View transaction information:
{
"tool": "eth_getTransactionByHash",
"arguments": {
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
}
Call Smart Contract
Execute a contract call:
{
"tool": "eth_call",
"arguments": {
"to": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",
"data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b8D6Ac6e2F0C4C9B7C"
}
}
Get Event Logs
Query contract events:
{
"tool": "eth_getLogs",
"arguments": {
"fromBlock": "0x1234567",
"toBlock": "latest",
"address": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
]
}
}
Use Cases
- Blockchain Analytics – Query transaction data, balances, and contract states
- DeFi Applications – Monitor token balances, transaction receipts, and smart contract calls
- NFT Projects – Track transfers, metadata, and collection statistics
- Development Tools – Debug transac
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
94.6kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
85.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
84.0kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
73.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
