Skip to content
BENIBIX Learn

MCP stdio Transport

AI🔌 MCPTransports and Authorization

Also known as MCP stdio, Standard IO Transport

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

Think of it like

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

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.

Why it matters

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

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 code

json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
One message, written as one line to the server's standard input.
The host starts the server on the same computer. Messages go in and out through standard input and output.

Common mistake

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

Key takeaways

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