# MCP Transport

> The MCP Transport defines how MCP clients and servers exchange messages: locally through standard input and output or remotely over HTTP.

## How do MCP servers connect to clients?

The way MCP messages travel. Local servers run as a process and talk through 'stdio'. Remote servers use streamable HTTP and usually require OAuth authorization.

- Topic: Model Context Protocol
- Type: concept

## Common mistakes

- Installing an unknown local MCP server that can read any file on the machine.

## Key points

- Remote MCP servers require authorization, and tokens are not stored in the repository.
- Local servers come from trusted sources, because they run with the user's permissions.

## Interview questions

### stdio vs streamable HTTP in MCP: which should I use?

Use stdio for a local server that runs as a child process on the user's machine. Use streamable HTTP for a remote server shared by many users.

### What happened to the SSE transport in MCP?

The standalone HTTP with SSE transport was replaced by streamable HTTP, which can still use SSE inside responses for streaming.

### How do remote MCP servers handle authentication?

The MCP spec uses OAuth for HTTP transports: the client gets an access token and sends it with each request, and the server checks it.

## Related cards

- [MCP Server](https://wonderium.dev/ai/mcp-server.md)
- [MCP Client](https://wonderium.dev/ai/mcp-client.md)
- [MCP](https://wonderium.dev/ai/mcp.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/mcp-transport
- Last updated: 2026-11-25
