📚

Context7 MCP

✓ 官方/认证

Upstash (官方)

为 AI 注入 7000+ 库的实时版本特定文档,直接解决 LLM 训练数据过时问题

16.1k
GitHub Stars
stdio
安装方式
MIT
开源协议
2
可用工具

📖 详细介绍

Upstash 官方 Context7 MCP Server,把最新版本特定库文档直接注入 LLM 上下文,自动随文档更新。覆盖 7000+ 库,无需 API Key,初始设置后离线工作。已是最受欢迎的 MCP server 之一(11000+ 浏览)。

核心特性

7000+ 库覆盖
版本特定文档
自动随上游更新
无需 API Key
Upstash 官方

🛠️ 可用工具 (2)

get-library-docs()
resolve-library-id()

🎯 适用场景

AI 编码查文档
解决训练数据过期
库版本迁移
代码示例生成
API 参考查询

⚙️ 安装与配置

系统要求

  • Node.js 18+
  • 无 API Key

安装命令

npx -y @upstash/context7-mcp

Claude Desktop 配置 (claude_desktop_config.json)

{
  "mcpServers": {
    "context7-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

🔗 相关链接

🧩 相关 MCP Servers

浏览更多 AI 与机器学习 MCP

Context7 MCPAI 与机器学习 分类下的 MCP server 之一