← Back to Glossary
Glossary

MCP stdio transport

The MCP stdio transport is the transport mode in which an MCP client launches a local MCP server subprocess and communicates with it over standard input/output pipes using JSON-RPC 2.0 framing.

How it works

The MCP client spawns the server as a child process and sends JSON-RPC messages on the child's stdin, reading responses from its stdout. Stderr is reserved for logging. Framing is newline-delimited; each message is a single JSON-RPC 2.0 envelope. The transport is designed for local servers packaged alongside an editor, agent, or desktop host (Claude for Desktop, Cursor, Zed, VS Code Copilot).

Security model

stdio inherits the privileges of the launching user — a local MCP server runs with the full environment, file system, and network access of the host. There is no sandbox at the transport layer. The security model relies on three expectations: the user trusts the server they installed; the client validates server output before presenting it to the model; and the server itself defends against malicious prompts routed through its tools.

Common pitfalls

  • Treating stdio as a trust boundary — it is not; the subprocess has your full privileges.
  • Shipping a server that reads arbitrary files or runs arbitrary commands with no capability check at the tool layer.
  • Leaking tokens or API keys into the environment of the stdio subprocess without need.

Related

See our MCP pen testing scope for what a full MCP security assessment covers — including transport-layer checks (stdio sandboxing, HTTP TLS, origin validation on streamable HTTP) and the broader auth / tool / resource surface.

Stop finding vulnerabilities manually

TigerStrike uses AI agents to continuously discover, validate, and exploit vulnerabilities across your applications — so your team can focus on fixing what matters.