Back to MCP Servers

Context7

Up-to-date, version-specific documentation for thousands of libraries, injected straight into your agent's context. Kills hallucinated APIs.

Category: Development · Works with: Claude Code, Grok Build, Claude Desktop, Cursor, VS Code, Codex CLI, Gemini CLI

What it does

When the agent writes code against a library, Context7 fetches the current docs and real code examples for the exact version — instead of the model guessing from stale training data.

Install

npx -y @upstash/context7-mcp

Setup Instructions

claude Code
claude mcp add context7 -- npx -y @upstash/context7-mcp
grok Build
Add in Grok Build's MCP settings:

npx -y @upstash/context7-mcp

Then add "use context7" to prompts involving library APIs so Grok pulls current docs instead of relying on training data.
cursor
Add via Cursor MCP settings with command "npx -y @upstash/context7-mcp". Then add "use context7" to prompts that involve library APIs.
Official documentation