Glossary protocol/
What is an MCP transport?
An MCP transport is the binding that defines how MCP's JSON-RPC messages are framed, delivered and cancelled between client and server, without changing what those messages mean.
Also called: MCP transport binding
# stdio: one JSON-RPC message per line on the server's stdin
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_weather","arguments":{"location":"Seattle, WA"},"_meta":{...}}}
# Streamable HTTP: the same message as its own POST
POST /mcp HTTP/1.1
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: get_weather
The same tools/call can travel either way, and spec version 2026-07-28 says protocol semantics are identical on every transport. A transport only decides framing, where request metadata lives, and how cancellation and termination are signaled. On stdio the client cancels by sending notifications/cancelled; on Streamable HTTP it closes that request’s response stream.
Use stdio when the client launches the server on the same machine. Use Streamable HTTP when the server runs as its own process or hosted service. The choice also sets the auth model: MCP’s authorization spec covers HTTP-based transports, while stdio servers should read credentials from the environment.
You can write your own transport as long as it preserves JSON-RPC messages, the request, response and notification patterns, and the per-request metadata model. Ones built on a byte stream, such as a Unix domain socket, should reuse stdio’s newline framing. The old HTTP+SSE transport has been deprecated since protocol version 2025-03-26.
See also: stdio transport · Streamable HTTP · stdio vs Streamable HTTP · Run a remote MCP server
Related terms
MCP server, Model Context Protocol (MCP), stdio transport, Streamable HTTP
Guides that cover MCP transport
Sources
Changelog
- First published.
Cite this page
Agents for Devs. "What is an MCP transport?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/mcp-transport - Page: https://agentsfordevs.com/glossary/mcp-transport
- Markdown version: https://agentsfordevs.com/glossary/mcp-transport.md
- Reuse: quote or summarize with a link to this page. Reuse terms