Overview
What is Etherscan MCP Server?
Etherscan MCP Server is a Go implementation of an Etherscan API client designed for the Model Context Protocol (MCP), enabling LLM applications to access Etherscan blockchain data.
How to use Etherscan MCP Server?
To use the Etherscan MCP Server, clone the repository, set your Etherscan API key as an environment variable, and run the server. It listens on a specified port for incoming requests.
Key features of Etherscan MCP Server?
- Access to Etherscan API V2 with multi-chain support.
- Single API key for over 50 supported chains.
- Various blockchain data retrieval methods including account balances, block information, contract data, gas oracle, token information, and transaction data.
Use cases of Etherscan MCP Server?
- Retrieve account balance information for Ethereum addresses.
- Get details about specific blocks and their rewards.
- Interact with smart contracts to fetch source code or ABI.
- Monitor transaction details and gas prices on the Ethereum network.
FAQ from Etherscan MCP Server?
- What is required to run the server?
You need an Etherscan API key to access the data.
- How do I start the server?
After setting up the environment variable, run
./bin/etherscan-mcp-serverto start the server.
- What types of queries can I make?
You can make natural language queries for account balances, block information, contract interactions, transaction details, and more.
Server Config
{
"mcpServers": {
"etherscan-mcp-server": {
"command": "etherscan-mcp-server",
"env": {
"ETHERSCAN_API_KEY": "$your_etherscan_api_key"
}
}
}
}