Coding agents install deprecated MCP servers from memory
Glow Labs found coding agents installing archived MCP reference servers from training data, including one with an unpatched remote code execution bug. Here is why model memory is not a package index, and the controls we would add.
- Written by
- Baraqix Engineering
- Published
- Read
- 5 min
- Filed under
- mcp, agents, supply chain, security
Contents3 sections
On 2 November 2026, Glow Labs published research it calls MCPhantom: AI coding agents setting up MCP servers that were deprecated and archived. Glow's reading of the transcripts is that the package name came from the model's training data rather than from a lookup. The finding is narrow and specific, and that is why it matters. Nobody attacked anyone. The agent simply remembered an old package name, and nothing in the toolchain stopped it.
What Glow Labs reported
Glow Labs reviewed real coding session transcripts. In 98% of the sessions where an agent set up a deprecated MCP server, Glow says the choice appears to come from training data. In the other 2%, the user asked for the old package by name. Read the scope carefully: Glow's own wording makes the 98% a share of sessions where an agent set up a deprecated server. It describes why it happened in those sessions. It is not a rate for how often agents pick deprecated packages across real sessions in general.
In the GitHub example, the agent passed over the server GitHub maintains and installed an archived Anthropic reference server instead. The archive repository was archived on 29 May 2025, and its README states that no security updates or bug fixes will be provided. Glow says Anthropic published 20 reference servers and 13 were archived. The archive README itself lists 14 servers, so the counts do not quite agree.
- Where it showed up: Claude Code, Cursor, Codex CLI, Claude Cowork and Claude chat, with models from Anthropic, OpenAI and xAI, according to Glow.
- What is in the packages: four high severity vulnerabilities across the deprecated reference servers. The most serious is a remote code execution bug in the Puppeteer server, where a prompt injection makes the agent start any process instead of the browser.
- How widely used: 17,352,267 npm downloads since 10 July 2025 across the packages Glow counted, with
server-githubat 5,266,085 andserver-postgresat 4,312,874. - Fix status: the maintainers closed the Puppeteer report as out of scope because the server is unmaintained. Glow says it has not seen exploitation.
One detail should end a common argument. A Glow researcher told Help Net Security that in one session the agent checked npm, was told the package was deprecated, installed it anyway and did not tell the user. Asking the model to look things up first is advice, not a control.
Why this is a backend problem, not only a laptop problem
Glow frames MCPhantom as an endpoint security issue, and for developer machines that is right. Our position is broader. Glow describes the model's memory as a package manager with no deprecation feed, and that flaw is not limited to laptops. Any system where a model chooses which tool or package to bring in has it, because the model's memory has no deprecation feed and no security advisories. That covers coding agents, internal agents that configure their own integrations, and the scaffolding a team generates during a prototype and then ships.
An MCP server launched with npx is a dependency that never appears in package.json or a lockfile. As Glow points out, your SCA tool cannot flag it, and since these flaws have no CVEs, there is nothing for it to match. If an agent wrote the config, no human ever chose that package. When a team reviews an AI prototype before production, the config files that start tool servers deserve the same scrutiny as the application manifest, and for the reasons above, often more.
| Question | Model memory | What we treat as the source of truth |
|---|---|---|
| Which server for this service? | Whatever name was common during training | One approved server per service, written down in the repo |
| Is it still maintained? | Unknown | npm deprecation status and the repository archive flag, checked by a script |
| Which version runs? | Latest at launch time via npx | An exact pinned version that changes only through review |
| Who approved it? | Nobody | A named team in code review, like any other dependency |
What we would do this week
- Search every repository and developer machine for MCP configs that reference
@modelcontextprotocolserver packages, and replace each one with the service owner's own server where one exists. This is the first step Glow recommends, and we agree. - Keep an allowlist with one server per service at an exact version. Floating
npxinstalls mean the code that runs can change without anyone reviewing it. - Make the check deterministic and outside the model. Run it in CI on every config change, and wire it into the hooks your agent harness runs before tool execution, where the harness supports them.
- Scope permissions per tool, not per session. The Puppeteer bug is dangerous because approving browsing ended up covering arbitrary commands. A browser tool should run in a sandbox that cannot spawn other processes.
- Watch for configs that change without a commit. If an agent can write its own tool config, that write is a privileged action and should be logged and reviewed.
The gate does not need to be clever. This is the shape of the check we would add to CI, reading a JSON config with an mcpServers map:
#!/usr/bin/env bash
# Gate: every npx-launched MCP server must be on the allowlist and not deprecated on npm
set -euo pipefail
config="${1:-.mcp.json}"
allow="${2:-mcp-allowlist.txt}" # one exact name@version per line
fail=0
while read -r name pkg; do
base="${pkg%@*}"; [ -z "$base" ] && base="$pkg"
if ! grep -qxF "$pkg" "$allow"; then
echo "BLOCK $name: $pkg is not on the allowlist (pin an exact version)"; fail=1
fi
dep="$(npm view "$base" deprecated 2>/dev/null || true)"
if [ -n "$dep" ]; then
echo "BLOCK $name: $base is deprecated on npm: $dep"; fail=1
fi
done < <(jq -r '.mcpServers | to_entries[]
| select(.value.command == "npx")
| "\(.key) \(.value.args | map(select(startswith("-") | not)) | .[0])"' "$config")
exit "$fail"A caveat on the source: Glow sells endpoint tooling for exactly this problem, and the transcripts come from its own monitoring. The archive notice and the npm download counts can be checked independently, and we think they are enough to justify the controls above without relying on the vendor framing. None of these steps require buying anything.
If your agents, MCP integrations or prototype backends were assembled with heavy help from coding agents and nobody has audited which tool servers they start, that is a good use of a Discovery Sprint. Our AI integration work starts from the position that every tool an agent can reach is a dependency to review and pin, because the model will not do that review for you.
Baraqix Engineering. Written by the engineers who did the work.
NOTE/09. First published .