Uses Hono as the underlying web framework for implementing the SSE server, providing routing and HTTP handling capabilities for real-time communication.
Built on Node.js runtime environment, allowing the MCP server to be deployed and run on various platforms that support Node.js.
Utilizes Yarn as the package manager for dependency management and script execution in the project.
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:
Usage
Starting the Server
To start the server in development mode:
This will run the server with the MCP inspector for debugging.
To start the server in production mode:
By default, the server runs on port 3001. You can override this by setting the PORT
environment variable:
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 Hono
Dependencies
- @modelcontextprotocol/sdk - SDK for Model Context Protocol
- Hono - Web framework for Node.js
This server cannot be installed
A Model Context Protocol server that enables real-time communication using Server-Sent Events (SSE), providing standardized model management and resource templating capabilities.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for code modification and generation via Large Language Models, allowing users to create, modify, rewrite, and delete files using structured XML instructions.Last updated -12PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables integration with the TESS API, allowing users to list and manage agents, execute agents with custom messages, and manage files through natural language interfaces.Last updated -TypeScript
- AsecurityFlicenseAqualityAn implementation of the Model Context Protocol (MCP) server using Server-Sent Events (SSE) for real-time communication, providing tools for calculations and dynamic resource templates.Last updated -1JavaScript
- -securityFlicense-qualityEnables real-time communication between client and server using Server-Sent Events (SSE) for the Model Context Protocol, specifically built for the Bun JavaScript runtime.Last updated -TypeScript