Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Express Mcp Server Echo

    An example of using express-mcp-handler to serve an mcp serve via http

    1 stars
    TypeScript
    Updated Sep 24, 2025

    Table of Contents

    • Features
    • Requirements
    • Installation
    • Development
    • Server Structure
    • Available Functionality
    • MCP Protocol
    • API Usage
    • Initialize
    • Call Echo Tool
    • License

    Table of Contents

    • Features
    • Requirements
    • Installation
    • Development
    • Server Structure
    • Available Functionality
    • MCP Protocol
    • API Usage
    • Initialize
    • Call Echo Tool
    • License

    Documentation

    Express MCP Server

    A stateless Model Context Protocol (MCP) server built with Express and TypeScript.

    Features

    • Stateless MCP server implementation with modern Streamable HTTP transport
    • TypeScript for type safety
    • Express.js for HTTP handling

    Requirements

    • Node.js 18+
    • npm or yarn

    Installation

    bash
    # Clone the repository (or download)
    git clone https://github.com/your-username/sample-express-mcp-server.git
    cd sample-express-mcp-server
    
    # Install dependencies
    npm install

    Development

    bash
    # Build the TypeScript code
    npm run build
    
    # Run in development mode with auto-reloading
    npm run dev
    
    # Run tests (when added)
    npm test

    Server Structure

    code
    src/
      ├── index.ts                # Main application entry point
      └── server.ts               # MCP server definition with resource, tool, and prompt

    Available Functionality

    This server implements a simple echo endpoint with three MCP components:

    • Resource: echo://{message} - Returns the message as a resource
    • Tool: echo - Echoes the provided message back as a tool response
    • Prompt: echo - Creates a user prompt with the provided message

    MCP Protocol

    This server implements the Model Context Protocol (MCP), a standardized way for LLMs to interact with external data and functionality. It exposes a stateless API endpoint that responds to JSON-RPC requests.

    API Usage

    Send a POST request to /mcp with a JSON-RPC payload:

    Initialize

    bash
    curl -X POST http://localhost:3001/mcp \
      -H "Content-Type: application/json" \
      -H "Accept: application/json" \
      -H "Accept: text/event-stream" \
      -d '{
        "jsonrpc": "2.0",
        "id": 1,
        "method": "initialize",
        "params": {
          "protocolVersion": "2024-11-05",
          "capabilities": {
            "roots": {
              "listChanged": true
            },
            "sampling": {}
          },
          "clientInfo": {
            "name": "ExampleClient",
            "version": "1.0.0"
          }
        }
      }'

    Call Echo Tool

    bash
    curl -X POST http://localhost:3001/mcp \
      -H "Content-Type: application/json" \
      -H "Accept: application/json" \
      -H "Accept: text/event-stream" \
      -d '{
        "jsonrpc": "2.0",
        "method": "tools/call",
        "params": {
          "name": "echo",
          "arguments": {
            "message": "Hello, World!"
          }
        },
        "id": 1
      }'

    License

    ISC

    Similar MCP

    Based on tags & features

    • 4E

      4everland Hosting Mcp

      TypeScript·
      1
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • OP

      Openai Gpt Image Mcp

      TypeScript·
      75

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • 4E

      4everland Hosting Mcp

      TypeScript·
      1
    • MC

      Mcp Wave

      TypeScript00
    • GL

      Glm Mcp Server

      TypeScript·
      3
    • OP

      Openai Gpt Image Mcp

      TypeScript·
      75

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k