developer-tools

EVM Blockchain

by mcpdotdirect

EVM Blockchain connects with Ethereum, Optimism, Arbitrum, and Base for token transfers, smart contract data, and ENS na

Integrates with EVM-compatible blockchains to enable querying data, transferring tokens, reading smart contracts, and resolving ENS names across Ethereum, Optimism, Arbitrum, and Base networks.

github stars

367

60+ EVM networks supportedAutomatic ABI fetchingENS resolution for all addresses

best for

  • / DeFi application developers
  • / Blockchain data analysts
  • / Web3 automation tools
  • / Multi-chain portfolio tracking

capabilities

  • / Query blockchain data (blocks, transactions, balances)
  • / Transfer native and ERC20 tokens
  • / Resolve ENS names to addresses
  • / Interact with smart contracts
  • / Get token balances and metadata
  • / Access chain information across networks

what it does

Provides blockchain data access and token operations across 60+ EVM-compatible networks including Ethereum, Arbitrum, Optimism, and Base. Features automatic ENS resolution and smart contract interaction with ABI fetching.

about

EVM Blockchain is a community-built MCP server published by mcpdotdirect that provides AI assistants with tools and capabilities via the Model Context Protocol. EVM Blockchain connects with Ethereum, Optimism, Arbitrum, and Base for token transfers, smart contract data, and ENS na It is categorized under developer tools. This server exposes 28 tools that AI clients can invoke during conversations and coding sessions.

how to install

You can install EVM Blockchain in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

EVM Blockchain is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

EVM MCP Server

License: MIT EVM Networks TypeScript MCP Viem

A comprehensive Model Context Protocol (MCP) server that provides blockchain services across 60+ 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 through 22 tools and 10 AI-guided prompts.

📋 Contents

🔭 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 with automatic ABI fetching from block explorers
  • Transferring tokens (native, ERC20, ERC721, ERC1155)
  • Querying token metadata and balances
  • Chain-specific services across 60+ EVM networks (34 mainnets + 26 testnets)
  • ENS name resolution for all address parameters (use human-readable names like 'vitalik.eth' instead of addresses)
  • AI-friendly prompts that guide agents through complex workflows

All services are exposed through a consistent interface of MCP tools, resources, and prompts, 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. The server includes intelligent ABI fetching, eliminating the need to know contract ABIs in advance.

✨ Features

Blockchain Data Access

  • Multi-chain support for 60+ EVM-compatible networks (34 mainnets + 26 testnets)
  • 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 to contracts - Execute any state-changing function with automatic ABI fetching
  • Contract verification to distinguish from EOAs
  • Event logs retrieval and filtering
  • Automatic ABI fetching from Etherscan v2 API across all 60+ networks (no need to know ABIs in advance)
  • ABI parsing and validation with function discovery

Comprehensive Transaction Support

  • Flexible Wallet Support - Configure with Private Key or Mnemonic (BIP-39) with HD path support
  • Native token transfers across all supported networks
  • Gas estimation for transaction planning
  • Transaction status and receipt information
  • Error handling with descriptive messages

Message Signing Capabilities

  • Personal Message Signing - Sign arbitrary messages for authentication and verification
  • EIP-712 Typed Data Signing - Sign structured data for gasless transactions and meta-transactions
  • SIWE Support - Enable Sign-In With Ethereum authentication flows
  • Permit Signatures - Create off-chain approvals for gasless token operations
  • Meta-Transaction Support - Sign transaction data for relay services and gasless transfers

AI-Guided Workflows (Prompts)

  • Transaction preparation - Guidance for planning and executing transfers
  • Wallet analysis - Tools for analyzing wallet activity and holdings
  • Smart contract exploration - Interactive ABI fetching and contract analysis
  • Contract interaction - Safe execution of write operations on smart contracts
  • Network information - Learning about EVM networks and comparisons
  • Approval auditing - Reviewing and managing token approvals
  • Error diagnosis - Troubleshooting transaction failures

🌐 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 (recommended)
  • Node.js 20.0.0 or higher (if not using Bun)
  • Optional: Etherscan API key for ABI fetching

📦 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

⚙️ Configuration

Environment Variables

The server uses the following environment variables. For write operations and ABI fetching, you must configure these variables:

Wallet Configuration (For Write Operations)

You can configure your wallet using either a private key or a mnemonic phrase:

Option 1: Private Key

export EVM_PRIVATE_KEY="0x..." # Your private key in hex format (with or without 0x prefix)

Option 2: Mnemonic Phrase (Recommended for HD Wallets)

export EVM_MNEMONIC="word1 word2 word3 ... word12" # Your 12 or 24 word BIP-39 mnemonic
export EVM_ACCOUNT_INDEX="0" # Optional: Account index for HD wallet derivation (default: 0)

The mnemonic option supports hierarchical deterministic (HD) wallet derivation:

  • Uses BIP-39 standard mnemonic phrases (12 or 24 words)
  • Supports BIP-44 derivation path: m/44'/60'/0'/0/{accountIndex}
  • EVM_ACCOUNT_INDEX allows you to derive different accounts from the same mnemonic
  • Default account index is 0 (first account)

Wallet is used for:

  • Transferring native tokens (transfer_native tool)
  • Transferring ERC20 tokens (transfer_erc20 tool)
  • Approving token spending (approve_token_spending tool)
  • Writing to smart contracts (write_contract tool)
  • Signing messages for authentication (sign_message tool)
  • Signing structured data for gasless transactions (sign_typed_data tool)

⚠️ Security:

  • Never commit your private key or mnemonic to version control
  • Use environment variables or a secure key management system
  • Store mnemonics securely - they provide access to all derived accounts
  • Consider using different account indices for different purposes

API Keys (For ABI Fetching)

export ETHERSCAN_API_KEY="your-api-key-here"

This API key is optional but required for:

  • Automatic ABI fetching from block explorers (get_contract_abi tool)
  • Auto-fetching ABIs when reading contracts (read_contract tool with abiJson parameter)
  • The fetch_and_analyze_abi prompt

Get your free API key from:

  • Etherscan - For Ethereum and compatible chains
  • The same key works across all 60+ EVM networks via the Etherscan v2 API

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.ts
  • For 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 --http

Running 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 dev

Or start the HTTP server with SSE for web applications:

# Start the HTTP server
bun start:http

# Development mode with auto-reload
bun dev:http

Connecting 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:

  1. Open Cursor and go to Settings (gear icon in the bottom left)
  2. Click on "Features" in the left sidebar 3

FAQ

What is the EVM Blockchain MCP server?
EVM Blockchain is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
How do MCP servers relate to agent skills?
Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
How are reviews shown for EVM Blockchain?
This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
MCP server reviews

Ratings

4.510 reviews
  • Shikha Mishra· Oct 10, 2024

    EVM Blockchain is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

  • Piyush G· Sep 9, 2024

    We evaluated EVM Blockchain against two servers with overlapping tools; this profile had the clearer scope statement.

  • Chaitanya Patil· Aug 8, 2024

    Useful MCP listing: EVM Blockchain is the kind of server we cite when onboarding engineers to host + tool permissions.

  • Sakshi Patil· Jul 7, 2024

    EVM Blockchain reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

  • Ganesh Mohane· Jun 6, 2024

    I recommend EVM Blockchain for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

  • Oshnikdeep· May 5, 2024

    Strong directory entry: EVM Blockchain surfaces stars and publisher context so we could sanity-check maintenance before adopting.

  • Dhruvi Jain· Apr 4, 2024

    EVM Blockchain has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

  • Rahul Santra· Mar 3, 2024

    According to our notes, EVM Blockchain benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

  • Pratham Ware· Feb 2, 2024

    We wired EVM Blockchain into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

  • Yash Thakker· Jan 1, 2024

    EVM Blockchain is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.