# MCP stdio Transport

> An MCP link where the host runs the server on the same machine.

**Field:** Artificial Intelligence  
**Category:** MCP  
**Also known as:** MCP stdio, Standard IO Transport

## Think of it like

Think of it like two kids passing notes across the same desk. No one else is in the room.

## Definition

The stdio transport runs an MCP server as a small program on the same computer as the host. The host starts the server itself and talks to it through standard input and standard output, the plain text channels every program has. Each message is one line of JSON-RPC. No network is involved, so it is simple and fast. It is the usual choice for servers that work with local files and tools.

## Example

Jack's editor starts a local file server when he opens a project. They pass messages through the program's input and output. Nothing leaves his laptop.

## Example code

```json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
```

One message, written as one line to the server's standard input.

## Why it matters

It is the easiest way to run a server. The data never goes out over a network.

## Common mistake

Printing log lines to standard output. That channel carries the messages, so stray text breaks the link.

## Three principles

- **Same computer.** No network.
- **Host starts it.** As a child program.
- **One line, one message.** Through standard input and output.

## Related terms

- [MCP Transport](https://learn.benibix.com/term/ai/mcp-transport)
- [Streamable HTTP Transport](https://learn.benibix.com/term/ai/streamable-http-transport)
- [Process](https://learn.benibix.com/term/development/process)
- [Local MCP Server](https://learn.benibix.com/term/ai/local-mcp-server)

![The host starts the server as a child program on the same computer. Messages go in through standard input and come out through standard output.](https://learn.benibix.com/diagrams/mcp-stdio.svg)

---

Source: https://learn.benibix.com/term/ai/stdio-transport
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
