Context7
Context7, by Upstash, feeds up-to-date, version-specific library documentation and code examples into your AI coding assistant's context. It addresses a common failure of LLMs: code based on year-old training data, hallucinated APIs and answers written for old package versions.
It is useful for anyone using Cursor, Claude Code, OpenCode or other coding agents with fast-moving libraries. You can add "use context7" to a prompt, name a specific library ID such as /vercel/next.js to skip the matching step, or mention a version (for example Next.js 14) to get matching docs. It works in two modes: a CLI plus skill (`ctx7`) that guides the agent to fetch docs without MCP, or an MCP server that exposes resolve-library-id and query-docs tools.
Getting started: run `npx ctx7 setup` (Node.js 18+), which signs you in with OAuth, creates an API key and installs the skill or MCP configuration for your agent; flags such as `--cursor` and `--claude` target a specific client. You can also point any MCP client at https://mcp.context7.com/mcp with your API key. A free API key gives higher rate limits.
Features
Why choose it
Trade-offs
Compatibility
Quick start
Use cases
How it compares
Alternatives
Comments
No comments yet. Be the first!