A transport defines how an MCP client (your AI coding agent) communicates with an MCP server.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/neon-solutions/add-mcp/llms.txt
Use this file to discover all available pages before exploring further.
add-mcp supports all three transport types defined by the MCP specification and writes the correct config format for each one into the target agent’s configuration file.
Transport overview
| Transport | Flag | Description | When to use |
|---|---|---|---|
| HTTP | --transport http | Streamable HTTP — the current MCP standard | Default for any http:// or https:// URL |
| SSE | --transport sse | Server-Sent Events — an older MCP transport | Older remote servers that don’t support streamable HTTP |
| stdio | (automatic) | Local process communicating via stdin/stdout | npm packages and shell commands |
HTTP (streamable HTTP)
Streamable HTTP is the default transport for remote servers. When your source starts withhttp:// or https://, add-mcp automatically configures the server entry with "type": "http" (or the equivalent field for the target agent). You do not need to pass any flag:
SSE (Server-Sent Events)
SSE is an older MCP transport that some servers still use. It is deprecated by the MCP specification but remains widely supported across agents. Pass--transport sse (or --type sse) to use it:
The
--transport and --type options are aliases — they behave identically. Use whichever feels more natural in your workflow.stdio
stdio is used for local MCP servers: npm packages and shell commands that run as child processes. add-mcp detects these automatically based on the source format — no flag is needed:command, args, and optionally env fields — the standard stdio shape expected by all agents.
How add-mcp infers source type
add-mcp inspects the raw input string to decide which source type (and therefore which transport) applies:
- Remote (HTTP/SSE)
- npm package (stdio)
- Command (stdio)
Any input starting with
http:// or https:// is treated as a remote server. The transport defaults to http; pass --transport sse to override.Agent transport compatibility
All agents except Claude Desktop support all three transport types. Claude Desktop is stdio only — it can only run local MCP servers through its config file. If you attempt to install a remote server (HTTP or SSE) to Claude Desktop, add-mcp will show an error and direct you to use the in-app Settings → Connectors interface instead.Adding headers and environment variables
For remote servers you can attach authentication headers with--header:
--env and extra arguments with --args: