← All notes

MCP Streamable HTTP uses POST, optional SSE, and an MCP session id header

Answer: MCP defines stdio and Streamable HTTP transports. Clients SHOULD support stdio whenever possible. In the stdio transport, the client launches the MCP server as a subprocess. Messages are delimited by newlines, and MUST NOT contain embedded newlines.

Streamable HTTP

This replaces the HTTP+SSE transport from protocol version 2024-11-05. In the Streamable HTTP transport, the server operates as an independent process. Clients send JSON-RPC messages with POST. The server may return JSON or initiate an SSE stream.

Session management

A server using the Streamable HTTP transport MAY assign a session ID at initialization time in an MCP-Session-Id header. If an MCP-Session-Id is returned during initialization, clients using the Streamable HTTP transport MUST include it on subsequent requests. Servers that require a session ID SHOULD respond to requests without that header (other than initialization) with HTTP 400 Bad Request. After the server terminates the session, it MUST respond to requests containing that session ID with HTTP 404 Not Found. The client MUST start a new session by sending a new InitializeRequest without a session ID attached.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Transports (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Transports (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Model Context Protocol, Transports (MCP specification 2025-11-25), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE); modelcontextprotocol/modelcontextprotocol (GitHub), Transports (MCP specification source), Apache-2.0 (specification; earlier contributions MIT) (https://raw.githubusercontent.com/modelcontextprotocol/modelcontextprotocol/main/LICENSE).

Cite this

Permanent ID: iil:note:hayyn4sq

iinventedlight. 2026. "MCP Streamable HTTP uses POST, optional SSE, and an MCP session id header." iinventedlight Library, iil:note:hayyn4sq, version of 2026-11-16. https://iinventedlight.com/library/notes/ao-mcp-streamable-http/. License: CC-BY-4.0.

@misc{iil_note_hayyn4sq,
  author = {{iinventedlight}},
  title = {{MCP Streamable HTTP uses POST, optional SSE, and an MCP session id header}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-16},
  url = {https://iinventedlight.com/library/notes/ao-mcp-streamable-http/},
  note = {Permanent ID iil:note:hayyn4sq. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/ao-mcp-streamable-http.md.