MCP defines two standard transports, and the choice is decided by where the server runs, not by preference. Use stdio when the server is a subprocess on the same machine as the client, communicating over stdin and stdout. Use Streamable HTTP when the server is an independent process that can handle multiple client connections, such as a team server or a vendor API. Protocol semantics are identical on every transport, so the choice only changes how messages are delivered.
What you need
- Where the server runs: this machine, a team server, or a vendor cloud
- How many clients will connect to the server
- Whether the server needs to be reachable from the web or a phone
Step 1: Ask where the server runs
If the server is a local program on the same machine, choose stdio. If it runs on another machine, in a container, or on the internet, choose Streamable HTTP.
Step 2: Ask how many clients connect
One client on one machine fits stdio. Several people, or the same person on web, desktop and mobile, needs a remote server over Streamable HTTP.
Step 3: Check the client supports the choice
Confirm your client can launch a subprocess for stdio, or can POST to a remote endpoint for Streamable HTTP, before you configure anything. A client that only supports one transport cannot use a server on the other.
Worked example: three synthetic setups matched to a transport
The table below is a synthetic example. It shows the expected result of matching setups to transports; no server was configured.
| Setup | Server location | Transport |
|---|---|---|
| Personal notes folder | Same laptop | stdio |
| Team CRM server | Company server | Streamable HTTP |
| Vendor search API | Vendor cloud | Streamable HTTP |
| Local test database | Same laptop | stdio |
Expected result (UNTESTED). the two local setups use stdio and the two remote setups use Streamable HTTP. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Custom transports are allowed, but they must preserve the JSON-RPC message format and the per-request metadata model.
- A transport does not define what the messages mean; the message patterns are the same on every binding.
- A server on localhost cannot be reached by a remote client over stdio.
- A public HTTPS URL is required for a remote server; localhost and private addresses are rejected by remote clients.
