
Context7
Gives AI coding agents current, version-specific docs and code examples for the libraries you use.
- Stars
- 64.1k
- Forks
- 3.2k
- Licence
- MIT
- Language
- TypeScript
- Last update
- 4 days ago
- Type
- AI model / agent
What it is
Context7 is a service that supplies up-to-date documentation and code examples to AI coding assistants. Instead of relying on an AI's older training data, your agent can fetch current docs for a specific library or version while it writes code. It works either through a CLI with an installed skill or through an MCP server that the agent calls directly.
- Ask an agent to write a Next.js proxy and have it pull current Next.js docs first
- Have an agent look up Cloudflare Worker caching configuration from current docs
- Request Supabase auth examples with a specific library ID so the right docs are loaded
- Search the Context7 index from the command line with ctx7 library and ctx7 docs
Great for
- Developers who use AI coding agents such as Claude, Cursor, or VS Code for libraries that change often
- People who have seen AI tools invent APIs or produce outdated code
- Teams that want agents to pick the correct version of a framework
- Anyone who wants to avoid switching to a browser to look up docs
Not ideal for
- People who do not use an AI coding agent, since the main value is feeding docs into one
- Projects that rely only on stable, well-known libraries where the model's training data is already reliable
- Users who cannot send prompts or library names to an external service, since requests go to Context7's servers
How to get it
- 1
Install with a package manager
You'll need: Node.js 22.13 or newer
Run the guided setup
npx ctx7 setupRemove the generated setup later
npx ctx7 remove - 2
Run it
- Run npx ctx7 setup and follow the OAuth prompt to generate an API key
- Choose CLI + Skills or MCP mode, or use --cursor, --claude, or --opencode to target an agent
- Open your coding agent and add 'use context7' to a library-related prompt
- Optionally add a library ID such as /supabase/supabase to skip the matching step
- 3
Get the most out of it
- Get a free API key from context7.com/dashboard for higher rate limits
- Add a library ID with the slash syntax to load docs for an exact library
- Mention a version number in your prompt so Context7 matches that version
- Add a rule to your agent, such as a CLAUDE.md entry, so Context7 is used without being asked each time
Downloads
Strengths
- Brings current, version-specific documentation into the agent's context
- Works with several coding agents through CLI or MCP modes
- Setup is a single command, and a free API key raises rate limits
Trade-offs
- Depends on a hosted service at context7.com and its MCP endpoint
- Output quality depends on the agent and the docs that are indexed, which the README does not fully detail
- The ctx7 CLI needs Node.js 22.13 or newer
How it compares
| Project | Stars | Type | Level | Updated | Best for |
|---|---|---|---|---|---|
| context7 (this) | 64.1k | AI model / agent | beginner | 4 days ago | Developers who use AI coding agents such as Claude, Cursor, or VS Code for libraries that change often |
| codebase-memory-mcp | 48k | Dev tool | intermediate | 4 days ago | Developers who use an MCP-capable AI coding agent on a large codebase |
| github-mcp-server | 34.2k | Dev tool | intermediate | 4 days ago | Developers who already use an MCP-compatible AI tool such as VS Code with Copilot, Claude Desktop, or Cursor |
| python-sdk | 24.7k | Library | intermediate | 4 days ago | Python developers who want to expose their own functions to an LLM app as MCP tools |
| n8n-mcp | 23.2k | AI model / agent | intermediate | 4 days ago | People already using n8n who want an AI assistant to draft or check workflows |
| Skill_Seekers | 15.3k | Dev tool | intermediate | 1 months ago | Developers who want an AI assistant to know a specific library's documentation |
Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.