SSE MCP Server
by champierre
This repository provides a sample implementation of a Model Context Protocol (MCP) server using Server-Sent Events (SSE). It is designed to be deployed using Netlify Edge Functions.
Last updated: 2025/3/11
What is SSE MCP Server?
This is a sample implementation of an SSE MCP server designed for deployment on Netlify Edge Functions, enabling real-time communication.
How to use SSE MCP Server?
To use this server, clone the repository, install dependencies using npm install
, and start the development server with npm run dev
. For deployment to Netlify, install the Netlify CLI, log in, initialize the site (if it's the first time), and deploy using npm run deploy
. After deployment, access the deployed site URL and test the SSE connection using the provided demo page.
Key features of SSE MCP Server
Real-time communication using SSE
Server-side implementation with Netlify Edge Functions
Simple client interface
Regular ping messages to maintain SSE connection
Use cases of SSE MCP Server
Real-time data streaming
Live updates in web applications
Server-sent notifications
Model Context Protocol communication
FAQ from SSE MCP Server
What is SSE?
What is SSE?
Server-Sent Events (SSE) is a server push technology enabling real-time data streaming from a server to a client.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, likely used for communication related to a specific model or data context.
How do I deploy this to Netlify?
How do I deploy this to Netlify?
Install the Netlify CLI, log in, initialize the site (if it's the first time), and deploy using npm run deploy
.
How do I test the deployment?
How do I test the deployment?
Access the deployed site URL and use the provided demo page to test the SSE connection and message sending/receiving.
What is the purpose of the ping messages?
What is the purpose of the ping messages?
The ping messages are sent periodically to maintain the SSE connection and prevent 502 errors on Netlify Edge Functions.