Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

stdio transport

Definition

The MCP transport in which the client launches the server as a local process and exchanges messages over standard input and output.

In more detail

stdio is the simplest way to run a server on your own machine: the client config names a command such as npx some-server or uv run server.py. Because the server only writes protocol messages to stdout, any logging must go to stderr or it will corrupt the stream.

The client starts the server as a child process, writes JSON-RPC messages to its standard input and reads replies from its standard output, one message per line. When the client closes, the server process ends with it. There is no network port, so nothing else on the machine can connect.

The server runs with your user's permissions and whatever environment variables the config passes, so only run servers you trust, pin their versions, and pass the narrowest credentials that work.

  • Least privilege

    Granting an agent or tool only the permissions and data access its task requires, and nothing more, so a mistake does less damage.

  • MCP client

    The component inside a host application that holds a connection to a single MCP server and relays messages to and from that server.

  • MCP server

    A program that exposes tools, resources or prompts to MCP clients, running locally over stdio or remotely over HTTP, so any MCP host can use them.

  • Streamable HTTP

    The MCP transport for remote servers, using HTTP POST requests with optional streamed responses. It replaced the older HTTP+SSE transport.

  • Agent Client Protocol (ACP)

    An open protocol that standardises how code editors talk to coding agents, so a compatible agent runs in any compatible editor.

  • Build an MCP server in Python with FastMCP

    Build a small MCP server in Python with FastMCP, test its tools in MCP Inspector without a model, then connect it to Claude Code, Cursor or another MCP host.

    TutorialIntermediate1 h

  • Connect MCP servers to Claude Code, Codex and Cursor

    Add local and remote MCP servers to Claude Code, Codex and Cursor, choose the right scope, sign in with OAuth and check which tools actually loaded.

    TutorialBeginner25 min

  • MCP config cheat sheet

    Where Claude Code, Codex and Cursor keep MCP server config, with copyable JSON and TOML for local and remote servers, secrets, scopes and OAuth commands.

    Article