# When should an MCP server use stdio, Streamable HTTP, or a custom transport?

Exam: CCDV-F — Claude Certified Developer - Foundations
Knowledge domain: Tools and MCPs
Updated: 2026-11-25T08:30:00.568374+00:00
HTML: https://learningpathx.com/faq/CCDV-F/ccdvf-choose-mcp-transport.html

## Also asked as

- What are the standard transports in MCP 2026-07-28?
- Is SSE or a socket a standard alternative to stdio for a new MCP server?

Use stdio for a local server the host launches as a subprocess. Use Streamable HTTP for a separately reachable service. These are the two standard transports for MCP 2026-07-28\. Choose a custom binding such as a Unix socket only when a concrete deployment requirement outweighs the loss of standard client interoperability.

With stdio, exchange newline-delimited UTF-8 JSON-RPC over stdin and stdout and send diagnostics to stderr. Launch only an approved executable and arguments with a restricted environment and appropriate access. The HTTP OAuth flow should not be used for stdio; obtain credentials through the process environment when needed.

With Streamable HTTP, send JSON-RPC messages by POST to the MCP endpoint with the required headers and matching body metadata. Responses can be JSON or request-scoped SSE, including a subscription response stream where supported. The separate HTTP+SSE binding from 2024-11-05 is deprecated. Validate Origin according to the binding, use protected transport and authentication for remote deployments, and keep local-only endpoints on loopback.

A custom binding must preserve JSON-RPC message directions and per-request metadata. Specify framing, setup, cancellation, and failure handling. The spec recommends reusing stdio’s newline framing for reliable bidirectional byte streams such as Unix sockets or TCP.

* [MCP transport overview and custom transports](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports)
* [MCP stdio](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio)
* [MCP Streamable HTTP](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http)

Source: [MCP Server Development and Choosing Between Tools, Skills, and MCP](https://learningpathx.com/news/mcp-server-development-and-choosing-between-tools-skills-and-mcp.html)
