Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Server with SSEstart streaming server events and show me the latest timestamps"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 installStart de server:
npm start # of voor development: npm run devTest 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.yamlconfiguratieDeploy - Render gebruikt automatisch de configuratie
Handmatige Deployment
Maak nieuwe Web Service in Render
Configuratie:
Build Command:
npm installStart Command:
npm startHealth Check Path:
/healthEnvironment: Node.js
Plan: Free tier
SSE Data Format
De SSE stream stuurt JSON data in het volgende formaat:
Connection Event
Timestamp Event (elke 5 seconden)
Keep-alive Ping (elke 30 seconden)
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:
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
Server 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