mcpField
M
MCP Server Demo

MCP Server Demo

Local
github.com/josheleonardFinance1Updated 74w ago

About MCP Server Demo

MCP Server Demo is an MCP server example that resolves Ethereum addresses to ENS names and ENS names to addresses. It is intended to demonstrate ENS lookup tools over an Express.js HTTP server with Server-Sent Events support.

Key features

  1. 01Resolve Ethereum addresses to ENS names
  2. 02Look up addresses from ENS names
  3. 03SSE communication
  4. 04Express.js HTTP server

Use cases

  1. 01Find the ENS name associated with an address
  2. 02Resolve an ENS name such as vitalik.eth to an address

MCP support

The server exposes `get-ens-name` and `get-ens-address` tools to MCP clients. It supports SSE communication over its HTTP server.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Server Demo

This project demonstrates a Model Context Protocol (MCP) server implementation that provides Ethereum Name Service (ENS) lookup functionality. It's built using the MCP SDK and provides a simple HTTP server with Server-Sent Events (SSE) support.

Features

  • ENS name resolution (address → name)
  • ENS address lookup (name → address)
  • Server-Sent Events (SSE) for real-time communication
  • Express.js HTTP server

Available Tools

The server provides two main tools:

  1. get-ens-name: Resolves an Ethereum address to its associated ENS name

    • Input: Ethereum address (format: 0x...)
    • Output: ENS name or "No ENS name found"
  2. get-ens-address: Looks up the Ethereum address for an ENS name

    • Input: ENS name (e.g., "vitalik.eth")
    • Output: Ethereum address or "No ENS address found"

Technical Stack

Getting Started

  1. Install dependencies:

    npm install
    
  2. Build the server:

    npm run build
    
  3. Start the server:

    npm run start
    

The server will start on port 8080.

API Endpoints

  • GET /sse - Establishes an SSE connection
  • POST /messages - Handles incoming messages/requests

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.