> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# 让智能体“装个GitHub MCP”，它装的是哪个服务器？
- URL: https://globalfeed.ai/zh/rang-zhi-neng-ti-zhuang-ge-github-mcp-ta-zhuang-de-shi-na-ge-fu-wu-qi/
- Published: 2026-11-05T01:55:28.000Z
- Updated: 2026-11-05T01:55:28.000Z
- Description: Glow Labs 的 MCPhantom 研究显示，编程智能体有时会凭训练数据装上已归档的旧 MCP 服务器。原因、漏洞与今天就能做的检查。
- Author: GlobalFeed Editor
- Tags: MCP, Glow Security, AI智能体, 网络安全, Claude Code, x-glowio, dil-zh, elle

开发者对编程智能体说一句"帮我装个 GitHub MCP"，几秒钟后配置写好、命令执行、连接就绪。安全公司 Glow Security 的研究团队 Glow Labs 在真实会话记录中发现，有时智能体装上的并非 GitHub 如今维护的官方服务器，而是自2025年5月起就已归档、不再更新的旧包。团队把这类悄悄回到开发者电脑上的"退役"服务器称为 [MCPhantom](https://www.glow.io/blogs/mcphantom-ai-coding-agents-are-installing-vulnerable-deprecated-mcp-servers-from-training-data?ref=globalfeed.ai)。好消息是，原因和解决办法都很清楚：据 Glow 介绍，这些会话中没有攻击者，智能体只是按训练当天的知识行事，几分钟就能检查并改正。

## MCP 与退役的参考服务器

MCP（Model Context Protocol，模型上下文协议）是 AI 智能体连接外部服务的通用语言，好比插线板上的插座：为 GitHub、Slack 或数据库编写的小程序（MCP 服务器）让智能体能读取文件、创建议题或执行查询。Anthropic 于2024年推出 MCP 时发布了20个示例服务器；据 Glow 介绍，随着各服务推出自己的服务器，其中13个被归档。归档仓库 [modelcontextprotocol/servers-archived](https://github.com/modelcontextprotocol/servers-archived?ref=globalfeed.ai) 说明不再提供安全保证和修复。GitHub 服务器的现行版本是 GitHub 自己维护的 [github/github-mcp-server](https://github.com/github/github-mcp-server?ref=globalfeed.ai)。

## 智能体为何选旧包

语言模型的知识停在训练那天。在 Glow Labs 审查的安装或推荐旧服务器的会话中，98% 的包名似乎来自模型训练数据，其余2%是用户点名要旧包。这一模式出现在 Claude Code、Cursor、Codex CLI、Claude Cowork 和 Claude 聊天中，涉及 Anthropic、OpenAI 和 xAI 的模型。已弃用（deprecated）的包在 npm 搜索中不再出现，但 npx 仍会在警告后安装。

## 发现的四个漏洞

团队在这些早期参考服务器中发现四个高危漏洞，最严重的在让智能体操控浏览器的 Puppeteer 服务器：网页中隐藏的提示注入（prompt injection）可让智能体启动浏览器以外的任意程序并执行命令。维护者表示服务器已于2025年5月归档，不会再发布修复。截至11月5日，npm 上 server-github 和 server-puppeteer 的最新版本已标注"不再支持"。Glow 表示尚未发现漏洞被利用。据 Glow 统计，自2025年7月10日以来这些归档包在 npm 上共被下载17,352,267次。

## 今天就能做的事

- 给智能体完整包名，例如"安装 github/github-mcp-server"，或在 [MCP Registry](https://registry.modelcontextprotocol.io/?ref=globalfeed.ai) 查找最新服务器。
- 在 \~/.claude.json、.mcp.json、\~/.cursor/mcp.json、\~/.codex/config.toml 等配置中搜索归档包名，替换为服务方自己的服务器。
- 安装前用 npm view 查看弃用状态；团队内每项服务只批准一个服务器。
- 利用智能体工具在命令执行前触发的钩子（hook）拦截旧包名。

```
grep -rnE "@modelcontextprotocol/server-(github|gitlab|slack|postgres|puppeteer|brave-search|google-maps|gdrive|redis|aws-kb-retrieval|everart)" \
  ~/.claude.json .mcp.json ~/.cursor ~/.codex 2>/dev/null

npm view @modelcontextprotocol/server-github deprecated
```

以上结论来自 Glow Labs 自己审查的会话记录，文中未说明审查了多少会话；Glow 销售相关安全产品。建议同时关注独立研究人员的评估。

来源： [Glow Labs MCPhantom 研究](https://www.glow.io/blogs/mcphantom-ai-coding-agents-are-installing-vulnerable-deprecated-mcp-servers-from-training-data?ref=globalfeed.ai), [归档的 MCP 服务器](https://github.com/modelcontextprotocol/servers-archived?ref=globalfeed.ai), [GitHub MCP 服务器](https://github.com/github/github-mcp-server?ref=globalfeed.ai), [MCP Registry](https://registry.modelcontextprotocol.io/?ref=globalfeed.ai)