# MCP over stdio or HTTP: which transport for which server

Canonical: [MCP over stdio or HTTP: which transport for which server](https://contextingo.com/blog/mcp-stdio-vs-http)

Locale: en

Purpose: 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.

Content updated: 2026-10-01

Source revision: content.ts 2026-10-01

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/blog.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

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](/guides/codex-cli-mcp-server-setup).

## Questions

### 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.
