Context7 MCP
开发工具 推荐为 AI 编程 Agent 提供最新、按版本匹配的库文档和代码示例。
作者
Upstash
类别
开发工具
GitHub Stars
54,683+
兼容客户端
4 个
新鲜度
已验证 2026-05-07
安装方法
运行以下命令安装:
npx ctx7 setup 配置示例
将以下配置添加到你的 MCP 客户端配置文件中(例如 Claude Desktop 的 claude_desktop_config.json):
{
"mcpServers": {
"context7": {
"command": "npx",
"args": [
"ctx7",
"setup"
]
}
}
} 兼容客户端
详细信息
| 服务器 ID | context7 |
| 作者 | Upstash |
| 类别 | 开发工具 |
| 兼容客户端 | Claude Code、Cursor、OpenCode、Windsurf |
| 标签 | docscodingcontextmcp |
| GitHub | https://github.com/upstash/context7 |
| 网站 | https://context7.com |
| GitHub Stars | 54,683+ |
| 维护状态 | 活跃维护 |
| 最近 GitHub 推送 | 2026-05-06 |
| 元数据验证 | 2026-05-07 |
关于 Context7 MCP
Context7 MCP 是由 Upstash 开发的 Model Context Protocol (MCP) 服务器。为 AI 编程 Agent 提供最新、按版本匹配的库文档和代码示例。
MCP(Model Context Protocol)是一个开放标准,允许 AI 模型安全地连接外部工具和数据源。通过安装 Context7 MCP,你的 AI 助手可以通过标准化接口执行实际操作,而不仅仅是生成文本。
该服务器兼容 Claude Code、Cursor、OpenCode、Windsurf,在 GitHub 上获得了 54,683+ Stars,属于"开发工具"类别的 MCP 服务器。
其他开发工具服务器
热门 MCP 服务器
相关工具
常见问题
如何安装 Context7 MCP?
在终端中运行 "npx ctx7 setup",然后将服务器配置添加到你的 MCP 客户端配置文件中。对于 Claude Desktop,配置文件通常位于 macOS 的 ~/Library/Application Support/Claude/claude_desktop_config.json 或 Windows 的 %APPDATA%/Claude/claude_desktop_config.json。
Context7 MCP 兼容哪些客户端?
Context7 MCP 兼容 Claude Code、Cursor、OpenCode、Windsurf。每个客户端有各自的配置文件格式,但 MCP 服务器的配置方式基本相同。
Context7 MCP 可以做什么?
为 AI 编程 Agent 提供最新、按版本匹配的库文档和代码示例。 配置完成后,你的 AI 助手可以通过自然语言命令使用这些功能,直接在 AI 聊天界面中执行实际操作。