Skip to main content
Glama

Example MCP SSE Server

by keepview

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:

cd hono-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 Hono

Dependencies

-
security - not tested
F
license - not found
-
quality - not tested

A Model Context Protocol server that enables real-time communication using Server-Sent Events (SSE), providing standardized model management and resource templating capabilities.

  1. Overview
    1. Features
      1. Prerequisites
        1. Installation
          1. Usage
            1. Starting the Server
            2. Endpoints
          2. Project Structure
            1. Dependencies

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                An 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 -
                1
                JavaScript
              • -
                security
                F
                license
                -
                quality
                A server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.
                Last updated -
                23
                TypeScript
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server implementation that enables real-time data communication between web pages and client applications through WebSocket connections.
                Last updated -
                2
                585
                TypeScript
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol (MCP) server implementation that uses Server-Sent Events (SSE) to enable real-time, server-pushed updates between AI models and tools over HTTP connections.
                Last updated -
                Python
                • Apple
                • Linux

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/keepview/hono-mcp-sse-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server