Context7
Plugin by upstash
Context7 gives AI coding agents up-to-date, version-specific library documentation and code examples pulled from the source. It is for developers who want their assistant to stop relying on outdated or invented APIs. It runs as a CLI skill set or an MCP server.
Install Context7
Built from the published package, never by AI.
/plugin marketplace add jafforgehq/jaffskils
/plugin install context7@jaffskilsType both lines inside Claude Code: the first adds the marketplace, the second installs the plugin.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Context7 pulls up-to-date, version-specific documentation and code examples from the source and passes them to a coding agent. It targets outdated training data, hallucinated APIs and generic answers for old package versions. Users can add "use context7" to a prompt, or give a library ID with slash syntax such as /supabase/supabase, to load the right docs directly.
Context7 works in two modes. CLI + Skills installs a skill that guides the agent to fetch docs with ctx7 CLI commands, without MCP. MCP mode registers a Context7 server that exposes the resolve-library-id and query-docs tools. Setup runs through npx ctx7 setup, which authenticates via OAuth and generates an API key. It is aimed at developers who use AI coding assistants and need current library and API documentation.
Written from the project's README and checked against it.
What it can do
- resolve-library-idResolves a general library name into a Context7-compatible library ID.
- query-docsRetrieves documentation for a library using a Context7-compatible library ID.
- ctx7 librarySearches the Context7 index by library name and returns matching libraries with IDs.
- ctx7 docsRetrieves documentation for a library using a Context7-compatible library ID.
What you need
- Node.js 22.13 or newer for the ctx7 CLI
- Free API key for higher rate limits (recommended)
- OAuth login during ctx7 setup
Try asking
- How do I set up a Next.js 16 proxy? use context7
- Show me the Supabase auth API for email/password sign-up.
- Set up a Cloudflare Worker to cache JSON API responses. use context7
Good to know
- An API key is recommended for higher rate limits.
- Projects are community-contributed, so accuracy and security are not guaranteed.
- Only the MCP server source is in this repository; the API, parsing and crawling backends are private.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Context7
All alternatives →Matt Pocock's agent skills for real engineering work, including grilling sessions, specs and tickets, TDD, bug diagnosis and code review. Made for developers who want control over their agent's process rather than a fixed framework.
Modern Web Guidance is a set of skills that gives coding agents current web platform best practices and browser compatibility data. It steers agents away from legacy patterns and toward modern browser APIs.
Superpowers is a software development methodology for coding agents, built from composable skills. It covers brainstorming, planning, subagent-driven development, test-driven development and code review. It is aimed at developers who use Claude Code.
Keeps coding agents current with modern web platform APIs, best practices, and browser compatibility data. Steers agents away from legacy patterns and heavy polyfills toward native web features. Built for developers who use AI coding agents.
Guides modernization of legacy codebases, starting with /modernize. It covers an assessment, a plan you approve, then an upgrade, rewrite or rebuild checked against the old behavior.
Code simplifier is a Claude Code agent that refines recently modified code for clarity, consistency, and maintainability. It suits developers who want cleaner code that keeps its existing functionality.
Compare with Mattpocock skills, Modern web guidance or Superpowers
Context7: common questions
Does Context7 need an API key?
The source recommends a free API key for higher rate limits. It can be obtained at context7.com/dashboard.
Can Context7 work without MCP?
Yes. The CLI + Skills mode installs a skill that uses ctx7 CLI commands and requires no MCP server.
Are the documentation results always accurate?
The source says Context7 cannot guarantee the accuracy, completeness, or security of all library documentation, since projects are community-contributed.
How do I install Context7?
Inside Claude Code, add the marketplace with /plugin marketplace add jafforgehq/jaffskils, then install the plugin with the second command shown above.
Is Context7 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Context7 safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Context7?
Similar plugins: Mattpocock skills, Modern web guidance, Superpowers, Modern web guidance.
