Context7 MCP for Claude Desktop
Give Claude access to current library documentation
Context7 and Claude Desktop
Claude Desktop has native MCP support, making it ideal for Context7 integration. Connect Context7 to give Claude access to up-to-date documentation for thousands of libraries.
Why Context7 + Claude is Powerful
- Current API Knowledge for latest library versions
- Accurate Examples reflecting how libraries work today
- Fewer Hallucinations with real documentation
- Better Debugging with accurate reference material
Quick Installation
npx @upstash/context7-mcp@latest init --claude This automatically configures Claude Desktop. Restart Claude after running.
Manual Installation
Edit Claude's configuration file:
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
Add Context7 to mcpServers with command "npx" and args ["-y", "@upstash/context7-mcp@latest"]. Optionally add CONTEXT7_API_KEY in env section.
Using Context7 with Claude
Ask Claude about any library and Context7 automatically provides documentation:
- "How do I set up server actions in Next.js 15?"
- "Show me how to create a REST API with Hono"
- "How do I configure Drizzle ORM with PostgreSQL?"
Tips for Better Results
- Be specific about library names
- Mention versions when relevant
- Ask follow-up questions for deeper understanding