Migrate an MCP server from SSE to Streamable HTTP
What changed between the HTTP+SSE transport and Streamable HTTP, which clients still accept SSE, how to run both during the move, and curl checks that confirm the new endpoint behaves.
On this page
- Migrate an MCP server from SSE to Streamable HTTP
- The two transports
- Where it stands
- Migration steps
- 1. Add the new endpoint next to the old ones
- 2. Implement the new endpoint
- 3. Check it from outside with curl
- 4. Keep the proxy from buffering streams
- 5. Move registrations, then retire the old routes
- What the 2026-07-28 revision changes
- Checklist
- Check your server
Migrate an MCP server from SSE to Streamable HTTP
If your server still exposes /sse and /messages, it uses the transport from protocol version 2024-11-05. It still works with some clients today, and it is now formally on the way out. This guide covers what changed, who still accepts SSE, and how to move without breaking existing users.
The two transports
HTTP+SSE (2024-11-05). Two endpoints. The client opens a GET to the SSE endpoint, the server's first event is an endpoint event naming a second URL, and the client sends every message by POST to that URL while responses come back on the open stream.
Streamable HTTP (2025-03-26 and later). One endpoint, such as https://example.com/mcp. The client POSTs every JSON-RPC message to it. For a request, the server answers with either one JSON object or an SSE stream scoped to that request. SSE did not go away. It became an optional response format on a single endpoint. The 2025-11-25 transport spec states the rules, among them:
- The client MUST send an
Acceptheader listing bothapplication/jsonandtext/event-stream. - A
POSTcarrying a notification or response gets202 Acceptedwith no body. - A
GETto the endpoint either opens an SSE stream or returns405 Method Not Allowed. - Servers MUST validate the
Originheader and answer403if it is present and invalid.
Where it stands
The 2026-07-28 changelog reclassifies HTTP+SSE, deprecated since 2025-03-26, as Deprecated under the spec's lifecycle policy and says to migrate to Streamable HTTP. The same policy sets a minimum twelve-month deprecation window, and the transport page says it is eligible for removal in a future revision. New implementations SHOULD NOT adopt it.
Clients differ:
- Claude. The connector build guide tells you to use Streamable HTTP and says Claude also supports legacy HTTP+SSE, "which is being deprecated in favor of Streamable HTTP." Claude Code's docs say the SSE transport is deprecated, and that
claude mcp add --transport httptries HTTP first and falls back to SSE when the server does not accept it (v2.1.265 or later). - ChatGPT. OpenAI's Apps SDK server guide says to support the MCP streamable HTTP transport. The Responses API MCP guide says it works with servers supporting either Streamable HTTP or HTTP/SSE. We found no OpenAI page announcing an SSE cutoff, and we did not verify what ChatGPT's directory review accepts beyond the Apps SDK wording.
Our recommendation: build and register the Streamable HTTP endpoint now, since both vendors point there, and keep the SSE routes only as long as you have users on them.
Migration steps
1. Add the new endpoint next to the old ones
The spec's backward-compatibility section says servers that want to support older clients should keep hosting both the SSE and POST endpoints of the old transport alongside the new MCP endpoint. Combining the old POST endpoint with the new one is possible but adds complexity. Use a separate path, such as /mcp.
// Express-style routing sketch, TypeScript SDK
app.post('/mcp', handleStreamableHttp); // new
app.get('/sse', handleLegacySse); // old, keep for now
app.post('/messages', handleLegacyPost); // old, keep for now
2. Implement the new endpoint
With the TypeScript SDK 1.x line, StreamableHTTPServerTransport implements the spec. For a tool-only server, a per-request server and transport without sessions is the simplest correct shape. See MCP sessions, stateless servers and serverless hosting. In the Python SDK, the README shows uv run mcp run server.py --transport streamable-http for a local run.
3. Check it from outside with curl
# 1. Initialize over POST. Expect 200 and Content-Type application/json or text/event-stream.
curl -si https://your-server.example.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"0"}}}'
# 2. A GET without a stream must be 405 or text/event-stream, never a 404 or HTML page.
curl -si https://your-server.example.com/mcp -H 'Accept: text/event-stream' | head -5
# 3. A bad Origin must be refused.
curl -si https://your-server.example.com/mcp -H 'Origin: https://evil.example' \
-H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | head -1
Step 3 should print a 403. If it prints 200, you are not validating Origin, which the spec requires. Test against your public hostname, not localhost, so a proxy or WAF in the path is included. See works in Inspector, fails in Claude for what an edge layer can break.
You can also run the Inspector's CLI against the endpoint. Anthropic's testing page shows the form:
npx @modelcontextprotocol/inspector --cli https://your-server.example.com/mcp --transport http --method tools/list
4. Keep the proxy from buffering streams
If a tool streams progress, a buffering proxy delays every event until the stream closes. The 2026-07-28 transport page says servers SHOULD send X-Accel-Buffering: no when they open an SSE stream, which tells nginx-style proxies to stop buffering. Set it yourself if your framework does not.
5. Move registrations, then retire the old routes
Update the URL in every place you listed: the Claude and ChatGPT submissions, the official registry's server.json, your docs and install buttons. See publish to the official MCP Registry. Then watch your access logs for traffic on /sse and /messages. When it is gone, return 410 or remove the routes. Whether old users will notice depends on their client: the spec's client fallback probes by POST first, and only falls back to GET-for-endpoint-event when the POST fails with 400, 404 or 405.
What the 2026-07-28 revision changes
If you are choosing an SDK now, know that the new revision reshapes Streamable HTTP itself. Per the transport page and changelog:
- The standalone
GETstream endpoint is removed, and so are protocol-level sessions and theMcp-Session-Idheader. Last-Event-IDresumability is removed. A broken stream loses the in-flight request and the client must re-issue it with a new request id.- Every
POSTmust carryMCP-Protocol-VersionandMcp-Methodheaders, andMcp-Namefortools/call,resources/readandprompts/get. - A server that supports only the new revision should answer an old client's
GETorDELETEwith405, ignoreMcp-Session-Id, and ignoreLast-Event-ID.
The TypeScript SDK's main branch now documents a v2 line that implements 2026-07-28, while 1.x continues to receive fixes, per its README. In our December 2026 crawl, 79.3% of 4,123 open servers reported protocol version 2025-11-25, 15.6% 2025-06-18, 3.6% 2025-03-26 and 1.5% 2024-11-05. The version a server reports is not its transport, and the probe did not separately label legacy SSE, so that is not a count of SSE servers.
Checklist
- Streamable HTTP endpoint at one path,
POSTsupported -
Accepthandling for both content types -
GETreturns an event stream or405 - Bad
Originreturns403 - No proxy buffering on streams
- Registrations and docs point at the new URL
- Old SSE routes removed after traffic stops
Check your server
Run the free scan at /scan. It connects with a Streamable HTTP client and reports the negotiated protocol version, so you can confirm the new endpoint answers as a modern client expects.
Check your server against these rules
Scan runs the checks from this guide against a live URL and lists each failing rule with its fix.