Ethereum Name Service (ENS)

Ethereum Name Service (ENS)

justaname-id

Provides tools to interact with the Ethereum Name Service (ENS) for resolving .eth names to addresses, checking availability, and retrieving domain records. Works with configurable Ethereum network providers.

Integrates with the Ethereum Name Service to resolve ENS names to addresses, perform lookups, retrieve records, check availability, get prices, and explore name history through configurable Ethereum network providers.

9330 views6Local (stdio)

What it does

  • Resolve ENS names to Ethereum addresses
  • Perform reverse lookups from addresses to names
  • Retrieve text records and metadata for domains
  • Check ENS name availability and ownership
  • Get registration pricing information
  • Explore name history and subdomain structures

Best for

Web3 developers building ENS-integrated applicationsBlockchain analysts researching domain ownershipDApp users needing human-readable address resolution
Comprehensive ENS functionalityConfigurable network providers

About Ethereum Name Service (ENS)

Ethereum Name Service (ENS) is a community-built MCP server published by justaname-id that provides AI assistants with tools and capabilities via the Model Context Protocol. Easily manage, lookup, and buy ENS domains with seamless integration to the Ethereum Name Service (ENSdomains) using fle It is categorized under developer tools.

How to install

You can install Ethereum Name Service (ENS) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

Ethereum Name Service (ENS) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

ENS MCP Server

MCP Server for Ethereum Name Service (ENS), enabling Claude to interact with the ENS system to resolve names, check availability, retrieve records, and more.

npm package: https://www.npmjs.com/package/mcp-server-ens

Tools

resolve-name

Resolve an ENS name to an Ethereum address

  • Required inputs:
    • name (string): The ENS name to resolve (e.g., 'vitalik.eth')
  • Returns: The corresponding Ethereum address or an error message

reverse-lookup

Get the ENS name for an Ethereum address

  • Required inputs:
    • address (string): The Ethereum address to look up
  • Returns: The corresponding ENS name or an indication that no name was found

get-text-record

Get a text record for an ENS name

  • Required inputs:
    • name (string): The ENS name to query
    • key (string): The record key to look up (e.g., 'email', 'url', 'avatar', 'description', 'twitter', etc.)
  • Returns: The value of the specified text record or indication that no record was found

check-availability

Check if an ENS name is available for registration

  • Required inputs:
    • name (string): The ENS name to check
  • Returns: Availability status and owner information if registered

get-all-records

Get all available information for an ENS name

  • Required inputs:
    • name (string): The ENS name to query
  • Returns: Comprehensive information including resolver address, text records, addresses, content hash, ownership, and expiration details

get-subdomains

Get subdomains for an ENS name

  • Required inputs:
    • name (string): The ENS name to query for subdomains
  • Returns: List of subdomains with their owner information

get-name-history

Get the history of an ENS name

  • Required inputs:
    • name (string): The ENS name to check history for
  • Returns: Historical events related to the name, including transfers, resolver changes, and registration events

get-registration-price

Get the price to register an ENS name

  • Required inputs:
    • name (string): The ENS name to check price for
  • Optional inputs:
    • duration (number, default: 1): Registration duration in years
  • Returns: Registration price breakdown including base price, premium, and total

Setup

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • Access to Ethereum RPC providers (public or private)

Installation

  1. Clone the repository or create a new project:
git clone https://github.com/JustaName-id/ens-mcp-server
  1. Install dependencies:
npm i
  1. Configure Ethereum providers: Create a .env file in the project root with the following (optional):
PROVIDER_URL=https://your-provider-url.com,https://your-backup-provider.com

If no providers are specified, the server will use these defaults:

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

Using npx

{
  "mcpServers": {
    "ens": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-ens"
      ],
      "env": {
        "PROVIDER_URL": "https://your-provider-url.com,https://your-backup-provider.com"
      }
    }
  }
}

Using local script

{
  "mcpServers": {
    "ens": {
      "command": "node",
      "args": [
        "/path/to/your/server.js"
      ],
      "env": {
        "PROVIDER_URL": "https://your-provider-url.com,https://your-backup-provider.com"
      }
    }
  }
}

Usage with Claude Code

claude mcp add ens -- npx -y mcp-server-ens

With custom providers:

claude mcp add ens -e PROVIDER_URL="https://your-provider-url.com" -- npx -y mcp-server-ens

Verify it's connected:

claude mcp list

Error Handling

The server implements robust error handling for various scenarios:

  • Network errors connecting to Ethereum providers
  • Invalid ENS names or Ethereum addresses
  • ENS-specific errors
  • General operational errors

All errors are normalized into user-friendly messages while preserving technical details for debugging.

Publishing

To publish as an npm package:

npm publish --access public

Troubleshooting

If you encounter errors:

  • Verify your Ethereum providers are working and accessible
  • Check that the ENS names you're querying are formatted correctly
  • Ensure you have the latest version of the ENS libraries
  • Try using multiple providers by comma-separating them in the PROVIDER_URL environment variable

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Alternatives

Related Skills

Browse all skills
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

0
twinmind-migration-deep-dive

Comprehensive migration guide from other meeting AI tools to TwinMind. Use when migrating from Otter.ai, Fireflies, Rev, or other transcription services. Trigger with phrases like "migrate to twinmind", "switch from otter", "twinmind migration", "move to twinmind", "replace fireflies".

0
ens

Resolve ENS names (.eth) to Ethereum addresses and vice versa. Use when a user provides an .eth name (e.g. "send to vitalik.eth"), when displaying addresses (show ENS names), looking up ENS profiles, or helping users register, renew, or manage .eth names.

0
crewai-developer

Comprehensive CrewAI framework guide for building collaborative AI agent teams and structured workflows. Use when developing multi-agent systems with CrewAI, creating autonomous AI crews, orchestrating flows, implementing agents with roles and tools, or building production-ready AI automation. Essential for developers building intelligent agent systems, task automation, and complex AI workflows.

0
slidev

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.

173
mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

67