Express MCP 服务器
使用 Express 和 TypeScript 构建的无状态模型上下文协议 (MCP) 服务器。
特征
采用现代 Streamable HTTP 传输的无状态 MCP 服务器实现
TypeScript 类型安全
用于 HTTP 处理的 Express.js
要求
Node.js 18+
npm 或 yarn
安装
发展
服务器结构
可用功能
该服务器通过三个 MCP 组件实现了一个简单的回显端点:
资源:
echo://{message}- 将消息作为资源返回工具:
echo——将提供的消息作为工具响应回显提示:
echo- 使用提供的消息创建用户提示
MCP 协议
该服务器实现了模型上下文协议(MCP),这是 LLM 与外部数据和功能交互的标准化方式。它公开了一个响应 JSON-RPC 请求的无状态 API 端点。
API 使用
向/mcp发送一个带有 JSON-RPC 负载的 POST 请求:
初始化
呼叫回显工具
执照
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
无状态模型上下文协议服务器,通过资源、工具和提示组件实现简单的回显功能,使 LLM 能够通过标准化 MCP 交互回显消息。
Related MCP Servers
- -security-license-qualityA Model Context Protocol server that allows LLMs to execute shell commands and receive their output in a controlled manner.Last updated -3
- -security-license-qualityA Model Context Protocol Server that enables LLMs to interact with and execute REST API calls through natural language prompts, supporting GET/PUT/POST/PATCH operations on configured APIs.Last updated -6Apache 2.0
- Asecurity-licenseAqualityA simple server implementing the Model Context Protocol (MCP) that echoes messages back, designed for testing MCP clients.Last updated -12MIT License
- Asecurity-licenseAqualityA minimal Model Context Protocol server in TypeScript that demonstrates MCP-compliant resources and tools for LLMs, featuring simple resources and a basic tool that echoes messages or returns greetings.Last updated -15