MCP.so
Sign In
Servers

MCP SSE Sample

@iuill

MCP ServerのSSE実装のサンプル

Overview

What is MCP SSE Sample?

A sample MCP server that uses SSE (Server-Sent Events) transport to demonstrate an MCP protocol SSE implementation. It is based on the official “everything” server and provides a set of tools for testing and demonstration purposes.

How to use MCP SSE Sample?

Install dependencies with npm install, build with npm run build, then run in STDIO mode (npm run start) or SSE mode (npm run start:sse). For Claude Desktop, add the server configuration to claude_desktop_config.json as shown in the README.

Key features of MCP SSE Sample

  • Echo tool returns the input message unchanged
  • Add tool adds two numbers together
  • LongRunningOperation with progress notifications
  • SampleLLM demonstrates MCP LLM sampling capability
  • GetTinyImage returns a base64‑encoded PNG test image
  • PrintEnv prints all environment variables for debugging
  • AnnotatedMessage shows priority and audience annotations
  • Random‑leveled log messages sent every 15 seconds

Use cases of MCP SSE Sample

  • Test MCP client implementations that use SSE transport
  • Demonstrate tool call progress notifications
  • Explore MCP annotation and LLM sampling features
  • Debug server configuration and environment variables

FAQ from MCP SSE Sample

What transports does MCP SSE Sample support?

The server supports both STDIO and SSE transport modes.

How can I use this server with Claude Desktop?

Add the following configuration to claude_desktop_config.json: { "mcpServers": { "sse-sample": { "command": "npx", "args": ["-y", "mcp_sse_sample"] } } }.

What tools are included in MCP SSE Sample?

It includes echo, add, longRunningOperation, sampleLLM, getTinyImage, printEnv, and annotatedMessage.

Does the server require any special dependencies?

Only Node.js and npm are needed. Run npm install to install dependencies.

More from Other