etherscan v2 api mcp server
MCPpedia last refreshed this data
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"etherscan-mcp-server": {
"env": {
"ETHERSCAN_API_KEY": "$your_api_key"
},
"command": "etherscan-mcp-server"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Go implementation of an Etherscan API client for the Model Context Protocol (MCP) that enables LLM applications to access Etherscan blockchain data.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance
Let AI agents create, discover, and track tokens across chains via Printr.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
MaverickMCP - Personal Stock Analysis MCP Server
Brazilian public procurement (PNCP) and Federal Revenue CNPJ data — 16 tools, 4 prompts.
MCP Security Weekly
Get CVE alerts and security updates for Etherscan Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Go implementation of an Etherscan API client for the Model Context Protocol (MCP) that enables LLM applications to access Etherscan blockchain data.
Clone the repository:
git clone https://github.com/huahuayu/etherscan-mcp-server.git
cd etherscan-mcp-server
Set Etherscan API key env variable:
ETHERSCAN_API_KEY=your_api_key_here
Build the server:
make build
Install the server:
make install # install to /usr/local/bin
Run the server using stdin/stdout communication (default mode):
./bin/etherscan-mcp-server
This mode is useful for direct integration with LLM applications that communicate via stdin/stdout.
MCP config:
{
"mcpServers": {
"etherscan-mcp-server": {
"command": "etherscan-mcp-server",
"env": {
"ETHERSCAN_API_KEY": "$your_api_key"
}
}
}
}
Restart cursor and check if it's success:

Run the server in Server-Sent Events mode:
./bin/etherscan-mcp-server --sse
In SSE mode, the server listens on HTTP and provides an SSE endpoint.
SSE MCP config:
{
"mcpServers": {
"etherscan-mcp-server": {
"url": "http://localhost:4000/sse",
"env": {
"ETHERSCAN_API_KEY": "$your_api_key"
}
}
}
}
--sse: Enable SSE server mode (default is stdin/stdout mode)--port <port>: Specify the port for SSE server (defaults to PORT env var or 4000)When running in SSE mode, the server provides:
http://localhost:4000/sse50+ chains supported, please refer to the Etherscan V2 Supported Chains for a complete list and their corresponding Chain IDs.
Note on Free Tier Limitations & RPC Fallback: According to Etherscan's supported chains policy, some networks are not available under the Free API plan. These include (but are not limited to):
- BNB Smart Chain (BSC) — Chain ID: 56
- Base — Chain ID: 8453
- Avalanche C-Chain — Chain ID: 43114
For these three chains, this server has a built-in RPC fallback mechanism: when the Etherscan API returns
NOTOK, it automatically falls back to free public RPC endpoints using standard JSON-RPC methods. No paid plan is needed for the following tools on these chains:
Tool JSON-RPC Method getLatestBlockNumbereth_blockNumbergetAccountBalanceeth_getBalancegetTokenBalanceeth_call(balanceOf)getTokenDetailseth_call(name/symbol/decimals)getTransactionByHasheth_getTransactionByHashgetTransactionReceipteth_getTransactionReceiptgetTransactionCounteth_getTransactionCountexecuteContractMethodeth_callRPC Endpoints Used:
- BSC:
https://binance.llamarpc.com- Base:
https://base.llamarpc.com- Avalanche C-Chain: `https://api.avax.network/ext/bc/C/