anindyar
MCP Serveranindyarpublic

sse mcp gateway

提供一个通用网关,将基于 Model Context Protocol (MCP) 的服务器通过 Server-Sent Events (SSE) 暴露为 Web 服务。

Repository Info

1
Stars
1
Forks
1
Watchers
1
Issues
JavaScript
Language
-
License

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

1

Clone the repository

git clone https://github.com/anindyar/sse-mcp-gateway
2

Install dependencies

cd sse-mcp-gateway
npm install
3

Follow the documentation

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

Repository Details

Owneranindyar
Reposse-mcp-gateway
LanguageJavaScript
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