MCP Server with SSE

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.

Category
Visit Server

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 endpoints
  • GET /health - Health check voor monitoring
  • GET /sse - Server-Sent Events stream
  • GET /mcp/status - Uitgebreide server status

Local Development

  1. Installeer dependencies:

    npm install
    
  2. Start de server:

    npm start
    # of voor development:
    npm run dev
    
  3. Test SSE verbinding: Open http://localhost:3000/sse in je browser of gebruik curl:

    curl -N http://localhost:3000/sse
    

Deployment op Render.com

Automatische Deployment

  1. Connect GitHub repository in Render dashboard
  2. Selecteer deze repository
  3. Render detecteert automatisch de render.yaml configuratie
  4. Deploy - Render gebruikt automatisch de configuratie

Handmatige Deployment

  1. Maak nieuwe Web Service in Render
  2. Configuratie:
    • Build Command: npm install
    • Start Command: npm start
    • Health Check Path: /health
    • Environment: Node.js
    • Plan: Free tier

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

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured