Back to course

Advanced Transport: SSE (Server-Sent Events)

Model Context Protocol (MCP) Server Engineering

Beyond Stdio: SSE

Stdio is great for local apps. But what if your server is on the web? You need SSE (Server-Sent Events) for HTTP communication.

Implementation

Use the SSEServerTransport from the MCP SDK.

Assignment: Set up an Express.js server that hosts your MCP server via HTTP.