MCP Server with SSE
Enables real-time data streaming through Server-Sent Events with timestamp broadcasting and server monitoring capabilities. Optimized for deployment on Render.com with health checks and status endpoints.
README
MCP Server with SSE
Een eenvoudige MCP (Model Context Protocol) server met Server-Sent Events (SSE) functionaliteit, geoptimaliseerd voor deployment op Render.com.
Features
- 🚀 Express.js server - Lightweight en snel
- 📡 Server-Sent Events (SSE) - Real-time data streaming
- ⏰ Timestamp broadcasting - Elke 5 seconden
- 💓 Keep-alive pings - Elke 30 seconden
- 🌐 CORS enabled - Cross-origin requests toegestaan
- 🏥 Health checks - Voor Render.com monitoring
- 📊 Status endpoints - Server informatie en statistieken
Endpoints
GET /- Server informatie en beschikbare endpointsGET /health- Health check voor monitoringGET /sse- Server-Sent Events streamGET /mcp/status- Uitgebreide server status
Local Development
-
Installeer dependencies:
npm install -
Start de server:
npm start # of voor development: npm run dev -
Test SSE verbinding: Open
http://localhost:3000/ssein je browser of gebruik curl:curl -N http://localhost:3000/sse
Deployment op Render.com
Automatische Deployment
- Connect GitHub repository in Render dashboard
- Selecteer deze repository
- Render detecteert automatisch de
render.yamlconfiguratie - Deploy - Render gebruikt automatisch de configuratie
Handmatige Deployment
- Maak nieuwe Web Service in Render
- Configuratie:
- Build Command:
npm install - Start Command:
npm start - Health Check Path:
/health - Environment: Node.js
- Plan: Free tier
- Build Command:
SSE Data Format
De SSE stream stuurt JSON data in het volgende formaat:
Connection Event
{
"type": "connection",
"message": "SSE connection established",
"timestamp": "2024-01-01T12:00:00.000Z",
"server": "MCP Server"
}
Timestamp Event (elke 5 seconden)
{
"type": "timestamp",
"timestamp": "2024-01-01T12:00:05.000Z",
"uptime": 123.456,
"memory": {
"rss": 12345678,
"heapTotal": 8765432,
"heapUsed": 5432109,
"external": 987654
}
}
Keep-alive Ping (elke 30 seconden)
: keep-alive 1704110400000
Environment Variables
PORT- Server port (default: 3000, Render sets automatically)NODE_ENV- Environment (production/development)
CORS Configuration
De server is geconfigureerd om alle origins toe te staan voor maximale compatibiliteit:
cors({
origin: '*',
methods: ['GET', 'POST', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Cache-Control', 'Accept'],
credentials: false
})
Error Handling
- 500 errors - Gelogd en JSON response
- 404 errors - Friendly message met beschikbare endpoints
- SSE disconnects - Automatic cleanup van intervals
- Graceful shutdown - SIGTERM/SIGINT handling
Monitoring
Health Check
curl https://your-app.onrender.com/health
Server Status
curl https://your-app.onrender.com/mcp/status
Dependencies
- express - Web framework
- cors - Cross-origin resource sharing
License
MIT License - Zie LICENSE bestand voor details.
Support
Voor vragen of issues, maak een GitHub issue aan in deze repository: https://github.com/Fuglys/mcp-server
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.