L'Atlas / Guides / Remote or local MCP: stdio, Streamable HTTP and OAuth

Remote or local MCP: stdio, Streamable HTTP and OAuth

Checked on 28 Nov 2026

Two standard transports

The current MCP specification revision (2026-07-28) defines two transports: stdio for a locally launched server and Streamable HTTP for a server reachable at a URL.

Criterion stdio Streamable HTTP
Launch Client starts the server as a subprocess Server runs as an independent process
Channel stdin / stdout, one JSON-RPC message per line HTTP POST to a single endpoint (e.g. https://example.com/mcp)
Reply On stdout application/json or text/event-stream (request-scoped SSE)
Authentication Credentials taken from the environment OAuth authorization defined by the specification
Cancellation notifications/cancelled notification Closing the response stream

stdio

The server reads from stdin and writes to stdout. Messages are newline-delimited and must not contain embedded newlines. The server must not write anything to stdout that is not a valid MCP message; it may log to stderr. Shutdown is initiated by closing the process's standard input.

Streamable HTTP

Key points in revision 2026-07-28:

  • every client message is a new POST, with an Accept header listing both application/json and text/event-stream;
  • required headers: MCP-Protocol-Version, Mcp-Method, and Mcp-Name for tools/call, resources/read and prompts/get;
  • servers must validate the Origin header (DNS rebinding protection); when running locally they should bind only to 127.0.0.1.

This revision removed protocol sessions (Mcp-Session-Id), the standalone GET stream and stream resumption via Last-Event-ID, all of which existed from 2025-03-26 to 2025-11-25. Change notifications now go through subscriptions/listen.

Status of SSE

The HTTP+SSE transport from revision 2024-11-05 (a GET endpoint for the SSE stream plus a separate POST endpoint) has been deprecated since revision 2025-03-26, when Streamable HTTP replaced it. Revision 2026-07-28 formally classifies it as Deprecated under the feature lifecycle policy (SEP-2596); the deprecated features registry gives its earliest removal as three months after SEP-2596 reaches Final. New implementations should not adopt it.

Do not confuse the two: Streamable HTTP can itself answer with an SSE-formatted response (text/event-stream). What is deprecated is the old two-endpoint transport.

Authorization for HTTP servers

Authorization is optional in MCP. When it is supported, HTTP-based transports should follow the specification; stdio servers should not, and retrieve credentials from the environment instead.

The MCP server acts as an OAuth 2.1 resource server. Main requirements:

  1. RFC 9728 (Protected Resource Metadata): servers must implement it; the document must include authorization_servers. Clients find it via the resource_metadata parameter of the WWW-Authenticate header on a 401 response, otherwise via /.well-known/oauth-protected-resource (first with the MCP endpoint path inserted, then at the root).
  2. Authorization server discovery: RFC 8414 (/.well-known/oauth-authorization-server) or OpenID Connect Discovery; clients must try both.
  3. RFC 8707 (Resource Indicators): clients must send the resource parameter (the MCP server's canonical URI) in authorization and token requests.
  4. PKCE in the authorization code flow, and validation of the iss parameter (RFC 9207) when present.
  5. Client registration: Client ID Metadata Documents (recommended), pre-registration, or Dynamic Client Registration (RFC 7591), which revision 2026-07-28 deprecates.

The token is sent as Authorization: Bearer on every request, never in the query string. Servers must check that the token was issued for them (audience) and must not pass other tokens through.

Further reading

Actual support for these transports and for OAuth varies between clients: see How to choose and the comparisons.

Sources