Compare the three MCP transports and identify the correct choice for each deployment scenario
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Compare stdio, HTTP+SSE, and Streamable HTTP as MCP transports. For each, describe the mechanism, its status, and the deployment scenario where it belongs.
stdio runs a local subprocess over stdin/stdout; Streamable HTTP is the current remote transport over a single endpoint; HTTP+SSE was its two-channel predecessor, now deprecated.
Think of plugging in a new gadget. stdio is like a USB cable straight into your own laptop: the tool lives on the same machine, talks through the program's own input and output pipes, and nobody on the internet can reach it. Streamable HTTP is like calling a service over the web: the tool runs on some cloud server far away, and you reach it through one web address that can also stream long answers back to you. HTTP+SSE was an older way of doing that web call. It used two separate pipes, one to send and one to listen, and keeping both in sync turned out to be fiddly. So the MCP designers replaced it with the simpler single-pipe version. Pick the local cable for local tools and the web call for remote ones.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: name all three transports, give the mechanism of each, explain the HTTP+SSE deprecation, then state the local vs remote decision rule with the scaling and auth implications.
| Aspect | stdio | HTTP+SSE (deprecated) | Streamable HTTP |
|---|---|---|---|
| Mechanism | Subprocess stdin and stdout | SSE stream plus separate POST | Single HTTP endpoint, optional SSE |
| Reach | Local only, no network | Remote | Remote |
| Channels | One duplex pipe pair | Two asymmetric channels | One endpoint, both directions |
| Status | Current | Deprecated mid-2025 | Current standard for remote |
| Auth and sessions | Inherits host privileges | Awkward, fragile lifecycle | OAuth 2.1 plus session header |
| Use when | Server co-located with host | Never in new code | Server is remote or scaled |
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Trying to point a host at a stdio server running on another machine. stdio has no network surface; remote servers need Streamable HTTP.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.