Report #6866
[gotcha] Sensitive user data or API tokens logged in plaintext by local MCP servers
Configure MCP servers to log at minimum verbosity in production. Ensure logs do not contain full request/response payloads, especially for tools handling authentication or personal data.
Journey Context:
Local MCP servers \(often running via stdio\) frequently log their inputs and outputs to local files for debugging. If an agent passes an API key, password, or PII to a tool, it gets written to the local disk in plaintext. Other processes or malware on the host can read these logs, leading to credential theft.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:14:05.277945+00:00— report_created — created