What is MCP transport?

MCP transport is the layer defining how Model Context Protocol's JSON-RPC messages are framed and carried between client and server and how requests are cancelled; the standard transports are stdio for local processes and Streamable HTTP for networks.

Model Context Protocol defines what messages mean; the transport defines only how they travel. Semantics are identical on every transport, so one MCP server can use several.

Topic
Agents and protocols
Also known as
MCP transport layer

How MCP transport works

  1. With stdio the client launches the server as a subprocess; each message is one line of JSON-RPC over standard input and output.
  2. With Streamable HTTP each message is an HTTP POST to a single MCP endpoint; the reply returns as a JSON object or a request-scoped server-sent events stream.
  3. The 2026-07-28 revision made the protocol stateless: session IDs and the initial handshake were removed, with each request carrying its own protocol version and client capabilities.
  4. Cancellation uses a notification on stdio and closing the response stream on Streamable HTTP; compatibility rules cover earlier revisions.

In more detail

stdio framing hygiene: separating stdout and stderr

In `stdio` transport, `stdout` must carry strictly valid, newline-delimited JSON-RPC messages with no embedded newlines or debug text, while all human-readable logs must be written to `stderr`. Because any stray `print` or log line on `stdout` breaks framing and crashes the connection, production servers redirect logging streams explicitly.

From legacy HTTP+SSE to Streamable HTTP

Streamable HTTP replaced the legacy HTTP+SSE transport introduced in the 2024-11-05 MCP specification, which relied on two separate endpoints and persistent stateful SSE connections. Understanding this transition helps enterprise teams maintain backward-compatibility adapters when integrating older MCP servers into modern 2026 hosts.

Enterprise network hardening and proxy streaming constraints

Unlike `stdio`, where the client spawns a subprocess with local OS privileges, network transports require strict boundary controls: mutual TLS (mTLS) or OAuth-protected endpoints, CORS and `Origin` validation to block DNS rebinding from browser-based hosts and reverse-proxy configuration that disables response buffering for streaming SSE replies.

Commonly confused terms

TermHow it differs
WebSocket transportWebSockets provide full-duplex persistent connections with custom framing, whereas MCP's standard network transport uses Streamable HTTP (HTTP POST + optional SSE) to align better with stateless infrastructure, proxies and HTTP authentication.

Why MCP transport matters for on-premises AI

The choice of transport sets the security boundary. stdio runs between processes on one machine, unexposed to the network, but the server gets the host's rights, so which servers launch is controlled. When Streamable HTTP is exposed, the specification requires Origin header validation against DNS rebinding, binding only to localhost when local and authentication. The stateless design eases scaling.

ON-PREMISES EXAMPLE

A telecom operator offers local tools on developers' machines over stdio and shared in-house MCP servers over authenticated Streamable HTTP, reachable only internally with every request logged.

Common questions

Which transports does MCP have?

The two standard transports are stdio and Streamable HTTP. Implementations may also define custom transports.

Which MCP transport is safer?

stdio is not exposed to the network, so its attack surface is small locally. Over the network, Streamable HTTP is used with Origin validation and authentication.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.