Back to MCP directory
publicPublicdnsLocal runtime

mcp-echo-server

一个简单的MCP回显服务器,用于将接收到的文本消息原样返回。

article

README

🚀 MCP 回声服务器

MCP 回声服务器是一个简单实用的工具,它基于消息控制协议(MCP),能够对输入的文本消息进行回显,为消息交互提供了基础支持。

🚀 快速开始

MCP 回声服务器的使用非常便捷,按照以下步骤操作,即可快速搭建并使用。

✨ 主要特性

  • 回显一条消息

📦 安装指南

在使用 MCP 回声服务器前,需要先安装相关依赖项。在项目根目录下执行以下命令:

# 安装依赖项
npm install

💻 使用示例

基础用法

在开发环境中,你可以通过以下命令构建服务器:

# 构建服务器
npm run build

声明 MCP 服务器

你需要在配置文件中声明 MCP 服务器,示例如下:

{
  "mcpServers": {
    "echo-mcp-server": {
      "command": "node",
      "args": ["<绝对路径到项目文件夹>/dist/index.js"]
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client