What researchers found
On 3 November 2026, Help Net Security reported on research by Glow Labs. The researchers read real AI coding sessions and found agents installing MCP servers that are deprecated, meaning their owners no longer recommend them. Glow Labs calls this pattern MCPhantom.
It happened with several tools and with models from Anthropic, OpenAI and xAI:
- In 98% of the sessions in the study, the agent seems to have chosen the old package from its training data. In the other 2%, the user asked for it by name.
- These old packages have been downloaded more than 17.3 million times from npm since July 2025. Downloads can include automatic installs and repeat downloads, so this is not a number of users.
- The researchers found four serious flaws with no available fixes. The worst was in the old Puppeteer server and could let an attacker run commands.
- They had not seen anyone use these flaws in an attack.
The study does not show how often this happens overall. It only included sessions where an old server was suggested or installed. The 98% does not mean that 98% of all AI sessions have this problem.
Why normal checks can miss it
MCP servers are often started by a setting like this:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"]
}
}
}npx can download and run the package without adding it to package.json. SCA may not see it if it only checks your project's dependency files. In this example, -y also skips the install question.
The four flaws had no CVE numbers, so a tool that only looks for CVEs would not find them. An npm warning may not be enough either. In one session, the agent saw the warning, installed the old package and did not tell the user.
Check your settings
Search your repository:
git grep -nE '@modelcontextprotocol/server-[a-z0-9-]+'
Personal settings are usually outside the repository, so check them too. Common places include:
grep -RInE '@modelcontextprotocol/server-[a-z0-9-]+' \ "$HOME/.claude.json" "$HOME/.cursor" "$HOME/.codex" \ "$HOME/Library/Application Support/Claude/claude_desktop_config.json" \ 2>/dev/null
Paths are different in some tools and on Windows. These files can contain tokens, so do not paste the full results into a ticket or chat. Some of the packages you find may still be maintained. Check each one:
npm view @modelcontextprotocol/server-github deprecated npm view @modelcontextprotocol/server-github repository.url time.modified
An empty deprecated result does not prove that a package is maintained. Its owner may not have added a warning on npm. Look at its source code page, recent releases and security policy too. Find out if the project has been archived.
Replace old servers
- Look for an official server. If GitHub has its own maintained server, use that one for GitHub.
- Check the source and owner. A package can have a trusted name without being made by that company.
- Use an exact version you have reviewed. Do not let it update every time it starts. Plan regular updates, because a fixed version does not update itself.
- Limit its access. Use a token with only the access it needs. Keep it away from folders and networks it does not use.
- Remove the old server from shared and personal settings. Stop it if it is running. If you think it was misused, replace its tokens.
Keep a short approved list
Glow recommends approving one server for each service and checking its npm status as part of that approval. For each server, record:
| Item | Example |
|---|---|
| Service and owner | GitHub, developer tools team |
| Official source | Link to the vendor's documentation |
| Approved version | Exact version or image digest |
| Access allowed | Read issues in two repositories |
| Last and next review | Dates and the person responsible |
Some coding tools let you check a command before it runs. You can use this to block servers that are not approved. Test the check with different types of commands, because blocking one package name may not cover every way to install it. A line in the prompt, such as "use safe packages", is not a security control.
What scanners can and cannot find
SCA is useful when an MCP server is listed in your project files. It may miss a package that npx downloads, and a server with no CVE may look safe. SAST can check a server's code if you scan its repository. Secrets scanning can find tokens saved in shared settings. It will not tell you if an MCP server is out of date.
You need to check your project files and the AI tool settings on people's computers.
Check the packages in your repositories
AquilaX SCA checks project dependencies. It may not see a tool that an AI agent downloads while it is running, so check agent settings too.
See dependency scanning →