ENS MCP Server

ENS MCP Server

Enables Claude to interact with the Ethereum Name Service (ENS) system to resolve names, check availability, retrieve records, and perform other ENS-related operations through natural language.

JustaName-id

Developer Tools
Visit Server

README

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:

  • https://eth.drpc.org
  • https://eth.llamarpc.com
  • https://ethereum.publicnode.com
  • https://rpc.ankr.com/eth

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"
      }
    }
  }
}

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
MCP Package Docs Server

MCP Package Docs Server

Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.

Featured
Local
TypeScript
Claude Code MCP

Claude Code MCP

An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.

Featured
Local
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.

Featured
Local
JavaScript
Linear MCP Server

Linear MCP Server

Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.

Featured
JavaScript
mermaid-mcp-server

mermaid-mcp-server

A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.

Featured
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP server to provide Jira Tickets information to AI coding agents like Cursor

Featured
TypeScript
Linear MCP Server

Linear MCP Server

A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Featured
JavaScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python