NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle0 views

Which transports are used in MCP, and how do they differ?

Practice

AI answer

MCP uses two main transports:

  • stdio — the client launches the MCP server as a local process and exchanges messages with it through standard input and output. Suitable for local integrations; protocol output should not be mixed with diagnostic messages.
  • Streamable HTTP — the client connects to the server over HTTP. Suitable for remote services and network deployments; it supports streaming responses, while session management depends on the implementation and specification.

The HTTP+SSE transport was used previously; it is considered a legacy option, and Streamable HTTP is generally chosen for new integrations.