evm-gateway-mcp
by nag-ryo
README.md
# evm-gateway-mcp
> Give your AI Agent the eyes to see the Ethereum Blockchain.
[](https://www.typescriptlang.org/)
[](https://nodejs.org/)
[](https://modelcontextprotocol.io/)
[](LICENSE)
[](#development--testing)
`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.
## 🚀 Quick Start
### Prerequisites
- Node.js `v20+`
- An Etherscan API key
- An Ethereum RPC endpoint URL
### Installation
```bash
npm install
npm run build
```
### Configuration
Copy `.env.example` to `.env` and fill in your values:
```bash
cp .env.example .env
```
```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:
```json
{
"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.
```bash
npm test
```
## Tech Stack
- **TypeScript**
- **viem**
- **@modelcontextprotocol/sdk**
- **Vitest**
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues