Express MCP Server Echo
エクスプレスMCPサーバー
Express と TypeScript で構築されたステートレスな Model Context Protocol (MCP) サーバー。
特徴
最新のストリーミング可能な HTTP トランスポートを使用したステートレス MCP サーバーの実装
型安全性のためのTypeScript
HTTP処理用のExpress.js
Related MCP server: Echo MCP Server
要件
Node.js 18歳以上
npmまたはyarn
インストール
# 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発達
# Build the TypeScript code
npm run build
# Run in development mode with auto-reloading
npm run dev
# Run tests (when added)
npm testサーバー構造
src/
├── index.ts # Main application entry point
└── server.ts # MCP server definition with resource, tool, and prompt利用可能な機能
このサーバーは、3 つの MCP コンポーネントを持つ単純なエコー エンドポイントを実装します。
リソース:
echo://{message}- メッセージをリソースとして返しますツール:
echo- 提供されたメッセージをツールの応答として返しますプロンプト:
echo- 指定されたメッセージでユーザープロンプトを作成します
MCPプロトコル
このサーバーは、LLMが外部データや機能とやり取りするための標準化された方法であるモデルコンテキストプロトコル(MCP)を実装しています。JSON-RPCリクエストに応答するステートレスAPIエンドポイントを公開します。
APIの使用
JSON-RPC ペイロードを含む POST リクエストを/mcpに送信します。
初期化
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"
}
}
}'通話エコーツール
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
}'ライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis server implements the Model Context Protocol to facilitate meaningful interaction and understanding development between humans and AI through structured tools and progressive interaction patterns.57-
- AlicenseCqualityDmaintenanceA simple server implementing the Model Context Protocol (MCP) that echoes messages back, designed for testing MCP clients.13MIT
- FlicenseNot gradedqualityDmaintenanceA basic Model Context Protocol server implementation that demonstrates core functionality including tools and resources for AI chat applications.-
- AlicenseDqualityDmaintenanceA 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.15Apache 2.0