🗓️ 19092026 2037

MCP TRANSPORTS

An MCP transport moves protocol messages between a client and server. It changes how they connect, not what a tool or resource means.

Two standard choices​

TransportBest forMental model
Standard input/outputLocal, single-user toolsHost starts the server as a subprocess
Streamable HTTPRemote or shared servicesServer runs independently behind an HTTP endpoint

With standard input/output, protocol messages use the server's input and output streams. Logs belong on the error stream so they do not corrupt protocol messages.

With Streamable HTTP, clients send requests to one HTTP endpoint. The response can be ordinary JSON or an event stream when the server needs to send more than one message.

Choose by deployment boundary​

Choose standard input/output when the server belongs on the same machine as the host. Choose Streamable HTTP when several hosts need a reachable service. Remote servers add operational work: authentication, origin checks, network failures, and timeouts.

The model does not speak the transport directly. The host and its MCP client do.

References​