Protocols
Saved & recent

MCP transports

Also called: MCP stdio, Streamable HTTP

An MCP transport specifies how protocol messages travel while preserving their meaning. The inspected 2026-07-28 revision defines stdio for a client-launched subprocess and Streamable HTTP for an HTTP endpoint. Both carry UTF-8 JSON-RPC messages, but their framing and cancellation mechanisms differ.

A local tool server can read newline-delimited messages from standard input and write replies to standard output. A remote tool call uses an HTTP POST whose response is either a JSON object or a request-scoped server-sent event stream. Older MCP revisions have different HTTP and session rules, so implementations must agree on the revision rather than copy incompatible examples.

Read first
Model Context Protocol
Related
Model Context Protocol, Server-sent events, Message framing, MCP cancellation, MCP authorization
Further reading
stdio · host and subprocess stdin · request stdout · response envelope newline envelope logging · stderr Streamable HTTP HTTP POST JSON response or request-scoped SSE MCP revision 2026-07-28
The same MCP meaning can travel over subprocess streams or HTTP. This diagram follows the 2026-07-28 transport revision.

View in the full Protocols collection