Skip to content

安装

在几分钟内让 Context7 MCP 在您最喜欢的 AI 编程助手中运行起来。

要求

在开始之前:

  • MCP 客户端: Cursor, Claude Code, VS Code, Windsurf, 或其他兼容 MCP 的 IDE
  • API 密钥 (推荐): 用于更高的速率限制和私有仓库。在 context7.com/dashboard 获取您的密钥

推荐设置

对于大多数用户,我们推荐:

  • 远程服务器 (HTTP) - 设置更简单,无本地依赖
  • 带 API 密钥 - 更高的速率限制和访问私有仓库

快速安装

通过 Smithery

通过 Smithery 自动为任何客户端安装 Context7 MCP:

bash
npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>

从您的 smithery.ai 账户获取您的 Smithery 密钥。

客户端特定安装