Context7
Up-to-date, version-specific library docs pulled into the agent’s context.
Install
# Claude Code claude mcp add context7 -- npx -y @upstash/context7-mcp # Cursor / VS Code / Windsurf (mcp.json) "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp"] }
Commands change between releases — if something fails, check the official README.
About Context7
Context7 fetches current documentation and code examples for the libraries you use, so agents stop writing code against outdated APIs. Available as a local npx server or a hosted endpoint; an API key raises limits.
FAQ
What is Context7?
Up-to-date, version-specific library docs pulled into the agent’s context.
How do I install Context7?
Run: claude mcp add context7 -- npx -y @upstash/context7-mcp. Full steps are in the Install section on this page.
Which agents does Context7 work with?
Claude Code, Claude apps, Cursor, VS Code & Copilot, OpenAI Codex, Gemini CLI, Windsurf, ChatGPT.
Is Context7 free?
It is free to start; the connected service has paid plans.
Alternatives to Context7?
Brave Search MCP, DeepWiki MCP, Exa MCP, Fetch MCP, Firecrawl MCP.