Context7
Plugin by upstash · updated · ★ 64k
Context7 is an MCP server that pulls version-specific documentation and code examples from source repositories into an AI coding agent's context. It is for developers who want current library docs instead of outdated training data. Context7 is published by upstash on GitHub.
Install Context7
Built from the published package, never by AI/plugin marketplace add Pioneer-Management-Consulting/da-plugins
/plugin install context7@da-pluginsType 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.
Last commit 2 days ago
MIT: permissive, fine for commercial use
Clear description, 63,501 stars, original repository
No risky patterns in the files we checked
About Context7
Context7 gives a coding agent up-to-date, version-specific documentation and code examples taken from source repositories. The source says it targets outdated answers, hallucinated APIs and generic results for old package versions. It works in two modes. In CLI + Skills mode, it installs a skill that guides the agent to fetch docs with the ctx7 CLI. In MCP mode, it registers a Context7 MCP server so the agent can call documentation tools directly. Users can add a library ID to a prompt to skip library matching, or mention a version to get matching docs. The server is published as @upstash/context7-mcp, and the repository hosts only the MCP server's source code. The project is aimed at developers who use AI coding assistants such as Cursor and Claude Code.
Written from the project's README and checked against it.
What Context7 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 IDs.
- ctx7 docsRetrieves documentation for a library ID with a query from the CLI.
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
Weekly newsletter
Like Context7? Get the best new plugins every week
The best new tools, security warnings before you install something risky, and one practical tip. Free, three minute read.
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.
- Configure a Cloudflare Worker to cache JSON responses. use context7
Good to know
- Higher rate limits require a free API key.
- Library documentation is community-contributed, and accuracy, completeness and security are not guaranteed.
- The API backend, parsing engine and crawling engine are private and not in this repository.
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 →Context7 is a Claude Code plugin that connects to Context7's hosted MCP server. It pulls version-specific documentation and code examples from source repositories into the assistant's context. It is aimed at developers who want up-to-date library docs while they work.
Solve competition math (IMO, Putnam, USAMO) with adversarial verification that catches what self-verification misses. Fresh-context verifiers attack proofs with specific failure patterns. Calibrated abstention over bluffing.
Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Persistent cross-session memory: hooks, MCP tools, recall/handoff skills
A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI, and injects relevant context back into future sessions.
Persistent memory system for Claude Code. Captures what your agent does during a session, compresses it, and injects relevant context back into future sessions.
Context7: common questions
Does Context7 require an API key?
The source recommends a free API key for higher rate limits. It does not say a key is strictly required.
Can I use Context7 without MCP?
Yes. The CLI + Skills mode installs a skill that guides the agent to fetch docs with ctx7 CLI commands, with no MCP required.
How do I target a specific library in a prompt?
Add its Context7 ID with a slash syntax, such as /supabase/supabase, so Context7 skips library matching and retrieves its docs directly.
How do I install Context7?
Inside Claude Code, add the marketplace with /plugin marketplace add Pioneer-Management-Consulting/da-plugins, 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: Context7, Math olympiad, Context7, Agentmemory.
