Context7
Plugin by upstash
Context7 is an MCP server and CLI that gives coding agents up-to-date, version-specific library documentation and code examples. It is for developers who want their AI assistant to stop producing outdated or invented APIs.
Install Context7
Built from the published package, never by AI.
/plugin marketplace add dimagi/dimagi-claude-workflows
/plugin install context7@dimagi-claude-workflowsType 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 current, version-specific documentation and code examples for libraries and passes them into a coding agent's context. It works in two modes. CLI plus Skills installs a skill that guides the agent to fetch docs with ctx7 commands, and MCP registers a Context7 server so the agent can call documentation tools directly. Setup runs with npx ctx7 setup, which signs in with OAuth, generates an API key and installs the chosen skill.
Users can steer lookups by adding a Context7 library ID, such as /supabase/supabase, to a prompt, or by naming a library version. The source describes it as a tool for coding agents and the developers who use them. The MCP server source is in the repository, while the API backend, parsing engine and crawling engine are private. The project is published under the MIT license.
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, ranked by the user's query.
- query-docsRetrieves documentation and code examples for a library ID, with an optional language filter.
- ctx7 libraryCLI command that searches the Context7 index by library name and returns matching IDs.
- ctx7 docsCLI command that retrieves documentation for a library using a Context7-compatible library ID.
What you need
- Node.js 22.13 or newer for the ctx7 CLI
- Free Context7 API key (recommended for higher rate limits)
- OAuth sign-in during npx 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.
- Implement basic auth with Supabase. use library /supabase/supabase for API and docs.
Good to know
- Context7 projects are community-contributed, and accuracy or completeness is not guaranteed.
- An API key is recommended for higher rate limits.
- This repository holds only the MCP server source; the backend components 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 from context7.com/dashboard for higher rate limits. Setup can generate one through OAuth.
How do I get docs for a specific library?
Add its Context7 ID, such as /supabase/supabase, to your prompt so Context7 skips the library-matching step. You can also name a version to get matching docs.
Who maintains the documentation Context7 returns?
The source says projects are developed and maintained by their owners, not by Context7. Users are told to use the Report button for suspicious or harmful content.
How do I install Context7?
Inside Claude Code, add the marketplace with /plugin marketplace add dimagi/dimagi-claude-workflows, 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.
