dotsagent.io
语言:简体中文
开发工具 · Upstash

配置 Context7

将最新的特定版本库文档和代码示例注入 prompt。由服务托管,可选用 API 密钥。

发布者
Upstash 官方
托管端点
https://mcp.context7.com/mcp
本地运行
npx -y @upstash/context7-mcp
传输方式
streamable-http, stdio
身份验证
无需密钥;使用 bearer token 发送 API 密钥可提高速率限制。
可访问内容
只读。
许可证
MIT
源码
github.com/upstash/context7
状态
活跃

安装

此服务器由供应商托管,因此只需添加其 URL,无需在本机运行任何内容。如果需要身份验证,上方的条目会说明具体方式;OAuth 服务器会在首次连接时提示你进行授权。

Claude Code

shell
claude mcp add --transport http --scope project context7 https://mcp.context7.com/mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp"
    }
  }
}

Codex

~/.codex/config.toml
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"

改为在本机运行(Cursor)

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

其他客户端的配置 →

开发工具 中的其他服务器

来源

  1. github.com/upstash/context7
  2. code.visualstudio.com/docs/copilot/reference/mcp-configuration

为 AI agent 开发者提供的独立参考资料。与此处提及的任何厂商均无关联。

© 2026 DotsAgent · 事实核查日期:2026年10月1日