sse-mcp-server

sse-mcp-server

1

The SSE MCP Server project offers a sample implementation of a Model Context Protocol Server using Server-Sent Events for real-time communication. It leverages Netlify Edge Functions for deployment and provides a simple client interface for testing SSE connections.

SSE MCP Server

This repository is a sample implementation of a Model Context Protocol (MCP) Server using Server-Sent Events (SSE). It is designed for deployment using Netlify Edge Functions.

Latest Updates

  • 2025/3/11: Fixed a 502 error on Netlify Edge Functions. Added a feature to send regular ping messages to maintain SSE connections.

Features

  • Real-time communication using SSE
  • Server-side implementation with Netlify Edge Functions
  • Simple client interface

Setup Development Environment

  1. Clone the repository
  2. Install dependencies
  3. Start the development server

Deploy to Netlify

  1. Install the Netlify CLI
  2. Log in to Netlify
  3. Initialize the site
  4. Deploy

Post-Deployment Verification

  1. Access the deployed site's URL
  2. Test SSE connection
  3. Test message sending and receiving

File Structure

  • Implements MCP server and SSE server using Express.js and Netlify Edge Functions