MCP Etherscan Server
by crazyrabbitLTC
An MCP server providing Ethereum blockchain data tools via Etherscan's API. It allows users to check ETH balances, view transaction history, track ERC20 transfers, fetch contract ABIs, monitor gas prices, and resolve ENS names.
Last updated: N/A
What is MCP Etherscan Server?
This is an MCP (Model Context Protocol) server that leverages the Etherscan API to provide various tools for interacting with Ethereum blockchain data. It exposes functionalities like checking balances, viewing transactions, tracking token transfers, fetching contract ABIs, monitoring gas prices, and resolving ENS names as MCP endpoints.
How to use MCP Etherscan Server?
To use this server, you need to clone the repository, install dependencies, configure your Etherscan API key in a .env
file, build the project, and start the server. The server runs on stdio, making it compatible with MCP clients like Claude Desktop. You can then add the server to Claude Desktop by configuring its name, transport (stdio), and command to execute the server's entry point.
Key features of MCP Etherscan Server
Balance Checking: Get ETH balance for any Ethereum address
Transaction History: View recent transactions with detailed information
Token Transfers: Track ERC20 token transfers with token details
Contract ABI: Fetch smart contract ABIs for development
Gas Prices: Monitor current gas prices (Safe Low, Standard, Fast)
ENS Resolution: Resolve Ethereum addresses to ENS names
Use cases of MCP Etherscan Server
Checking the ETH balance of a specific address.
Viewing recent transactions associated with an Ethereum address.
Tracking ERC20 token transfers for a given address.
Fetching the ABI of a smart contract for development purposes.
Monitoring current gas prices to optimize transaction costs.
Resolving an Ethereum address to its corresponding ENS name.
FAQ from MCP Etherscan Server
What is an Etherscan API key and where do I get one?
What is an Etherscan API key and where do I get one?
An Etherscan API key is required to access the Etherscan API. You can obtain one for free at https://etherscan.io/apis.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol that allows different applications to communicate and share context.
How do I add this server to Claude Desktop?
How do I add this server to Claude Desktop?
Follow the instructions in the README under the 'Using with Claude Desktop' section.
What if the server doesn't start?
What if the server doesn't start?
Ensure you have Node.js >= 18 installed, your Etherscan API key is correctly configured in the .env
file, and that the project has been built using npm run build
.
Can I contribute to this project?
Can I contribute to this project?
Yes, contributions are welcome! See the 'Development' section in the README for more information.