Skip to content

MCP over stdio or HTTP: choosing the transport for a server

A local MCP server usually runs over stdio, a shared one over HTTP. The difference, the authentication that comes with each, and what a team should pick.

Published by Contextingo.

MCP defines how messages are formatted and leaves the transport to a small set of options. Two matter in practice.

stdio

The client starts the server as a child process on your computer and talks to it through standard input and output.

  • Simple: no network, no port.
  • Runs with your user rights. Whatever the server can do, it does as you.
  • One process per client. Not shared with teammates.

HTTP

The server runs somewhere reachable and the client connects by URL. The protocol’s current HTTP transport is called Streamable HTTP.

  • Shared: one server for many clients.
  • Needs authentication, because it is on a network. A bearer token or OAuth is typical.
  • Central updates and central logging.

Which for a team

A server that holds shared project knowledge should be reachable by everyone, so HTTP fits. A server that touches only local files, such as a formatter, fits stdio.

Example

{
  "mcpServers": {
    "contextingo": {
      "type": "http",
      "url": "https://contextingo.com/mcp/p/<project-id>",
      "headers": { "Authorization": "Bearer ${CONTEXTINGO_TOKEN}" }
    }
  }
}

The key is personal, so actions are tied to a person. See the Codex setup guide.

Questions

Good to know.

Is stdio less secure than HTTP?

They have different risks. A stdio server runs code on your machine with your rights, so install only servers you trust. An HTTP server needs authentication.

Can I use both?

Yes. A client can connect to local and remote servers at once.

Nothing learned is lost. Nothing unchecked is done.