Cover image
Try Now
2025-04-10

MCP-SSE-Server

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

MCP SSE Server and Client Example

This repository contains a complete example implementation of an SSE (Server-Sent Events) based MCP (Model Context Protocol) server and client.

Overview

The Model Context Protocol (MCP) is a communication protocol designed for AI systems. This implementation demonstrates how to create an MCP server that uses Server-Sent Events (SSE) for real-time communication with clients.

Features

  • SSE-based MCP Server: Implements a server using Express.js and the MCP SDK's SSEServerTransport
  • Interactive MCP Client: Provides a client implementation that connects to the SSE server
  • Tool Implementations: Includes example tools (add, multiply) with proper descriptions
  • Dynamic Resources: Demonstrates dynamic resource templates with URI patterns
  • Debugging Support: Includes detailed logging and debugging configurations

Components

  • server.js - A basic MCP server using StdioServerTransport
  • sse-server.js - An MCP server using SSEServerTransport with Express.js
  • client.js - A client for the basic server
  • sse-client.js - A client for the SSE server

Getting Started

  1. Install dependencies:

    npm install
    
  2. Start the SSE server:

    npm run sse-server
    
  3. In another terminal, run the SSE client:

    npm run sse-client
    

Server Features

The SSE server provides:

  • Tool endpoints for addition and multiplication
  • A dynamic greeting resource with template support
  • Proper session management for multiple clients
  • Detailed logging for debugging

Client Features

The SSE client demonstrates:

  • Connecting to the SSE server
  • Listing available tools and resources
  • Calling tools with parameters
  • Reading resources with dynamic parameters

URI Templates

The server demonstrates how to expose URI templates to clients, allowing them to understand how to construct resource URIs dynamically:

greeting://{name} - Replace {name} with any name to get a personalized greeting

License

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • HiveNexus
  • Un bot de chat IA pour les petites et moyennes équipes, soutenant des modèles tels que Deepseek, Open AI, Claude et Gemini. 专为中小团队设计的 Ai 聊天应用 , 支持 Deepseek 、 Open Ai 、 Claude 、 Gemini 等模型。

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • Sysc4lls
  • Lecteur de documentation IDA (Sort-of) MCP Server

    Reviews

    3 (1)
    Avatar
    user_HtwiCEc2
    2025-04-18

    I've been using mcp-sse-server created by aihes, and it's been a game changer for my projects! The seamless integration and user-friendly setup make it a pleasure to work with. Highly recommend checking it out on GitHub at https://github.com/aihes/mcp-sse-server.