Back to Glossary Index
Core ConceptTransport Layer (Local Process Bound)

Stdio Transport (Standard Input/Output)

Industry Definition Set • Entity Resolution Path: /glossary/stdio

Quick Answer / TL;DR

A local-only transport mechanism where the AI client spawns the MCP server as a child process and communicates via standard input (stdin) and standard output (stdout) channels.

Key Takeaways

  • Default transport layer for local agent setups.
  • Zero network ports required, securing the server within localhost boundaries.
  • Process lifecycle is bound directly to the parent AI application.
  • All debug and error diagnostics should be routed exclusively to stderr.

Technical Context & Protocol Usage

StdIO transport is the default transport mode for desktop AI applications like Claude Desktop or Cursor. The AI client executes a command (e.g., 'node', 'python') to launch the MCP server in a separate subprocess. Messages are exchanged by writing JSON-RPC lines into the stdin/stdout streams. Standard error (stderr) is redirected to application logs so it doesn't corrupt the structured standard output JSON-RPC stream.

Format & Payload Metadata

Format: Line-delimited JSON-RPC over Standard Pipes

Latency: Instantaneous IPC (<1ms)

Real-World Implementation Use Case

Running a local filesystem browser tool directly inside your IDE without spinning up web server listeners or local ports.

R
Rahul K. Gupta

Lead Systems & Protocol Architect, MCPserver India

Published: 2026-03-24
Updated: 2026-07-09