MCPhantom: Agents Install Deprecated MCP Servers

On November 2, 2026, Glow Labs published research it calls MCPhantom, picked up the next day by Help Net Security. The finding is uncomfortable: when a developer asks an AI coding agent to set up an MCP server, the agent names the package from memory. In 98% of the reviewed sessions that name came from the model's training data rather than a live registry lookup — and many of those names point at servers archived a year and a half ago.

The model's memory is acting as a package manager

A package manager has one source of truth: the registry, with deprecation flags and release dates attached. A model's memory is a frozen snapshot from training time, with no deprecation feed behind it. The agent writes npx -y @modelcontextprotocol/server-github because that was correct when it was trained, not because it is correct today.

The numbers from the report:

  • More than 17.35 million npm downloads of these packages since July 10, 2025.
  • 13 of the 20 reference servers Anthropic published in 2024 are archived.
  • Five of them still sit in npm's top 100 MCP packages.
  • server-github alone: 5,266,085 downloads. server-postgres: 4,312,874. server-slack: 3,198,630.
  • Four high-severity flaws across those servers, the worst a remote code execution path in server-puppeteer.

This is not one vendor's problem. The report names Claude Code, Cursor, Codex CLI and Claude Cowork, with models from Anthropic, OpenAI and xAI all producing the same behavior.

Why existing controls walk past it

  • It never reaches a manifest, because npx fetches it at launch.
  • EDR sees a trusted Node process pulling a public package — routine.
  • SCA has no manifest to read, and the flaws carry no CVE IDs.
  • Software inventory records nothing; the endpoint is the only place it exists.

The Puppeteer path is direct: a prompt injection makes the agent start an arbitrary process instead of a browser. The developer approved "browse the web," and that approval quietly became "run any command."

A practical audit

bash
# 1. which configs still point at the archived reference servers?
grep -rlE '@modelcontextprotocol/server-(github|postgres|slack|puppeteer|gitlab|gdrive|redis|brave-search|google-maps)' \
  ~/.claude.json ~/.claude ~/.cursor ~/.codex . 2>/dev/null

# 2. ask npm directly — an empty answer means it is still supported
npm view @modelcontextprotocol/server-github deprecated

Then move each entry to the server the service owner actually maintains:

json
{
  "mcpServers": {
    "github": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN",
               "ghcr.io/github/github-mcp-server"],
      "env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}" }
    }
  }
}

The report's own view is that the fix which ships soonest is a pre-execution gate, since most harnesses already support one:

js
// gate.mjs — refuse any launch of an archived reference server
const ARCHIVED = /@modelcontextprotocol\/server-/;
const command = process.env.TOOL_INPUT_COMMAND ?? "";

if (ARCHIVED.test(command)) {
  console.error(`blocked: ${command} resolves to an archived reference server`);
  process.exit(2); // non-zero tells the harness to stop the call
}

Real-world caveats

  • No exploitation has been observed, and these flaws carry no CVE numbers. That is a reason to inventory, not to panic.
  • Marking a package deprecated on npm does not stop npx from running it.
  • Unpublishing is effectively off the table: npm allows removal only under 300 weekly downloads, with a single owner and no public dependents. server-github had 185,239 downloads in a week and six owners.
  • A registry lookup before install is not enough on its own. In one documented session the agent read the deprecation notice, installed the package anyway, and never mentioned it.
  • Replacement servers expose a different tool surface. Migrating is not a string swap — prompts and workflows that assumed the old tool names need a pass.

Takeaway

AI multiplies what a developer can ship; it does not take over the dependency decision. The working rule is narrow and cheap: one approved MCP server per service, owned by whoever owns the service, with npm deprecation status sitting in the approval criteria next to the license. The same discipline that agent config files earned after the npm worm applies here — anything an agent writes into a config deserves the review any other code gets.

Primary source: MCPhantom, Glow Labs