MCP SSE Sample logo

MCP SSE Sample

by iuill

This is a sample MCP server using SSE (Server-Sent Events). It demonstrates an SSE implementation of the MCP protocol.

View on GitHub

Last updated: N/A

What is MCP SSE Sample?

This is a sample MCP server that utilizes Server-Sent Events (SSE) for communication. It provides a set of tools and functionalities to demonstrate the capabilities of the MCP protocol with SSE.

How to use MCP SSE Sample?

To use the server locally, first install the dependencies with npm install, then build the project with npm run build. You can then run the server in STDIO mode with npm run start or in SSE mode with npm run start:sse. To use with Claude Desktop, add the provided configuration to claude_desktop_config.json.

Key features of MCP SSE Sample

  • SSE implementation of MCP

  • Various tools for testing and demonstration

  • Progress notifications for long operations

  • LLM sampling capability

  • Annotation support for metadata

  • Logging functionality

Use cases of MCP SSE Sample

  • Demonstrating MCP protocol implementation

  • Testing SSE communication with MCP

  • Experimenting with LLM integration

  • Debugging MCP server configurations

  • Understanding annotation usage in MCP

FAQ from MCP SSE Sample

What is MCP?

MCP stands for Model Context Protocol, a protocol for communication between applications.

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 run the server in SSE mode?

Use the command npm run start:sse.

What are annotations used for?

Annotations provide metadata about content, such as priority and audience.

What kind of logging does the server provide?

The server sends random-leveled log messages every 15 seconds.