Etherscan MCP
@xiaok/etherscan-mcp
用于与 Etherscan 的 API 和服务交互的动态 MCP 服务器。
运行您的服务器
使用mcp-cli进行测试
测试和调试服务器的最快方法是使用fastmcp dev :
npx fastmcp dev server.js
npx fastmcp dev server.ts这将使用mcp-cli运行您的服务器,以便在终端中测试和调试您的 MCP 服务器。
使用MCP Inspector进行检查
另一种方法是使用官方MCP Inspector通过 Web UI 检查您的服务器:
npx fastmcp inspect server.tsRelated MCP server: MCP Etherscan Server
常问问题
如何与 Claude Desktop 一起使用?
按照指南https://modelcontextprotocol.io/quickstart/user并添加以下配置:
{
"mcpServers": {
"my-mcp-server": {
"command": "npx",
"args": ["tsx", "/PATH/TO/YOUR_PROJECT/src/index.ts"],
"env": {
"ETHERSCAN_API_KEY": "********"
}
}
}
}API文档
https://docs.etherscan.io/etherscan-v2
支持链列表: https://docs.etherscan.io/etherscan-v2/getting-started/supported-chains请注意,并非所有链都支持所有端点。支持列表请见此处: https://forms.blockscan.com/public/grid/3E9QiN00NLhCQVibiP3Z-Bpqhmd7zGXsgapEKJupxiI
待办事项
全面测试
Available Tools
6 toolsget_chain_idB
Get the chain ID for a given chain name
Inputs: chain_name (required).
get_filtered_rpc_listC
Get a filtered list of RPC endpoints for a given chain ID
Inputs: chain_id (required), isOpenSource, tracking.
get_token_balanceC
Get the balance of a specific token for a specific address
Inputs: chain_id (required), token_address (required), address (required).
get_token_holdersC
Get the token holders for a given token address
Inputs: chain_id (required), token_address (required).
get_token_holders_countC
Get the number of token holders for a given token address
Inputs: chain_id (required), token_address (required).
get_total_supplyB
Get the total supply of a token given its address
Inputs: chain_id (required), token_address (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes targeting different token-related queries, but get_token_holders and get_token_holders_count could be confused as they both retrieve holder information. The descriptions clarify the difference (list vs count), but the overlap in naming might cause misselection.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., get_chain_id, get_token_balance). The naming is highly predictable and readable throughout the set, with no deviations in style or convention.
With 6 tools, the count is reasonable for an Etherscan-focused server, covering chain info, RPC endpoints, and token data. It feels slightly thin for a full blockchain explorer, but it's well-scoped for the provided token and chain utilities.
The tools cover token balances, holders, and supply, plus chain and RPC info, but there are notable gaps for a broader Etherscan domain. Missing operations include transaction lookups, contract interactions, and gas/price queries, which are common in blockchain tools, limiting coverage to a narrow subset.
Related MCP Connectors
Etherscan MCP — multichain block-explorer API (Etherscan V2)
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn API server that implements the Model Completion Protocol (MCP) for Cryo blockchain data extraction, allowing users to query Ethereum blockchain data through any MCP-compatible client.1091MIT
- AlicenseBqualityDmaintenanceAn MCP server providing comprehensive access to Ethereum blockchain data across 72+ networks via Etherscan's V2 API. It enables users to check balances, track transactions, analyze smart contracts, and monitor gas prices through natural language.241MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that bridges AI models with Ethereum blockchains via all JSON-RPC calls, enabling natural language queries for block numbers, balances, transactions, and smart contract data.21MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that exposes blockchain data as native tools for AI agents, enabling read-only queries like wallet balances and token holdings on Ethereum, Polygon, and Base.MIT