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.
Definitive Statement: 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.

Technical Context & Protocol Usage

Detailed Explanation
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.

M
MCPserver.in Engineering

Platform Team

Published: 2026-07-15
Updated: 2026-07-15

Cite This Page

MLA Style:

MCPserver.in Engineering. "Stdio Transport (Standard Input/Output)." MCPserver.in Knowledge Hub, 15 July 2026, mcpserver.in/glossary/stdio.