# Etherscan [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/pipeworx-io/mcp-etherscan  
**GitHub Stars:** 0  
**npm Downloads (last month):** 828  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/etherscan-2

## Description
Etherscan MCP — multichain block-explorer API (Etherscan V2)

## Tools
Capabilities this server exposes over MCP:

- **get_balance** — Native-token balance for an address on a supported EVM chain. Defaults to Ethereum mainnet. Accepts chain by slug (ethereum, polygon, bsc, base, arbitrum, optimism, avalanche, fantom, gnosis, linea, scroll, zksync, blast, mantle) or numeric chain ID.
- **get_token_balance** — ERC-20 token balance for an address against a specific token contract.
- **list_transactions** — List transactions for an address. type controls which list: "normal" (regular EOA txs), "internal" (contract-internal value transfers), "erc20" (ERC-20 transfers), "erc721" (NFT transfers), "erc1155" (multi-token transfers).
- **get_contract_abi** — Verified contract ABI as JSON (if the contract is verified on Etherscan).
- **get_contract_source** — Verified contract source code, compiler version, optimization settings, and license.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "etherscan": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-etherscan"]
  }
}
```

## Documentation

## What Etherscan MCP server does

Etherscan MCP server gives MCP-compatible agents access to Etherscan V2 block-explorer data across more than 50 EVM chains. Its tools cover native-token balances, ERC-20 balances, address transaction history, verified contract ABIs, and verified contract source with metadata.

Transaction queries can target normal, internal, ERC-20, ERC-721, or ERC-1155 activity. Network selection is handled through the optional chain argument, while the underlying Etherscan V2 API uses a chain ID.

## How it works

The integration sends requests to `https://api.etherscan.io/v2/api`. A single Etherscan key can be used across supported chains by supplying the relevant `chainid` value.

There are two ways to connect. The hosted Pipeworx endpoint provides a remote MCP connection at `https://gateway.pipeworx.io/etherscan/mcp`, and its HTTP tool interface can be called at paths such as `/v1/tools/etherscan_get_balance`. The hosted connection also exposes shared Pipeworx meta-tools, including `ask_pipeworx`, `discover_tools`, `search_within`, and memory tools. The local package exposes only the Etherscan tool set over stdin and stdout.

The gateway's `ask_pipeworx` tool can accept a plain-language question and select and populate a suitable tool. Direct tool calls remain available when the client or application needs explicit arguments.

## Setup and configuration

For a hosted MCP connection, add the gateway URL to the MCP client's server configuration:

```json
{
  "mcpServers": {
    "etherscan": {
      "url": "https://gateway.pipeworx.io/etherscan/mcp"
    }
  }
}
```

The package can run locally without a Pipeworx account or gateway round trip:

```json
{
  "mcpServers": {
    "etherscan": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-etherscan"]
    }
  }
}
```

It can also be started directly with `npx -y @pipeworx/mcp-etherscan`. Etherscan authentication uses a caller-supplied API key, obtained from the Etherscan API portal. The key is passed as the `apiKey` request parameter rather than configured as a documented environment variable.

## Tools and capabilities

- `get_balance(address, chain?)` retrieves a native-token balance.
- `get_token_balance(address, contract_address, chain?)` retrieves an ERC-20 balance for a contract and wallet address.
- `list_transactions(address, type?, chain?, ...)` lists normal, internal, ERC-20, ERC-721, or ERC-1155 transactions.
- `get_contract_abi(address, chain?)` returns the ABI for a verified contract.
- `get_contract_source(address, chain?)` returns verified source code and metadata.

The gateway can also expose shared Pipeworx tools in addition to these pack-specific tools. A local stdio process lists only the Etherscan capabilities above.

## Limitations and notes

This is an independent, unofficial Etherscan integration. Calls require the caller's own Etherscan API key; the hosted service does not provide a platform key. Etherscan's stated free allowance is 100,000 requests per day with a five-request-per-second limit, subject to the account's plan and terms.

The hosted pack endpoint includes shared gateway tools, so its tool listing is larger than the five Etherscan-specific tools. The local package avoids those additional tools but also does not provide Pipeworx-wide routing. Both the hosted MCP endpoint and the local package use the same Etherscan-focused tool set.

_Full upstream README: https://allmcps.com/mcp/etherscan-2/readme_

