4
Building SSE Servers
So far, you’ve seen how you can build MCP servers using STDIO as transport. That’s a great choice of transport for servers meant to run locally. However, if you want to connect to servers remotely via HTTP or if you want responses from LLMs streamed, then there’s another transport called Server-Sent Events (SSE) better suited to this scenario.
SSE transport has been deprecated in favor of Streamable HTTP transport per May 2025. However, there are still more than 2000+ MCP servers built using SSE transport, so it’s important to keep that in mind should you encounter such servers in the wild and need to integrate or maintain them.
In this chapter, we’ll focus on building and testing MCP servers using SSE as transport. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access