EVM Blockchain

EVM Blockchain

mcpdotdirect

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.

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.

367344 views96Local (stdio)

What it does

  • 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

Best for

DeFi application developersBlockchain data analystsWeb3 automation toolsMulti-chain portfolio tracking
60+ EVM networks supportedAutomatic ABI fetchingENS resolution for all addresses

About EVM Blockchain

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

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.

Tools (28)

get_chain_info

Get information about an EVM network

resolve_ens

Resolve an ENS name to an Ethereum address

get_supported_networks

Get a list of supported EVM networks

get_block_by_number

Get a block by its block number

get_latest_block

Get the latest block from the EVM

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

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

18
ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

6
blockchain-developer

Build production-ready Web3 applications, smart contracts, and decentralized systems. Implements DeFi protocols, NFT platforms, DAOs, and enterprise blockchain integrations. Use PROACTIVELY for smart contracts, Web3 apps, DeFi protocols, or blockchain infrastructure.

5
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

4
openai-knowledge

Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.

4
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

3