ENS MCP Server logo

ENS MCP Server

by JustaName-id

The ENS MCP Server enables Claude to interact with the Ethereum Name Service (ENS) to resolve names, check availability, retrieve records, and more. It provides tools for various ENS-related operations.

View on GitHub

Last updated: N/A

What is ENS MCP Server?

The ENS MCP Server is a tool that allows applications, specifically Claude, to interact with the Ethereum Name Service (ENS). It provides a set of functionalities to resolve ENS names, check their availability, retrieve associated records, and manage ENS domains.

How to use ENS MCP Server?

  1. Clone the repository or create a new project.
  2. Install dependencies using npm i.
  3. Configure Ethereum providers by creating a .env file with the PROVIDER_URL variable.
  4. Configure Claude Desktop by adding the server configuration to claude_desktop_config.json using either npx or a local script.

Key features of ENS MCP Server

  • Resolve ENS names to Ethereum addresses

  • Reverse lookup Ethereum addresses to ENS names

  • Retrieve text records for ENS names

  • Check ENS name availability

  • Get all available information for an ENS name

  • Get subdomains for an ENS name

  • Get the history of an ENS name

  • Get the price to register an ENS name

Use cases of ENS MCP Server

  • Resolving ENS names to display user-friendly names instead of Ethereum addresses

  • Checking the availability of ENS names before registration

  • Retrieving contact information (email, Twitter, etc.) associated with an ENS name

  • Building applications that interact with ENS domains and subdomains

FAQ from ENS MCP Server

What is an MCP Server?

MCP stands for Multi-Chain Protocol. It's a server that facilitates interaction with blockchain protocols.

What Ethereum providers can I use?

You can use any Ethereum RPC provider, such as Infura, Alchemy, or a public provider like eth.drpc.org.

How do I handle errors?

The server implements robust error handling. Verify your Ethereum providers are working, ENS names are formatted correctly, and you have the latest version of the ENS libraries. Try using multiple providers.

What is the license of this server?

This MCP server is licensed under the MIT License, allowing you to use, modify, and distribute the software freely, subject to the terms and conditions of the MIT License.

How do I publish this as an npm package?

Use the command npm publish --access public.