Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

express-mcp-sse-server

MCP.Pizza Chef: yunusemredilber

express-mcp-sse-server is an MCP server implementation that facilitates real-time, server-sent events (SSE) communication for Model Context Protocol workflows. It enables standardized, event-driven interaction between models and resources, supporting resource templating and management. Built on Node.js, it is ideal for applications requiring live updates and efficient context sharing with LLMs and other AI models.

Use This MCP server To

Enable real-time model context updates via SSE Stream live data to MCP clients Manage and template resources for MCP workflows Integrate MCP with Node.js applications Facilitate event-driven communication between models and apps

README

Example MCP SSE Server

A Model Context Protocol (MCP) server implementation, enabling server-sent events (SSE) based communication.

Overview

Example MCP SSE Server provides a Model Context Protocol implementation that allows for real-time communication using Server-Sent Events (SSE). It's designed to work with applications and provides a standardized way of managing and communicating with models and resources.

Features

  • Model Context Protocol (MCP) implementation
  • Server-Sent Events (SSE) for real-time communication
  • Resource templating and management

Prerequisites

  • Node.js (v14 or higher recommended)
  • Yarn package manager (can be changed easily)

Installation

Clone the repository and install dependencies:

git clone git@github.com:yunusemredilber/express-mcp-sse-server.git
cd express-mcp-sse-server
yarn install

Usage

Starting the Server

To start the server in development mode:

yarn dev

This will run the server with the MCP inspector for debugging.

dev-ss

To start the server in production mode:

yarn start

By default, the server runs on port 3001. You can override this by setting the PORT environment variable:

PORT=5000 yarn start

Endpoints

  • /sse - SSE endpoint for establishing persistent connections
  • /messages - Endpoint for sending messages to the MCP server

Project Structure

  • src/index.ts - Main entry point of the application
  • src/mcp-server.ts - Implementation of the MCP server and resource definitions
  • src/sse-server.ts - SSE server implementation using Express

Dependencies

express-mcp-sse-server FAQ

How do I install express-mcp-sse-server?
Clone the GitHub repo, then run 'yarn install' to install dependencies. Node.js v14+ is required.
How do I start the express-mcp-sse-server?
Use 'yarn dev' to start the server in development mode for testing and development.
What is Server-Sent Events (SSE) in this context?
SSE is a web technology that allows the server to push real-time updates to clients, enabling live MCP context streaming.
Can express-mcp-sse-server be used with different MCP clients?
Yes, it supports standard MCP protocols and can interoperate with any compliant MCP client.
What are the prerequisites for running this server?
Node.js v14 or higher and Yarn package manager are required to run and develop the server.
Does express-mcp-sse-server support resource templating?
Yes, it includes features for resource templating and management to streamline MCP workflows.
Is this server suitable for production use?
It is designed for development and prototyping; production readiness depends on your deployment and scaling setup.
Which LLM providers can this server work with?
It is provider-agnostic and can work with OpenAI, Anthropic Claude, Google Gemini, and other LLM providers.