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
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.
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
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 valueeth_call โ Execute contract calleth_estimateGas โ Estimate gas for transactioneth_sendRawTransaction โ Send signed transactioneth_gasPrice โ Get current gas priceeth_getLogs โ Get event logseth_chainId โ Get chain IDnet_version โ Get network versionnet_listening โ Check if listeningnet_peerCount โ Get peer countweb3_clientVersion โ Get client versionweb3_sha3 โ Hash data with Keccak-256Click the install link above or use:
cursor://anysphere.cursor-deeplink/mcp/install?name=evm-mcp&config=eyJldm0tbWNwIjp7ImNvbW1hbmQiOiJucHgiLCJhcmdzIjpbIi15IiwiQGphbWVzYW56L2V2bS1tY3AiXX19
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 RPC URL
export RPC_URL="https://mainnet.infura.io/v3/YOUR_API_KEY"
export CHAIN_ID="1"
# Run server
npm start
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": {
"RPC_URL": "https://mainnet.infura.io/v3/YOUR_API_KEY",
"CHAIN_ID": "1"
}
}
}
}
Restart Claude Desktop after configuration.
# Infura
RPC_URL=https://mainnet.infura.io/v3/YOUR_API_KEY
# Alchemy
RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# QuickNode
RPC_URL=https://YOUR_ENDPOINT.quiknode.pro/YOUR_TOKEN/
# Public endpoints (rate limited)
RPC_URL=https://bsc-dataseed.binance.org
RPC_URL=https://polygon-rpc.com
RPC_URL=https://arb1.arbitrum.io/rpc
# Local node
RPC_URL=http://localhost:8545
Query the current block number:
{
"tool": "eth_blockNumber",
"arguments": {}
}
Check an address balance:
{
"tool": "eth_getBalance",
"arguments": {
"address": "0x742d35Cc6634C0532925a3b8D6Ac6e2F0C4C9B7C",
"blockNumber": "latest"
}
}
View transaction information:
{
"tool": "eth_getTransactionByHash",
"arguments": {
"txHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}
}
Execute a contract call:
{
"tool": "eth_call",
"arguments": {
"to": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",
"data": "0x70a08231000000000000000000000000742d35Cc6634C0532925a3b8D6Ac6e2F0C4C9B7C"
}
}
Query contract events:
{
"tool": "eth_getLogs",
"arguments": {
"fromBlock": "0x1234567",
"toBlock": "latest",
"address": "0xA0b86a33E6441c8C06DDD46C310c0eF8D9441C8F",
"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]
}
}
Built with: Node.js, TypeScript, MCP SDK, Ethers.js
Dependencies: @modelcontextprotocol/sdk, ethers, zod
Platforms: macOS, Windows, Linux
Environment Variables:
RPC_URL (required): Any EVM-compatible RPC endpointCHAIN_ID (optional): Chain ID for the network (defaults to 1)โญ If this project helps you, please star it on GitHub! โญ
Contributions welcome! Please open an issue or submit a pull request.
MIT License โ see LICENSE.md for details.
If you find this project useful, consider supporting it:
โก Lightning Network
lnbc1pjhhsqepp5mjgwnvg0z53shm22hfe9us289lnaqkwv8rn2s0rtekg5vvj56xnqdqqcqzzsxqyz5vqsp5gu6vh9hyp94c7t3tkpqrp2r059t4vrw7ps78a4n0a2u52678c7yq9qyyssq7zcferywka50wcy75skjfrdrk930cuyx24rg55cwfuzxs49rc9c53mpz6zug5y2544pt8y9jflnq0ltlha26ed846jh0y7n4gm8jd3qqaautqa
โฟ Bitcoin: bc1ptzvr93pn959xq4et6sqzpfnkk2args22ewv5u2th4ps7hshfaqrshe0xtp
ฮ Ethereum/EVM: 0x42ea529282DDE0AA87B42d9E83316eb23FE62c3f
Install via CLI
npx mdskills install JamesANZ/evm-mcpEVM MCP Server is a free, open-source AI agent skill. 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
Install EVM MCP Server with a single command:
npx mdskills install JamesANZ/evm-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
EVM MCP Server works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.