For a local MCP server, stdio can connect a client to a launched process without opening a network listener. HTTP supports a different deployment model, including separately running services. Neither transport is a complete security policy. Choose based on where the server runs, who launches it and which access boundary you can actually enforce.
Start with who owns the process
In a stdio arrangement, the client typically launches the server process and communicates through its standard streams. That makes the executable and launch configuration central. A package command can have broad access even when it never listens on a public port.
In an HTTP arrangement, the server can run separately and serve a supported endpoint. That changes lifecycle, authentication and network questions. A remote managed service and a local development endpoint are not the same exposure, even if both use HTTP transport.
Review the executable before the friendly tool name
Inspect the package source, publisher, version and supported installation route. Know what command will run and what environment it inherits. A friendly label in a tool picker does not reveal the permissions of the underlying process.
Use a disposable workspace and invented files for a first test. Keep unnecessary credentials out of the process environment. If the server only needs one folder, use supported operating-system or container restrictions where appropriate rather than assuming its working directory is a sandbox.
Transport changes the connection, not every permission
A conceptual topology. Authentication and lifecycle details must follow the selected MCP version and implementation.
Stdio
- Client launches server
Communication uses process input and output.
- OS permissions
The launched process still has its effective account access.
HTTP
- Separate service
Client connects to a supported network endpoint.
- Network controls
Authentication, origin handling and exposure need explicit review.
No public port does not mean no risk, and a localhost HTTP address does not automatically establish authorisation.
Review HTTP as an exposed service
Identify where the server binds, who can reach it and how clients authenticate. Follow the versioned MCP security and transport guidance, including relevant origin and session handling. Do not expose an unauthenticated development endpoint merely because it was convenient on localhost.
Also distinguish authentication from authorisation. Knowing who connected does not automatically mean they may invoke every tool against every resource. Enforce resource and action permissions inside the service using trusted identity, not a model-provided user identifier.
Scroll the table horizontally to see all columns.
| Decision | Stdio questions | HTTP questions |
|---|---|---|
| Ownership | Which client launches the process? | Who operates the service? |
| Credentials | Which environment values are inherited? | How are client credentials and tokens handled? |
| Access | What can the OS account reach? | Which network and resource permissions apply? |
| Lifecycle | Does the process stop with the client? | How are sessions and service shutdown managed? |
| Diagnostics | Are logs kept separate from protocol output? | Are errors and access logs sanitised? |
Keep protocol output and diagnostics distinct
For stdio servers, accidental logging to the protocol stream can break communication. Use the implementation's documented diagnostic channel and avoid printing secrets. A server that works interactively can fail when a client expects structured protocol messages on the same output.
For HTTP, return useful errors without internal stack traces or credentials. Track enough request identity to diagnose failures while avoiding complete private tool inputs in general logs. Transport debugging should not create a new data-exposure path.
Test the boundary, not only discovery
Discovering a tool proves that a client can see its schema. It does not prove that unauthorised operations are rejected or that a write occurred correctly. Use harmless fixtures for allowed, invalid and unauthorised calls, and inspect actual state for any side effect.
If an AI agent uses the server, test untrusted tool-result instructions separately. A transport cannot prevent a model from misunderstanding content, while server-side permissions can contain the consequences. Keep both layers in the design.
Choose the simplest supported topology
For a local single-client command, stdio may avoid unnecessary service operation. For a separately hosted service or multiple authorised clients, HTTP may fit better. Follow the implementation's supported model rather than wrapping every local command in a public proxy.
Document the version, launch method, permissions and removal path. Recheck after changing a package, account or deployment environment. The right choice is the topology you can explain, constrain and test—not the transport name that sounds most secure in isolation.
Frequently asked questions
Is stdio always safer than HTTP for MCP? No universal ranking follows from transport alone. Stdio can avoid a listener, but package trust and process permissions still matter. HTTP needs deliberate endpoint, authentication and network controls.
Does a local MCP process inherit my account's access? It can, depending on the launcher and environment. Review the actual executable, arguments, environment and operating-system restrictions rather than assuming a workspace folder limits all access.
Should I open a port to use a local MCP command? Not by default. If the client and server support the documented stdio path, a separate public listener is unnecessary. Use the transport that matches the supported deployment model.
Sources
- MCP: server concepts, versioned documentation
- Tether changelog, including November 16 update
- Related practical guide
Technical references checked .



