Skip to main content
Glama

evm-gateway-mcp

Give your AI Agent the eyes to see the Ethereum Blockchain.

TypeScript Node.js MCP License: MIT Tests: Passing

evm-gateway-mcp is a Model Context Protocol (MCP) server that lets AI agents (such as Claude Desktop) interact with EVM-compatible blockchains.

It gives agents practical blockchain awareness by exposing tools for ENS resolution, gas tracking, wallet/token balances, and smart contract ABI retrieval from Etherscan.

✨ Key Features

  • ENS Resolution: Resolve .eth names to addresses and perform reverse lookup from address to ENS.

  • Gas Tracker: Read current gas price and classify network conditions (LOW / NORMAL / HIGH).

  • Portfolio Tracking: Fetch native ETH balances and ERC-20 token balances.

  • Smart Contract Analysis: Pull verified contract ABIs directly from Etherscan.

Related MCP server: MCP Etherscan Server

πŸš€ Quick Start

Prerequisites

  • Node.js v20+

  • An Etherscan API key

  • An Ethereum RPC endpoint URL

Installation

npm install
npm run build

Configuration

Copy .env.example to .env and fill in your values:

cp .env.example .env
# .env
ETHERSCAN_API_KEY=your_etherscan_api_key
RPC_URL=https://mainnet.infura.io/v3/your_project_id

πŸ”Œ Usage with Claude Desktop

Build once, then point Claude Desktop to the compiled server entry:

{
  "mcpServers": {
    "evm-gateway-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/evm-gateway-mcp/dist/index.js"],
      "env": {
        "ETHERSCAN_API_KEY": "your_etherscan_api_key",
        "RPC_URL": "https://mainnet.infura.io/v3/your_project_id"
      }
    }
  }
}

Use this in your local claude_desktop_config.json.

πŸ›‘οΈ Development & Testing

This project is built with a TDD (Test Driven Development) workflow. Unit tests are fully mocked (no live RPC or Etherscan calls), so they run offline and deterministically.

npm test

Tech Stack

  • TypeScript

  • viem

  • @modelcontextprotocol/sdk

  • Vitest

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers