MCP SSE Server logo

MCP SSE Server

by aihes

This repository provides a complete example of an SSE (Server-Sent Events) based MCP (Model Context Protocol) server and client implementation. It demonstrates real-time communication for AI systems using Server-Sent Events.

View on GitHub

Last updated: N/A

What is MCP SSE Server?

This is an implementation of a Model Context Protocol (MCP) server using Server-Sent Events (SSE) for real-time communication with clients. It provides a complete example with both server and client components.

How to use MCP SSE Server?

To use this server, first install the dependencies using npm install. Then, start the SSE server with npm run sse-server. Finally, run the SSE client in another terminal using npm run sse-client to interact with the server.

Key features of MCP SSE Server

  • SSE-based MCP Server using Express.js

  • Interactive MCP Client

  • Example tool implementations (add, multiply)

  • Dynamic resource templates with URI patterns

  • Detailed logging and debugging support

Use cases of MCP SSE Server

  • Real-time AI system communication

  • Building interactive AI applications

  • Demonstrating MCP protocol implementation

  • Implementing dynamic resource handling

  • Debugging and monitoring AI system interactions

FAQ from MCP SSE Server

What is MCP?

MCP stands for Model Context Protocol, a communication protocol designed for AI systems.

What is SSE?

SSE stands for Server-Sent Events, a server push technology enabling real-time data streaming from a server to a client.

How do I start the server?

Use the command npm run sse-server to start the SSE server.

How do I run the client?

Use the command npm run sse-client in a separate terminal to run the SSE client.

What are the available tools?

The server provides tool endpoints for addition and multiplication.