---
title: What is an MCP transport?
type: glossary
url: https://agentsfordevs.com/glossary/mcp-transport
markdown: https://agentsfordevs.com/glossary/mcp-transport.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: Agents for Devs. "What is an MCP transport?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/mcp-transport
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/glossary/mcp-transport
term: MCP transport
aliases:
  - MCP transport binding
---

# 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.

**Definition:** 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.

```text
# 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](/glossary/stdio-transport) · [Streamable HTTP](/glossary/streamable-http) · [stdio vs Streamable HTTP](/guides/mcp-transports) · [Run a remote MCP server](/guides/deploy-remote-mcp-server)

## Sources

1. [Transports overview (specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports)
2. [stdio (specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio)
3. [Streamable HTTP (specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http)
4. [Authorization (specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization)

## Changelog

- 2026-12-06: 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: https://agentsfordevs.com/glossary/mcp-transport.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
