Context7

Level ACuratedLocal

为 AI 提供最新版技术文档和代码示例检索,写代码不再用过时 API,免密钥开箱即用

Overview

Context7 retrieves up-to-date docs and code examples for AI coding agents, reducing stale-API mistakes, with keyless out-of-the-box setup.

⭐ 64.1kDevelopment ToolsTypeScriptRepo ↗

Installation

MCP client config (paste into mcp.json)

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

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://github.com/upstash/context7

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers