Report #13982
[gotcha] Installing MCP servers from npm or PyPI without code review is a supply chain compromise
Audit the source code of every MCP server package before installation; pin exact versions in lockfiles; verify package provenance and maintainer identity; run MCP servers in network-restricted sandboxes that block unexpected outbound connections; monitor npm/PyPI for typosquatting on popular MCP server package names.
Journey Context:
The MCP ecosystem encourages installing community servers via package managers—'npm install @someorg/mcp-server-xyz' and add it to your config. These servers run as local processes with full system access. A malicious package can exfiltrate data through tool descriptions \(prompt injection\), direct network calls from the server process, or filesystem access—none of which require the LLM to cooperate. The attack does not even need to involve the LLM; the server process itself can phone home on startup. Developers treat MCP server installation like adding a VS Code extension, but the threat model is closer to installing a root CA—full local compromise.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:19:17.037025+00:00— report_created — created