simonfraserduncan
MCP Serversimonfraserduncanpublic

echo mcp

一个为 Smithery 提供的极简 MCP 协议服务器实现。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

一个为 Smithery 提供的极简 MCP 协议服务器实现。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Echo MCP Server

A minimal MCP (Model Context Protocol) server implementation for Smithery.

Features

  • Echo Tool: Returns the message provided
  • Ping Tool: Returns "pong" when called
  • Version Tool: Returns the server version "0.0.1"
  • Implements the MCP Streamable HTTP Transport
  • No external APIs, auth, or database dependencies

Installation

npm install

Running the Server

Start the server on port 8000:

npm start

The server will be available at http://localhost:8000/mcp.

Testing

Using MCP Inspector

  1. Install MCP Inspector:

    npm install -g @modelcontextprotocol/inspector
    
  2. Start the MCP Inspector:

    npx @modelcontextprotocol/inspector streamable-http http://localhost:8000/mcp
    
  3. Open the Inspector UI at http://127.0.0.1:6274

    • Set Transport Type to "Streamable HTTP"
    • Set URL to "http://localhost:8000/mcp"
    • Click Connect

Using cURL

Initialize a session:

curl -v -X POST -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
     -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl-client","version":"1.0.0"}},"id":1}' \
     http://localhost:8000/mcp

Send "initialized" notification (using the session ID from the response headers):

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
     -H "mcp-session-id: YOUR_SESSION_ID" \
     -d '{"jsonrpc":"2.0","method":"initialized","params":{}}' \
     http://localhost:8000/mcp

List available tools:

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
     -H "mcp-session-id: YOUR_SESSION_ID" \
     -d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":2}' \
     http://localhost:8000/mcp

Call the echo tool:

curl -X POST -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
     -H "mcp-session-id: YOUR_SESSION_ID" \
     -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"echo","input":{"message":"hello"}},"id":3}' \
     http://localhost:8000/mcp

License

ISC

Quick Start

1

Clone the repository

git clone https://github.com/simonfraserduncan/echo-mcp
2

Install dependencies

cd echo-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownersimonfraserduncan
Repoecho-mcp
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation