evm-mcp-server
by mcpdotdirect·★ 376·综合分 49
全面的 MCP 服务器,提供跨 60+ EVM 网络的区块链交互工具和 AI 指导提示。
概述
EVM MCP Server 是一个强大的实现,使 AI 能够通过统一接口与区块链网络交互。它支持 34 条主网和 26 条测试网,包括以太坊、Optimism、Arbitrum、Base 等。服务器提供全面的区块链服务,包括读取状态、智能合约交互、代币转账(ERC20、ERC721、 ERC1155)、ENS 名称解析和消息签名功能。其自动 ABI 获取功能无需预先了解合约 ABI,特别适合 AI 使用。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您的 AI 代理需要与区块链网络交互、转移代币、查询余额或在多个 EVM 链上使用智能合约时,选择此服务器。
什么时候不要选它
如果您需要在非 EVM 链(如比特币或 Solana)上使用区块链功能,或需要企业级安全功能(如多签钱包),请不要选择它。
此 server 暴露的工具
从 README 抽取出 12 个工具get_eth_balanceGet the native token (ETH) balance of an address or ENS name
transfer_nativeTransfer native tokens (ETH) between addresses
get_token_balanceGet balance of a specific ERC20 token for an address
transfer_erc20Transfer ERC20 tokens between addresses
read_contractRead data from a smart contract using its ABI
write_contractExecute a state-changing function on a smart contract
get_contract_abiFetch the ABI of a smart contract from a block explorer
get_transaction_detailsRetrieve details and receipt of a transaction
sign_messageSign an arbitrary message with the configured wallet
approve_token_spendingApprove a contract to spend tokens on behalf of the wallet
get_block_infoGet information about a specific block
resolve_ensResolve an ENS name to its Ethereum address
可对比工具
安装
安装
# 克隆仓库
git clone https://github.com/mcpdotdirect/mcp-evm-server.git
cd mcp-evm-server
# 使用 Bun 安装依赖
bun install
# 或使用 npm
npm installClaude Desktop 配置
添加到您的 claude_desktop_config.json 文件中:
{
"mcpServers": {
"evm-mcp-server": {
"command": "npx",
"args": ["-y", "@mcpdotdirect/evm-mcp-server"]
},
"evm-mcp-http": {
"command": "npx",
"args": ["-y", "@mcpdotdirect/evm-mcp-server", "--http"]
}
}
}FAQ
- 支持哪些网络?
- 该服务器支持 34 条主网和 26 条测试网,包括以太坊、Optimism、Arbitrum、Base、Polygon、Avalanche、币安智能链、zkSync Era 等。
- 我需要手动提供合约 ABI 吗?
- 不需要,服务器会自动从 Etherscan 等区块浏览器获取 ABI,无需手动提供。
evm-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。