EVM MCP Server
Supports Binance Smart Chain (BSC) mainnet and testnet, providing tools to read blockchain state, interact with smart contracts, and transfer native and token assets.
Provides tools for reading Ethereum blockchain state (balances, blocks, transactions), interacting with smart contracts, resolving ENS names, and transferring native, ERC20, ERC721, and ERC1155 tokens.
Provides blockchain data access and smart contract/token transfer operations on Fantom.
Provides blockchain data access and smart contract/token transfer operations on Optimism mainnet and Sepolia.
Provides blockchain data access and smart contract/token transfer operations on Polygon, Polygon zkEVM, and Polygon Amoy.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EVM MCP Server what's the ETH balance of vitalik.eth?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EVM MCP Server
A comprehensive Model Context Protocol (MCP) server that provides blockchain services across multiple EVM-compatible networks. This server enables AI agents to interact with Ethereum, Optimism, Arbitrum, Base, Polygon, and many other EVM chains with a unified interface.
π Contents
Related MCP server: Bink MCP Server
π Overview
The MCP EVM Server leverages the Model Context Protocol to provide blockchain services to AI agents. It supports a wide range of services including:
Reading blockchain state (balances, transactions, blocks, etc.)
Interacting with smart contracts
Transferring tokens (native, ERC20, ERC721, ERC1155)
Querying token metadata and balances
Chain-specific services across 30+ EVM networks
ENS name resolution for all address parameters (use human-readable names like 'vitalik.eth' instead of addresses)
All services are exposed through a consistent interface of MCP tools and resources, making it easy for AI agents to discover and use blockchain functionality. Every tool that accepts Ethereum addresses also supports ENS names, automatically resolving them to addresses behind the scenes.
β¨ Features
Blockchain Data Access
Multi-chain support for 30+ EVM-compatible networks
Chain information including blockNumber, chainId, and RPCs
Block data access by number, hash, or latest
Transaction details and receipts with decoded logs
Address balances for native tokens and all token standards
ENS resolution for human-readable Ethereum addresses (use 'vitalik.eth' instead of '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045')
Token services
ERC20 Tokens
Get token metadata (name, symbol, decimals, supply)
Check token balances
Transfer tokens between addresses
Approve spending allowances
NFTs (ERC721)
Get collection and token metadata
Verify token ownership
Transfer NFTs between addresses
Retrieve token URIs and count holdings
Multi-tokens (ERC1155)
Get token balances and metadata
Transfer tokens with quantity
Access token URIs
Smart Contract Interactions
Read contract state through view/pure functions
Write services with private key signing
Contract verification to distinguish from EOAs
Event logs retrieval and filtering
Comprehensive Transaction Support
Native token transfers across all supported networks
Gas estimation for transaction planning
Transaction status and receipt information
Error handling with descriptive messages
π Supported Networks
Mainnets
Ethereum (ETH)
Optimism (OP)
Arbitrum (ARB)
Arbitrum Nova
Base
Polygon (MATIC)
Polygon zkEVM
Avalanche (AVAX)
Binance Smart Chain (BSC)
zkSync Era
Linea
Celo
Gnosis (xDai)
Fantom (FTM)
Filecoin (FIL)
Moonbeam
Moonriver
Cronos
Scroll
Mantle
Manta
Blast
Fraxtal
Mode
Metis
Kroma
Zora
Aurora
Canto
Flow
Lumia
Testnets
Sepolia
Optimism Sepolia
Arbitrum Sepolia
Base Sepolia
Polygon Amoy
Avalanche Fuji
BSC Testnet
zkSync Sepolia
Linea Sepolia
Scroll Sepolia
Mantle Sepolia
Manta Sepolia
Blast Sepolia
Fraxtal Testnet
Mode Testnet
Metis Sepolia
Kroma Sepolia
Zora Sepolia
Celo Alfajores
Goerli
Holesky
Flow Testnet
Filecoin Calibration
Lumia Testnet
π οΈ Prerequisites
Bun 1.0.0 or higher
Node.js 18.0.0 or higher (if not using Bun)
π¦ Installation
# Clone the repository
git clone https://github.com/mcpdotdirect/mcp-evm-server.git
cd mcp-evm-server
# Install dependencies with Bun
bun install
# Or with npm
npm installβοΈ Server Configuration
The server uses the following default configuration:
Default Chain ID: 1 (Ethereum Mainnet)
Server Port: 3001
Server Host: 0.0.0.0 (accessible from any network interface)
These values are hardcoded in the application. If you need to modify them, you can edit the following files:
For chain configuration:
src/core/chains.tsFor server configuration:
src/server/http-server.ts
π Usage
Using npx (No Installation Required)
You can run the MCP EVM Server directly without installation using npx:
# Run the server in stdio mode (for CLI tools)
npx @mcpdotdirect/evm-mcp-server
# Run the server in HTTP mode (for web applications)
npx @mcpdotdirect/evm-mcp-server --httpRunning the Server Locally
Start the server using stdio (for embedding in CLI tools):
# Start the stdio server
bun start
# Development mode with auto-reload
bun devOr start the HTTP server with SSE for web applications:
# Start the HTTP server
bun start:http
# Development mode with auto-reload
bun dev:httpConnecting to the Server
Connect to this MCP server using any MCP-compatible client. For testing and debugging, you can use the MCP Inspector.
Connecting from Cursor
To connect to the MCP server from Cursor:
Open Cursor and go to Settings (gear icon in the bottom left)
Click on "Features" in the left sidebar
Scroll down to "MCP Servers" section
Click "Add new MCP server"
Enter the following details:
Server name:
evm-mcp-serverType:
commandCommand:
npx @mcpdotdirect/evm-mcp-server
Click "Save"
Once connected, you can use the MCP server's capabilities directly within Cursor. The server will appear in the MCP Servers list and can be enabled/disabled as needed.
Using mcp.json with Cursor
For a more portable configuration that you can share with your team or use across projects, you can create an .cursor/mcp.json file in your project's root directory:
{
"mcpServers": {
"evm-mcp-server": {
"command": "npx",
"args": [
"-y",
"@mcpdotdirect/evm-mcp-server"
]
},
"evm-mcp-http": {
"command": "npx",
"args": [
"-y",
"@mcpdotdirect/evm-mcp-server",
"--http"
]
}
}
}Place this file in your project's .cursor directory (create it if it doesn't exist), and Cursor will automatically detect and use these MCP server configurations when working in that project. This approach makes it easy to:
Share MCP configurations with your team
Version control your MCP setup
Use different server configurations for different projects
Example: HTTP Mode with SSE
If you're developing a web application and want to connect to the HTTP server with Server-Sent Events (SSE), you can use this configuration:
{
"mcpServers": {
"evm-mcp-sse": {
"url": "http://localhost:3001/sse"
}
}
}This connects directly to the HTTP server's SSE endpoint, which is useful for:
Web applications that need to connect to the MCP server from the browser
Environments where running local commands isn't ideal
Sharing a single MCP server instance among multiple users or applications
To use this configuration:
Create a
.cursordirectory in your project root if it doesn't existSave the above JSON as
mcp.jsonin the.cursordirectoryRestart Cursor or open your project
Cursor will detect the configuration and offer to enable the server(s)
Example: Using the MCP Server in Cursor
After configuring the MCP server with mcp.json, you can easily use it in Cursor. Here's an example workflow:
Create a new JavaScript/TypeScript file in your project:
// blockchain-example.js
async function main() {
try {
// Get ETH balance for an address using ENS
console.log("Getting ETH balance for vitalik.eth...");
// When using with Cursor, you can simply ask Cursor to:
// "Check the ETH balance of vitalik.eth on mainnet"
// Or "Transfer 0.1 ETH from my wallet to vitalik.eth"
// Cursor will use the MCP server to execute these operations
// without requiring any additional code from you
// This is the power of the MCP integration - your AI assistant
// can directly interact with blockchain data and operations
} catch (error) {
console.error("Error:", error.message);
}
}
main();With the file open in Cursor, you can ask Cursor to:
"Check the current ETH balance of vitalik.eth"
"Look up the price of USDC on Ethereum"
"Show me the latest block on Optimism"
"Check if 0x1234... is a contract address"
Cursor will use the MCP server to execute these operations and return the results directly in your conversation.
The MCP server handles all the blockchain communication while allowing Cursor to understand and execute blockchain-related tasks through natural language.
Connecting using Claude CLI
If you're using Claude CLI, you can connect to the MCP server with just two commands:
# Add the MCP server
claude mcp add evm-mcp-server npx @mcpdotdirect/evm-mcp-server
# Start Claude with the MCP server enabled
claudeExample: Getting a Token Balance with ENS
// Example of using the MCP client to check a token balance using ENS
const mcp = new McpClient("http://localhost:3000");
const result = await mcp.invokeTool("get-token-balance", {
tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC on Ethereum
ownerAddress: "vitalik.eth", // ENS name instead of address
network: "ethereum"
});
console.log(result);
// {
// tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
// owner: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
// network: "ethereum",
// raw: "1000000000",
// formatted: "1000",
// symbol: "USDC",
// decimals: 6
// }Example: Resolving an ENS Name
// Example of using the MCP client to resolve an ENS name to an address
const mcp = new McpClient("http://localhost:3000");
const result = await mcp.invokeTool("resolve-ens", {
ensName: "vitalik.eth",
network: "ethereum"
});
console.log(result);
// {
// ensName: "vitalik.eth",
// normalizedName: "vitalik.eth",
// resolvedAddress: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
// network: "ethereum"
// }π API Reference
Tools
The server provides the following MCP tools for agents. All tools that accept address parameters support both Ethereum addresses and ENS names.
Token services
Tool Name | Description | Key Parameters |
| Get ERC20 token metadata |
|
| Check ERC20 token balance |
|
| Transfer ERC20 tokens |
|
| Approve token allowances |
|
| Get NFT metadata |
|
| Verify NFT ownership |
|
| Transfer an NFT |
|
| Count NFTs owned |
|
| Get ERC1155 metadata |
|
| Check ERC1155 balance |
|
| Transfer ERC1155 tokens |
|
Blockchain services
Tool Name | Description | Key Parameters |
| Get network information |
|
| Get native token balance |
|
| Send native tokens |
|
| Get transaction details |
|
| Read smart contract state |
|
| Write to smart contract |
|
| Check if address is a contract |
|
| Resolve ENS name to address |
|
Resources
The server exposes blockchain data through the following MCP resource URIs. All resource URIs that accept addresses also support ENS names, which are automatically resolved to addresses.
Blockchain Resources
Resource URI Pattern | Description |
| Chain information for a specific network |
| Ethereum mainnet chain information |
| Block data by number |
| Latest block data |
| Native token balance |
| Transaction details |
| Transaction receipt with logs |
Token Resources
Resource URI Pattern | Description |
| ERC20 token information |
| ERC20 token balance |
| NFT (ERC721) token information |
| NFT ownership verification |
| ERC1155 token URI |
| ERC1155 token balance |
π Security Considerations
Private keys are used only for transaction signing and are never stored by the server
Consider implementing additional authentication mechanisms for production use
Use HTTPS for the HTTP server in production environments
Implement rate limiting to prevent abuse
For high-value services, consider adding confirmation steps
π Project Structure
mcp-evm-server/
βββ src/
β βββ index.ts # Main stdio server entry point
β βββ server/ # Server-related files
β β βββ http-server.ts # HTTP server with SSE
β β βββ server.ts # General server setup
β βββ core/
β β βββ chains.ts # Chain definitions and utilities
β β βββ resources.ts # MCP resources implementation
β β βββ tools.ts # MCP tools implementation
β β βββ prompts.ts # MCP prompts implementation
β β βββ services/ # Core blockchain services
β β βββ index.ts # Operation exports
β β βββ balance.ts # Balance services
β β βββ transfer.ts # Token transfer services
β β βββ utils.ts # Utility functions
β β βββ tokens.ts # Token metadata services
β β βββ contracts.ts # Contract interactions
β β βββ transactions.ts # Transaction services
β β βββ blocks.ts # Block services
β β βββ clients.ts # RPC client utilities
βββ package.json
βββ tsconfig.json
βββ README.mdπ οΈ Development
To modify or extend the server:
Add new services in the appropriate file under
src/core/services/Register new tools in
src/core/tools.tsRegister new resources in
src/core/resources.tsAdd new network support in
src/core/chains.tsTo change server configuration, edit the hardcoded values in
src/server/http-server.ts
π License
This project is licensed under the terms of the MIT License.
Available Tools
22 toolsapprove_token_spendingB
Approve another address (like a DeFi protocol or exchange) to spend your ERC20 tokens. This is often required before interacting with DeFi protocols.
Inputs: amount (required), privateKey (required), tokenAddress (required), spenderAddress (required).
estimate_gasC
Estimate the gas cost for a transaction
Inputs: to (required), data, value.
get_address_from_private_keyB
Get the EVM address derived from a private key
Inputs: privateKey (required).
get_balanceB
Get the native token balance (ETH, MATIC, etc.) for an address
Inputs: address (required).
get_block_by_numberC
Get a block by its block number
Inputs: blockNumber (required).
get_chain_infoC
Get information about the Abstract EVM network
Inputs: no named parameters.
get_erc20_balanceC
Get the ERC20 token balance of an Ethereum address
Inputs: address (required), tokenAddress (required).
get_latest_blockB
Get the latest block from Abstract
Inputs: no named parameters.
get_supported_networksB
Get a list of supported EVM networks
Inputs: no named parameters.
get_token_balanceC
Get the balance of an ERC20 token for an address
Inputs: ownerAddress (required), tokenAddress (required).
get_token_balance_erc20C
Get ERC20 token balance for an address
Inputs: address (required), tokenAddress (required).
get_token_infoB
Get comprehensive information about an ERC20 token including name, symbol, decimals, total supply, and other metadata. Use this to analyze any token on EVM chains.
Inputs: tokenAddress (required).
get_token_priceB
Fetch token price on Abstract via Dexscreener
Inputs: tokenAddress (required).
get_transactionA
Get detailed information about a specific transaction by its hash. Includes sender, recipient, value, data, and more.
Inputs: txHash (required).
get_transaction_receiptC
Get a transaction receipt by its hash
Inputs: txHash (required).
is_contractB
Check if an address is a smart contract or an externally owned account (EOA)
Inputs: address (required).
read_contractA
Read data from a smart contract by calling a view/pure function. This doesn't modify blockchain state and doesn't require gas or signing.
Inputs: abi (required), functionName (required), contractAddress (required), args.
resolve_ensA
Resolve an ENS name to an address (resolution via Abstract RPC)
Inputs: ensName (required).
transfer_erc20C
Transfer ERC20 tokens to another address
Inputs: amount (required), toAddress (required), privateKey (required), tokenAddress (required).
transfer_ethC
Transfer native tokens (ETH, MATIC, etc.) to an address
Inputs: to (required), amount (required), privateKey (required).
transfer_tokenC
Transfer ERC20 tokens to an address
Inputs: amount (required), toAddress (required), privateKey (required), tokenAddress (required).
write_contractA
Write data to a smart contract by calling a state-changing function. This modifies blockchain state and requires gas payment and transaction signing.
Inputs: abi (required), args (required), privateKey (required), functionName (required), +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 22 tools
Three tools fetch an ERC20 balance (get_erc20_balance, get_token_balance_erc20, get_token_balance) and two transfer ERC20 tokens (transfer_erc20, transfer_token), with no meaningful distinction an agent could use to choose. Core read/tx/block tools are distinct, but the duplicated balance and transfer pairs create clear misselection risk.
The dominant pattern is verb_noun (get_balance, transfer_eth, read_contract), but the same operation is spelled three ways β get_erc20_balance vs get_token_balance_erc20 vs get_token_balance β with inconsistent placement of the erc20/token qualifier. transfer_eth/transfer_erc20 vs transfer_token further mixes conventions for identical concepts.
22 tools is on the heavy side for an EVM wrapper, and the count is inflated by three redundant balance tools and two redundant transfer tools. Without those duplicates the surface would be a reasonable ~18, so it is borderline rather than clearly wrong.
Core workflows are covered: networks, blocks, balances, transactions and receipts, contract read/write, gas estimation, transfers, approve, ENS, token info/price, and key derivation. Gaps are minor β no event/log queries, no nonce or gas-price lookup, and no signed raw-tx send β which agents can mostly work around.
Maintenance
Related MCP Connectors
EVM chain reads for agents: balances, gas, fees, blocks, txs, logs, ENS. 15 tools, x402 per call.
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
Pay-per-call on-chain data for AI agents: token, wallet, risk, whale, NFT, tx. No API keys.
Provide AI agents and automation tools with contextual access to blockchain data including balanceβ¦
Related MCP Servers
- FlicenseCqualityBmaintenanceEnables AI agents to interact with any EVM-compatible blockchain through natural language, supporting token swaps, cross-chain bridges, staking, lending, governance, gas optimization, and portfolio tracking across networks like Ethereum, BSC, Polygon, Arbitrum, and more.10041 npm44-

Bink MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform blockchain operations like wallet management, token info, DeFi swaps, cross-chain bridging, and price checking across Ethereum, BNB Chain, and Solana.ISC- AlicenseAqualityCmaintenanceEnables AI agents to fetch live multi-chain portfolio, token info, gas prices, and token prices across Ethereum, Base, Polygon, Arbitrum, and Optimism with a single call. No API key required.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to safely interact with Ethereum by providing structured tools for reading blockchain state, simulating transactions, and drafting transactions that require human-in-the-loop approval.1-