mcp-etherscan-server

mcp-etherscan-server

20

MCP Etherscan Server is a Model Context Protocol server designed to provide tools for interacting with the Ethereum blockchain through Etherscan's API. It offers functionalities such as balance checking, transaction history, and gas price monitoring.

MCP Etherscan Server

An MCP server providing Ethereum blockchain data via Etherscan's API. Key features include:

  • 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.

Prerequisites

  • Node.js >= 18
  • An Etherscan API key

Installation

  1. Clone the repository and navigate to the directory.
  2. Install dependencies.
  3. Create a .env file with your Etherscan API key.
  4. Build the project.

Running the Server

Start the server using stdio, making it compatible with MCP clients like Claude Desktop.

How It Works

Implements the MCP protocol to provide tools for interacting with Ethereum blockchain data through Etherscan's API. Each tool is exposed as an MCP endpoint.

Using with Claude Desktop

Add the server as a new MCP server in Claude Desktop to utilize Ethereum data tools.