Start a project Estimate a range

Public MCP tools, Markdown pages and a project brief API. No account required.

Guide

stdio or Streamable HTTP: choosing an MCP transport

The transport decides who can reach the server, how credentials work and what you have to operate. Choose it before writing the tool layer.

Start a project

In short

Use stdio for a local server that runs on the same machine as the AI host and needs no network exposure. Use Streamable HTTP for a remote server shared by users, where OAuth, origin validation, rate limits and centralized deployment matter. Legacy SSE is a compatibility fallback, not a default.

Side-by-side

Transport comparison
DimensionstdioStreamable HTTP
Where it runsOn the user's machine, launched by the hostOn a server or edge runtime
ReachOne local userMany users or tenants
AuthenticationOperating-system identity and local file permissionsOAuth 2.1, API keys or signed agent identity
Network exposureNonePublic or private ingress, TLS, origin checks
DeploymentPackage and version per machineCentral deploy, rollback and monitoring
Data residencyData stays local unless the tool calls outData crosses the network to your runtime
Failure visibilityLocal logs, harder to aggregateCentral logs, metrics and alerts
Best forDeveloper tools, local files, single-user utilitiesShared 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

Streamable HTTP baseline
ControlRequirement
TLSHTTPS only, modern ciphers, HSTS at the edge
OriginValidate the Origin header; reject unexpected browser origins
AuthOAuth 2.1 with PKCE, or a scoped server-issued token; bind the audience
SessionStateless where possible; if stateful, bind sessions to the authenticated principal
LimitsRequest-size cap, per-principal rate limit, timeouts
Content typeAccept application/json and the required streaming type; reject others
LoggingRequest 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.

Start a project Read the docs

Last verified .

Start a project

Tell us what you need

Used only to reply. No newsletter.

System, AI client and action. Do not include secrets or personal data.

No account. A reference code is returned immediately. Prefer an agent? Use the agent hub.

Copy manually

Clipboard access was blocked. Select the text and copy it.