🔌MCP stdio Transport
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
Example code
json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}Common mistake
Key takeaways
- 1Same computer. No network.
- 2Host starts it. As a child program.
- 3One line, one message. Through standard input and output.