
MCP服务器为LLM提供与EVM网络交互的工具
概览
一台全面的模型上下文协议(MCP)服务器,提供跨60+个EVM兼容网络的区块链服务。该服务器使AI代理能够通过22个工具和10个AI引导提示,以统一界面与以太坊、Optimism、Arbitrum、Base、Polygon及众多其他EVM链交互。 MCP EVM 服务器利用模型上下文协议(Model Context Protocol)为人工智能代理提供区块链服务。它支持多种服务,包括: - 读取区块链状态(余额、交易、区块等)- 通过区块浏览器与智能合约交互 - 转移代币(原生、ERC20、ERC721、ERC1155)- 查询代币元数据和余额 - 跨60+ EVM网络(34个主网+26个测试网)的链专用服务——所有地址参数(使用人读名称如“vitalik”。
概述(AI 翻译)
一台全面的模型上下文协议(MCP)服务器,提供跨60+个EVM兼容网络的区块链服务。该服务器使AI代理能够通过22个工具和10个AI引导提示,以统一界面与以太坊、Optimism、Arbitrum、Base、Polygon及众多其他EVM链交互。
📋 目录
- 概述
- 特色
- 支持网络
- 先决条件
- 安装
- 配置
- 环境变量
- 服务器配置
- 使用情况
- API 参考
- 工具
- 提示
- 资源
- 安全考量
- 项目结构
- 发展
- 许可证
🔭 概述
MCP EVM 服务器利用模型上下文协议(Model Context Protocol)为人工智能代理提供区块链服务。它支持多种服务,包括:
- 读取区块链状态(余额、交易、区块等)
- 通过自动ABI获取从区块浏览器中与智能合约交互
- 转移令牌(本地,ERC20,ERC721,ERC1155)
- 查询代币元数据和余额
- 跨60+ EVM网络(34个主网+26个测试网)的链特定服务
- ENS 名称解析所有地址参数(使用人类可读名称如 ‘vitalik.’
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
EVM MCP Server
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
- Features
- Supported Networks
- Prerequisites
- Installation
- Configuration
- Usage
- API Reference
- Security Considerations
- Project Structure
- Development
- License
🔭 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
安装
npx -y @mcpdotdirect/evm-mcp-server配置
{
"mcpServers": {
"evm-mcp-server": {
"command": "npx",
"args": ["-y", "@mcpdotdirect/evm-mcp-server"]
},
"evm-mcp-http": {
"command": "npx",
"args": ["-y", "@mcpdotdirect/evm-mcp-server", "--http"]
}
}
}