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.
Related Terms
Model Context Protocol (MCP)
An open, secure protocol that standardizes how artificial intelligence agents and large language models (LLMs) exchange context, tools, prompts, and data resources with external servers.
JSON-RPC 2.0
A lightweight, stateless remote procedure call (RPC) protocol defined in JSON that utilizes request, response, and notification message frames.
SSE Transport (Server-Sent Events)
A lightweight, unidirectional HTTP-based streaming protocol used by remote MCP servers to push messages to AI clients, with client-to-server writes sent over standard POST requests.
MCP Server
An application that implements the Model Context Protocol, hosting tools, resources, and prompt templates, responding to JSON-RPC requests from compliant AI clients.
Deploy Secure MCP Clusters
Run remote SSE Model Context Protocol servers in highly secure, fully-managed environment located inside India (Mumbai/Bengaluru).
Deploy Node Now