Report #92801
[gotcha] stdio MCP servers are more secure because they are local
Run stdio MCP servers with minimal environment variables and filesystem permissions. Use containerization or sandboxing even for local stdio servers. Strip sensitive environment variables \(AWS credentials, API keys, DATABASE\_URL\) before spawning the server process. Apply the same zero-trust posture you would to a remote server.
Journey Context:
The stdio transport spawns the MCP server as a child process that inherits all environment variables and the full filesystem permissions of the parent. A malicious stdio server can read environment variables, access the filesystem, and make network requests with the parent's credentials. The assumption that local means safe is wrong: a local process with your credentials is more dangerous than a remote API with limited scope. The stdio server can also persist after the parent exits if it forks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:21:20.547702+00:00— report_created — created