Back to Glossary Index
Core ConceptTransport (defined in the MCP specification itself)

Socket Adapter (stdio, an Actual MCP Transport)

Industry Definition Set • Entity Resolution Path: /glossary/mcp-socket-adapter-87

Quick Answer / TL;DR

MCP's local transport is stdio — the client spawns the server as a subprocess and communicates over its standard input/output streams — the actual 'socket-like' mechanism MCP defines for local use, distinct from network sockets or WebSocket adapters.

Key Takeaways

  • MCP's actual local transport mechanism — process stdin/stdout, not a network or WebSocket-style socket.
  • The client spawns the server directly; there's no listening network port involved at all.
  • stderr is conventionally reserved for logging, separate from the JSON-RPC message stream on stdout.
  • Simpler and lower attack-surface than any network transport, at the cost of being local-only.
Definitive Statement: MCP's local transport is stdio — the client spawns the server as a subprocess and communicates over its standard input/output streams — the actual 'socket-like' mechanism MCP defines for local use, distinct from network sockets or WebSocket adapters.

Technical Context & Protocol Usage

Detailed Explanation
For local MCP servers (the common case for tools like Claude Desktop connecting to a locally-installed server), there's no network socket involved at all: the client launches the server process directly and reads/writes newline-delimited JSON-RPC messages over its stdin/stdout, with stderr typically reserved for logging. This is simpler and has a smaller attack surface than any network transport, since there's no listening port, but it also means the server's lifecycle is tied entirely to the client process that spawned it.

Format & Payload Metadata

Format: Newline-delimited JSON-RPC over stdin/stdout

Latency: Extremely low — local process I/O, no network round-trip

Real-World Implementation Use Case

Claude Desktop spawns a locally-configured MCP server as a subprocess, exchanging JSON-RPC messages over its stdin/stdout with no network connection involved at all.

M
MCPserver.in Engineering

Platform Team

Published: 2026-07-20
Updated: 2026-07-21

Cite This Page

MLA Style:

MCPserver.in Engineering. "Socket Adapter (stdio, an Actual MCP Transport)." MCPserver.in Knowledge Hub, 21 July 2026, mcpserver.in/glossary/mcp-socket-adapter-87.