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. - π 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 blockch
Add this skill
npx mdskills install JamesANZ/evm-mcpComprehensive EVM blockchain integration with 20+ JSON-RPC methods and excellent multi-network support
1# β½ EVM MCP Server23> **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.45An [MCP (Model Context Protocol)](https://modelcontextprotocol.io) server that provides comprehensive access to Ethereum Virtual Machine (EVM) JSON-RPC methods for AI coding environments like Cursor and Claude Desktop.67## Why Use EVM MCP?89- π **Any EVM Network** β Ethereum, Polygon, Arbitrum, Optimism, BSC, Avalanche, and more10- π **Any Node Provider** β Infura, Alchemy, QuickNode, local nodes, or custom RPC11- π **20+ RPC Methods** β Complete access to blockchain data, transactions, and contracts12- β‘ **Easy Setup** β One-click install in Cursor or simple manual setup13- π§ **Flexible Configuration** β Works with any JSON-RPC compatible endpoint1415## Quick Start1617Ready to interact with EVM blockchains? Install in seconds:1819**Install in Cursor (Recommended):**2021[π Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=evm-mcp&config=eyJldm0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiQGphbWVzYW56L2V2bS1tY3AiXX19)2223**Or install manually:**2425```bash26npm install -g @jamesanz/evm-mcp27# Or from source:28git clone https://github.com/JamesANZ/evm-mcp.git29cd evm-mcp && npm install && npm run build30```3132## Features3334### π’ Blockchain Data35- **`eth_blockNumber`** β Get latest block number36- **`eth_getBalance`** β Get account balance37- **`eth_getTransactionCount`** β Get transaction count (nonce)38- **`eth_getBlockByNumber`** β Get block information39- **`eth_getTransactionByHash`** β Get transaction details40- **`eth_getTransactionReceipt`** β Get transaction receipt41- **`eth_getCode`** β Get contract bytecode42- **`eth_getStorageAt`** β Get storage value4344### π Transactions45- **`eth_call`** β Execute contract call46- **`eth_estimateGas`** β Estimate gas for transaction47- **`eth_sendRawTransaction`** β Send signed transaction48- **`eth_gasPrice`** β Get current gas price4950### π Events & Logs51- **`eth_getLogs`** β Get event logs5253### π Network54- **`eth_chainId`** β Get chain ID55- **`net_version`** β Get network version56- **`net_listening`** β Check if listening57- **`net_peerCount`** β Get peer count5859### π Web360- **`web3_clientVersion`** β Get client version61- **`web3_sha3`** β Hash data with Keccak-2566263## Installation6465### Cursor (One-Click)6667Click the install link above or use:6869```70cursor://anysphere.cursor-deeplink/mcp/install?name=evm-mcp&config=eyJldm0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiQGphbWVzYW56L2V2bS1tY3AiXX1971```7273### Manual Installation7475**Requirements:** Node.js 18+ and npm7677```bash78# Clone and build79git clone https://github.com/JamesANZ/evm-mcp.git80cd evm-mcp81npm install82npm run build8384# Set RPC URL85export RPC_URL="https://mainnet.infura.io/v3/YOUR_API_KEY"86export CHAIN_ID="1"8788# Run server89npm start90```9192### Claude Desktop9394Add to `claude_desktop_config.json`:9596**macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`97**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`9899```json100{101 "mcpServers": {102 "evm-mcp": {103 "command": "node",104 "args": ["/absolute/path/to/evm-mcp/build/index.js"],105 "env": {106 "RPC_URL": "https://mainnet.infura.io/v3/YOUR_API_KEY",107 "CHAIN_ID": "1"108 }109 }110 }111}112```113114Restart Claude Desktop after configuration.115116## Configuration117118### RPC URL Examples119120```bash121# Infura122RPC_URL=https://mainnet.infura.io/v3/YOUR_API_KEY123124# Alchemy125RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY126127# QuickNode128RPC_URL=https://YOUR_ENDPOINT.quiknode.pro/YOUR_TOKEN/129130# Public endpoints (rate limited)131RPC_URL=https://bsc-dataseed.binance.org132RPC_URL=https://polygon-rpc.com133RPC_URL=https://arb1.arbitrum.io/rpc134135# Local node136RPC_URL=http://localhost:8545137```138139### Supported Networks140141- **Ethereum**: Mainnet, Sepolia, Goerli142- **Polygon**: Mainnet, Mumbai143- **Arbitrum**: One, Sepolia144- **Optimism**: Mainnet, Sepolia145- **BNB Smart Chain**: Mainnet, Testnet146- **Avalanche**: C-Chain147- **Fantom**: Opera148- **Any EVM-compatible chain**149150## Usage Examples151152### Get Latest Block Number153Query the current block number:154155```json156{157 "tool": "eth_blockNumber",158 "arguments": {}159}160```161162### Get Account Balance163Check an address balance:164165```json166{167 "tool": "eth_getBalance",168 "arguments": {169 "address": "0x742d35Cc6634C0532925a3b8D6Ac6e2F0C4C9B7C",170 "blockNumber": "latest"171 }172}173```174175### Get Transaction Details176View transaction information:177178```json179{180 "tool": "eth_getTransactionByHash",181 "arguments": {182 "txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"183 }184}185```186187### Call Smart Contract188Execute a contract call:189190```json191{192 "tool": "eth_call",193 "arguments": {194 "to": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",195 "data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b8D6Ac6e2F0C4C9B7C"196 }197}198```199200### Get Event Logs201Query contract events:202203```json204{205 "tool": "eth_getLogs",206 "arguments": {207 "fromBlock": "0x1234567",208 "toBlock": "latest",209 "address": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",210 "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]211 }212}213```214215## Use Cases216217- **Blockchain Analytics** β Query transaction data, balances, and contract states218- **DeFi Applications** β Monitor token balances, transaction receipts, and smart contract calls219- **NFT Projects** β Track transfers, metadata, and collection statistics220- **Development Tools** β Debug transactions, estimate gas, and test smart contracts221- **Monitoring** β Watch for specific events and transaction patterns222- **Research** β Analyze blockchain data across multiple EVM networks223224## Technical Details225226**Built with:** Node.js, TypeScript, MCP SDK, Ethers.js227**Dependencies:** `@modelcontextprotocol/sdk`, `ethers`, `zod`228**Platforms:** macOS, Windows, Linux229230**Environment Variables:**231- `RPC_URL` (required): Any EVM-compatible RPC endpoint232- `CHAIN_ID` (optional): Chain ID for the network (defaults to 1)233234## Contributing235236β **If this project helps you, please star it on GitHub!** β237238Contributions welcome! Please open an issue or submit a pull request.239240## License241242MIT License β see [LICENSE.md](LICENSE.md) for details.243244## Support245246If you find this project useful, consider supporting it:247248**β‘ Lightning Network**249```250lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa251```252253**βΏ Bitcoin**: [bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp](https://mempool.space/address/bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp)254255**Ξ Ethereum/EVM**: [0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f](https://etherscan.io/address/0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f)256
Full transparency β inspect the skill content before installing.