Repository
The EVM MCP server is available in the chainstacklabs/rpc-nodes-mcp repository, which contains both EVM and Solana blockchain interaction capabilities.Supported networks
The EVM MCP server supports all EVM-compatible networks available on Chainstack, including:- Ethereum (Mainnet, Sepolia, Holesky)
- Polygon (Mainnet, Amoy testnet)
- BNB Smart Chain (Mainnet, testnet)
- Arbitrum (One, Sepolia)
- Optimism (Mainnet, Sepolia)
- Base (Mainnet, Sepolia)
- Avalanche C-Chain
- And many more EVM-compatible networks
Available functions
The EVM MCP server provides comprehensive blockchain interaction capabilities:Network information
- Get supported blockchains - Retrieve list of available networks
- Get client version - Check node client information
- Get network version - Retrieve network ID
- Get chain ID - Fetch the chain identifier
Block operations
- Get latest block number - Retrieve current block height
- Get block by number/hash - Fetch complete block information
- Get block transaction count - Count transactions in a block
- Get block receipts - Retrieve all transaction receipts for a block
Account and balance queries
- Get account balance - Check ETH/native token balance
- Get transaction count - Retrieve account nonce
- Get contract code - Fetch smart contract bytecode
- Get storage values - Read contract storage slots
Transaction operations
- Get transaction by hash - Retrieve transaction details
- Get transaction receipt - Fetch transaction execution results
- Estimate gas - Calculate gas requirements for transactions
- Get gas price - Retrieve current gas pricing
- Get fee history - Analyze historical fee data
Smart contract interactions
- Call contract methods - Execute read-only contract calls
- Simulate transactions - Test transactions without execution
- Get event logs - Query contract event emissions
- Get proofs - Retrieve Merkle proofs for accounts and storage
Advanced features
- Debug transaction traces - Detailed execution analysis
- Trace calls and blocks - Comprehensive execution tracing
- State overrides - Simulate with modified blockchain state
- Batch requests - Execute multiple calls efficiently
Use cases
The EVM MCP server enables AI applications to:DeFi and trading analysis
- Monitor token balances and portfolio values
- Track transaction flows and trading patterns
- Analyze gas usage and optimization opportunities
- Query DeFi protocol states and liquidity metrics
Smart contract development
- Test contract interactions before deployment
- Debug transaction failures with detailed traces
- Simulate complex scenarios with state overrides
- Validate contract behavior across different conditions
Blockchain analytics
- Extract event data from smart contracts
- Analyze block composition and network activity
- Track address interactions and transaction patterns
- Generate reports on blockchain metrics
Real-time monitoring
- Watch for specific events or transactions
- Monitor contract state changes in real-time
- Track network congestion and gas price trends
- Alert on important blockchain events