What is the difference between STDIO and SSE transports in MCP?
STDIO is used for local/command-line integration, while SSE is designed for web-based or network communication. Both use JSON-RPC 2.0 for message formatting.
@cnych
基本情報
claude mcp sse demo with server and client(cli、web)
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-sse-demo": {
"command": "npx",
"args": [
"@modelcontextprotocol/inspector"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
上のボタンで一時的なサンドボックスでこのサーバーを実行し、ツール一覧を取得できます。
This project demonstrates how to build an MCP (Model Context Protocol) server using SSE (Server-Sent Events) for communication. It implements an intelligent mall service assistant that exposes product, inventory, and order management tools via SSE transport, allowing clients (e.g., web or CLI) to interact with LLMs through JSON-RPC 2.0 messages.
Set up an Express server with endpoints /sse (SSE connection) and /messages (client message handling). Use SSEServerTransport from the MCP SDK to manage SSE connections. Start the server on port 8083 (configurable via PORT environment variable). For clients, use SSEClientTransport to connect to the SSE endpoint, then list tools and integrate with an LLM (e.g., Anthropic Claude) to handle user queries.
getProducts, getInventory, getOrders, purchase/health) and graceful shutdownSTDIO is used for local/command-line integration, while SSE is designed for web-based or network communication. Both use JSON-RPC 2.0 for message formatting.
Node.js, Express, `@modelcontextprotocol/sdk` (for MCP and SSE transports), `zod` (for schema validation), and `cors`. The project uses TypeScript and ES modules.
Data (products, inventory, orders) is stored in-memory using simulated arrays. It is not persisted to a database; for production use, a database-backed microservice should replace the in-memory store.
The implementation uses mock data and is intended for demonstration or educational purposes. It does not handle authentication, authorization, or large-scale concurrent connections beyond simple in-memory state.
The Express server includes CORS support (configurable via the `ALLOWED_ORIGINS` environment variable). The README does not mention authentication mechanisms; the provided code accepts requests without authentication.
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

B2B competitive intelligence, live sales battlecards, 5-axis ICP prospect fit scoring, and tech stack teardowns over MCP and REST with cited public-web evidence.

Handl speaks the Model Context Protocol. Your whole billing operation — projects, invoices, clients, reports, approvals — as tools any AI assistant can call, inside your autonomy rules.

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
Painless E2E Automation for Mobile and Web
コメント