
Description
Context7 is a documentation tool for AI coding agents from Upstash. It fetches up-to-date, version-specific documentation and code examples for libraries straight from their sources and places them into the prompt, so the agent works from current APIs instead of out-of-date training data. You can set it up in two ways. The CLI and skills mode installs a skill that tells your agent to fetch docs with ctx7 commands, and it needs no MCP server. The MCP mode registers a Context7 server at https://mcp.context7.com/mcp so the agent can call documentation tools natively. The ctx7 setup command authenticates with OAuth, generates an API key and installs the right skill for Cursor, Claude Code or OpenCode. The ctx7 CLI requires Node.js 22.13 or newer. A free API key is recommended for higher rate limits. In a prompt you can name a library by its Context7 ID to skip the matching step, or mention a version to get that version's docs.…
Highlights
- Version-specific docs and code examples in the prompt
- CLI and skills mode with no MCP server needed
- MCP server mode for native documentation tool calls
- Targets Cursor, Claude Code and OpenCode
- Library ID and version syntax in prompts
Ratings & Reviews
No ratings yet
Be the first to rate Context 7.
People also visit

Get-Concord-AI/concord-mcp
Communication and shared work state across coding agent harnesses: live
Context 7 FAQ
What is Context7?
A tool that pulls current documentation and code examples for libraries into an AI coding agent's context, so it stops guessing at old or invented APIs.
Do I need an account or API key?
A key is recommended, not required. Get a free API key at context7.com/dashboard for higher rate limits, or let the setup command generate one through OAuth.
What is the difference between CLI and MCP mode?
CLI mode installs a skill that makes the agent run ctx7 commands and needs no MCP server. MCP mode registers a Context7 server so the agent can call documentation tools directly.
How do I install it?
Run npx ctx7 setup. Add --cursor, --claude or --opencode to target one agent. The CLI needs Node.js 22.13 or newer.
How do I target a library or version?
Add the library's Context7 ID to your prompt with a slash to skip the library-matching step, or mention the version you need so Context7 matches it.
How do I remove it?
Run npx ctx7 remove. If you installed the CLI globally with npm install -g ctx7, uninstall that package separately with npm uninstall -g ctx7.
What are the best Context 7 alternatives?
Popular alternatives to Context 7 include context7-cli, upstash/context7 and context7-mcp. See all Context 7 alternatives

















