Example MCP SSE Server
yunusemredilber/express-mcp-sse-server · 16 stars · TypeScript
MCP server
Install
The repo has no one-line install. Follow its README.
Files
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.
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 applicationsrc/mcp-server.ts- Implementation of the MCP server and resource definitionssrc/sse-server.ts- SSE server implementation using Express
Dependencies
- @modelcontextprotocol/sdk - SDK for Model Context Protocol
- Express - Web framework for Node.js
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 16
- Language
- TypeScript
- Last push
- 2025-03-10
- Forks
- 9
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
