Side-by-side
| Dimension | stdio | Streamable HTTP |
|---|---|---|
| Where it runs | On the user's machine, launched by the host | On a server or edge runtime |
| Reach | One local user | Many users or tenants |
| Authentication | Operating-system identity and local file permissions | OAuth 2.1, API keys or signed agent identity |
| Network exposure | None | Public or private ingress, TLS, origin checks |
| Deployment | Package and version per machine | Central deploy, rollback and monitoring |
| Data residency | Data stays local unless the tool calls out | Data crosses the network to your runtime |
| Failure visibility | Local logs, harder to aggregate | Central logs, metrics and alerts |
| Best for | Developer tools, local files, single-user utilities | Shared business systems and multi-user agents |
Choose stdio when
- The server must read local files or use a desktop application's context.
- There is one user and no need for a shared deployment.
- Credentials can live in the local OS keychain or a file with restrictive permissions.
- You want the lowest operational surface and no network service to secure.
- The host supports launching a subprocess with a documented command and arguments.
Choose Streamable HTTP when
- Multiple users or tenants share one integration.
- The server calls internal systems that must stay behind a private network boundary.
- You need centralized rate limits, audit logs and rolling upgrades.
- Credentials must be held server-side and never distributed to client machines.
- The host connects over the network rather than spawning a local process.
Hybrid deployments
A common pattern is a thin local server for machine-specific context and a remote server for shared business data. The host sees two servers; each has its own trust boundary and its own credentials.
Do not bridge a local stdio server to the public internet with an unauthenticated proxy. That turns a local privilege into a remote attack surface, and it usually breaks origin and session assumptions.
Controls a remote transport needs
| Control | Requirement |
|---|---|
| TLS | HTTPS only, modern ciphers, HSTS at the edge |
| Origin | Validate the Origin header; reject unexpected browser origins |
| Auth | OAuth 2.1 with PKCE, or a scoped server-issued token; bind the audience |
| Session | Stateless where possible; if stateful, bind sessions to the authenticated principal |
| Limits | Request-size cap, per-principal rate limit, timeouts |
| Content type | Accept application/json and the required streaming type; reject others |
| Logging | Request ID, principal, tool, outcome; no tokens or payload bodies |
Questions people ask before starting
Can a stdio server call a remote API?
Yes. stdio describes how the host talks to the server, not what the server may call. If it calls remote systems, it still needs bounded credentials and egress rules.
Is Streamable HTTP the same as REST?
No. It is an MCP transport that carries JSON-RPC messages, optionally streamed. It is not a REST resource design.
Which transport does this site use?
The public reference endpoint at /mcp is a stateless Streamable HTTP JSON-RPC endpoint. The downloadable reference server uses stdio.
Do I need sticky sessions?
Not if the server is stateless. If you keep session state, bind it to the authenticated principal and plan for instance restarts.
Next step
Pick the boundary first
Tell us who uses the server and where the data lives. The transport choice usually follows.
Last verified .