Cover image
Try Now
2025-03-11

3 years

Works with Finder

1

Github Watches

2

Github Forks

5

Github Stars

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

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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Khalid kalib
  • Write professional emails

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

    Reviews

    4 (1)
    Avatar
    user_MhzWZN1o
    2025-04-15

    As a dedicated user of MCP Config, I am incredibly impressed by its seamless functionality and user-friendly interface. Created by marcusschiesser, this tool has significantly simplified the configuration process for me. The documentation is clear and the support is excellent. I highly recommend MCP Config for anyone looking to streamline their server management tasks. Get it at https://mcp.so/server/mcp-config/marcusschiesser!