Context7

Up-to-date library documentation and code examples for LLMs, straight from the source.

#8 by GitHub starsDocumentation Codebase understandingstdio transportNo authFreeChecked 2026-11-01

What it connects

Fetches current docs and working code examples for the libraries your agent is using, so answers stop coming from stale training data. Widely used inside coding agents.

Capabilities

Compatibility

Compatibility by agent
AgentStatus
Claude CodeReported (not hands-on tested)
CursorReported (not hands-on tested)

Clients listed by publisher: Claude Code, Cursor, Codex, Cline

Configuration

Claude Code

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

Requirements

Source: https://github.com/upstash/context7 · Publisher: Upstash · ★ 64.1k on the source repo

Setup instructions and compatibility are compiled from publisher docs and community reports, not hands-on testing, unless a step is marked Tested. Check the source before relying on a setup.