
sse mcp gateway
提供一个通用网关,将基于 Model Context Protocol (MCP) 的服务器通过 Server-Sent Events (SSE) 暴露为 Web 服务。
Repository Info
About This Server
提供一个通用网关,将基于 Model Context Protocol (MCP) 的服务器通过 Server-Sent Events (SSE) 暴露为 Web 服务。
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
🧠 SSE-MCP-Gateway
This project provides a generic bridge to run any Model Context Protocol (MCP) server over Server-Sent Events (SSE). It wraps a stdio-based MCP server into a web-compatible SSE transport.
🔧 Setup
1. Clone and install dependencies
git clone https://github.com/your-org/sse-mcp-gateway.git
cd sse-mcp-gateway
npm install
2. Define MCP launch command
Create a file named mcp-command.txt:
npx -y @elastic/mcp-server-elasticsearch
3. Create a .env file with environment variables (optional)
ES_URL=https://your-elasticsearch-url
ES_USERNAME=elastic
ES_PASSWORD=your-password
🚀 Run the Gateway
node sse-mcp-gateway.js mcp-command.txt .env
The gateway will be available at:
- SSE Stream:
GET /sse - Message POST:
POST /message(for sending user input to the MCP)
🌐 Example Integration
This can be used in any frontend or automation (e.g. n8n, Ollama, Claude Desktop) expecting OpenAI-compatible SSE responses.
🔒 Security Note
Avoid committing .env with sensitive credentials.
📄 License
MIT License.
Quick Start
Clone the repository
git clone https://github.com/anindyar/sse-mcp-gatewayInstall dependencies
cd sse-mcp-gateway
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.