MCPSERV.CLUB
josheleonard

ENS MCP Server

MCP Server

Real‑time ENS lookup via Model Context Protocol

Stale(55)
1stars
2views
Updated Jun 30, 2025

About

A lightweight MCP server built with Express.js that resolves Ethereum addresses to ENS names and vice versa, offering Server‑Sent Events for instant updates.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Overview

The Ens Mcp Server is a specialized Model Context Protocol (MCP) implementation that bridges AI assistants with the Ethereum Name Service (ENS). By exposing ENS resolution as a first‑class tool, it allows AI agents to seamlessly translate between human‑readable domain names and raw Ethereum addresses during conversations. This eliminates the need for external lookups or manual data entry, streamlining interactions that involve blockchain references.

At its core, the server hosts two intuitive tools: and . The former accepts an Ethereum address (e.g., ) and returns the corresponding ENS name or a friendly “No ENS name found” message. The latter performs the reverse lookup, turning an ENS identifier such as into its associated address. These tools are powered by the Viem library, ensuring fast and reliable communication with Ethereum nodes while keeping runtime overhead low.

Beyond simple query handling, the server leverages Server‑Sent Events (SSE) to provide real‑time updates. When an AI assistant initiates a request, the server can push results back to the client as they become available, enabling interactive experiences like live transaction monitoring or dynamic name resolution. The Express.js framework supplies a lightweight HTTP layer, while the MCP SDK orchestrates tool registration, schema validation (via Zod), and message routing.

Developers integrating this server into their AI workflows benefit from a plug‑and‑play interface. A Claude or other MCP‑compatible assistant can invoke ENS lookups without custom code, reducing boilerplate and potential errors. Typical use cases include decentralized finance (DeFi) dashboards that need to display user‑friendly names, smart contract audit tools that translate addresses into readable identifiers, or chatbots that answer questions about wallet ownership. The SSE capability also opens possibilities for live data feeds in conversational UI, such as real‑time ENS name changes or address updates.

What sets the Ens Mcp Server apart is its focus on blockchain domain resolution within a standardized protocol. While generic HTTP APIs exist for ENS, this implementation aligns directly with the MCP ecosystem, ensuring that AI assistants can discover and consume the service automatically. The result is a cohesive, low‑latency bridge between natural language queries and blockchain metadata, empowering developers to build richer, contextually aware AI experiences that interact with the Ethereum network.