
Description
Context7 is a platform from Upstash that supplies up-to-date, version-specific documentation and code examples to LLMs and AI coding editors. It addresses a common failure: a model trained on older material can produce outdated examples or invent APIs that do not exist. Context7 pulls the current documentation for the libraries you name and places it into the prompt. It works in two modes. CLI and Skills installs a skill that guides your agent to fetch docs with the ctx7 command-line tool, without needing MCP. MCP registers a Context7 server so the agent can call documentation tools natively. Setup uses a single command that signs you in with OAuth, generates an API key and installs the skill, and you can target Cursor, Claude or OpenCode with flags. The command-line tool needs Node.js 22.13 or newer. The README suggests a free API key from the Context7 dashboard for higher rate limits. For manual setup with another MCP client, use the server URL and pass the key in an Authorization bearer header. The README also suggests tips: include a library's Context7 ID in a prompt to skip matching, mention a version to get that version's docs, and add a rule in your editor so library questions trigger lookups. The project's repository is public on GitHub.…
Highlights
- Current, version-specific docs and examples placed into the prompt
- CLI and Skills mode, or an MCP server mode
- One-command setup with OAuth and an API key
- Works with Cursor, Claude Code and OpenCode
Ratings & Reviews
No ratings yet
Be the first to rate upstash/context7.
People also visit
upstash/context7 FAQ
What problem does Context7 solve?
Outdated examples and invented APIs, by fetching current documentation for the libraries you use.
What are the two modes?
CLI and Skills, which uses the ctx7 command-line tool, and MCP, which registers a Context7 server with the agent.
Does it need an API key?
The README recommends a free key for higher rate limits. The setup command generates one.
What does it need to run?
Node.js 22.13 or newer for the ctx7 CLI.
What are the best upstash/context7 alternatives?
Popular alternatives to upstash/context7 include Context 7, context7-cli and context7. See all upstash/context7 alternatives


















