In short.
The Context7 CLI skill is an instruction package for developers and AI coding assistants that need library documentation, but choosing the right library and indexed version still requires care. It documents broad search, explicit library lookup, documentation retrieval, JSON output and agent configuration. Setup can write configuration files, rules and additional skills. Pricing, actual documentation coverage, retrieval accuracy and runtime compatibility are unknown; no commands were executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises the complete skills/context7-cli directory at revision c5e26f6919055d29b8d3ead20500eb06e8036295: SKILL.md, references/docs.md and references/setup.md. The repository LICENSE is included as the related notice. Linked pages outside this directory, other repository folders, CLI and server implementations, and documentation returned by the service are excluded. No commands were executed; installation, authentication, configuration changes, retrieval quality and runtime compatibility remain untested.
The overview
Identity
This resource is the context7-cli instruction skill in Upstash's Context7 repository [https://github.com/upstash/context7/tree/master/skills/context7-cli]. It contains SKILL.md and two bundled references covering documentation commands and setup.
The skill describes how an assistant should use the separate ctx7 CLI. Its activation description covers Context7 requests, library-documentation questions and Context7 configuration for coding agents. Setup can install additional skills named find-docs or context7-mcp, depending on the chosen mode.
Assessment
The skill offers a concrete route from a library question to documentation an assistant can use while coding. Useful documented controls include explicit library identifiers, available versions, language preferences and structured JSON output.
Its practical value depends on whether Context7 indexes the relevant documentation and returns an appropriate match. The supplied instructions establish the intended workflow, but do not establish retrieval accuracy, compatibility or improved coding outcomes.
Users
Developers and coding-assistant users can use it to look up API details, find examples and investigate library behavior. Beginners get a guided lookup sequence; experienced developers get version targeting, JSON output and commands that can feed other tools.
The setup reference lists MCP targets for Claude Code, Cursor, OpenCode and Pi. CLI + Skills targets are Claude Code, Cursor, Antigravity and Pi. Support for other assistants is not established by these files.
Capabilities
The documented commands cover searching across libraries, resolving a library name to an identifier and retrieving documentation for that identifier. Results can include code examples and explanatory text. Library lookup exposes snippet counts, reputation labels, quality scores and available versions.
Search can be narrowed to as many as four libraries, a library version or a preferred programming language. The --json option supports structured output, and output sent through pipes is documented as omitting terminal spinners and colors. Setup offers native MCP tool access or CLI instructions installed as a skill.
Using it
Requirements
The installation examples assume npm or npx is available. They use npm install -g ctx7@latest or npx ctx7@latest followed by a command. Minimum Node.js, operating-system and agent versions are unspecified. Offline documentation access is not described.
Documentation commands are described as working without authentication, with higher rate limits after authentication. Setup requires authentication through browser login, an existing API key or the MCP-only --oauth option. CONTEXT7_API_KEY is also documented for CLI authentication.
Mechanism
The explicit lookup path starts with ctx7 library <name> <query>. The query is required and affects ranking. The assistant chooses a returned identifier, then calls ctx7 docs <libraryId> <query>. A supplied valid identifier can go directly to the documentation command. Identifiers begin with / and may include a version.
The skill guides selection using name similarity, task relevance, documentation coverage, reputation and quality scores. Alternatively, ctx7 search lets Context7 choose libraries in one step. The scoring methodology and ranking implementation are not established by the supplied files.
Setup
After making ctx7 available, ctx7 setup prompts for MCP or CLI + Skills mode and an installation target. The --mcp and --cli flags choose the mode directly. The --project flag targets the current project instead of a global configuration.
MCP setup writes an agent configuration entry, a Context7 rule and a context7-mcp skill. CLI + Skills setup writes a find-docs skill and a Context7 rule. These rules direct the assistant to use Context7 for library documentation. Without --api-key or --oauth, setup opens a browser for authentication; --oauth applies only to MCP mode.
The documented configuration locations include .mcp.json for Claude, .cursor/mcp.json for Cursor and .opencode.json for OpenCode. Existing-configuration merge behavior, rollback and conflict handling are not described.
Example
For a React cleanup question, an illustrative first command is ctx7 library react "How to clean up useEffect with async operations". If the lookup returns /reactjs/react.dev as the appropriate match, the next command is ctx7 docs /reactjs/react.dev "How to clean up useEffect with async operations".
The expected output format includes code examples and explanatory snippets; no actual output was retrieved here. For a project tied to a specific release, inspect the lookup's available versions before choosing a version-specific identifier.
Assessment & evidence
Limitations
Exact coverage for a particular library, release or language is unknown. Version targeting depends on the versions returned by lookup. The reference allows choosing the closest available version, so an exact match to a project's requested release is not assured.
The skill limits library lookups and documentation queries to three calls each per question. Its coverage indicators and scores do not establish that examples are correct or complete. The instructions also say to exclude credentials, personal data and proprietary code from queries; retention and data-processing terms are unknown.
No CLI or server implementation is included in this scope. Installation behavior, authentication, configuration writes, latency and returned documentation were not tested.
Reasoning
The documented workflow suggests a good fit for developers who repeatedly need task-specific library references inside a coding-assistant session. Explicit identifiers make the chosen source visible, while version and language controls help express what the project needs.
This is a fit assessment based on the instructions. When exact release behavior matters, confirming the returned library and version remains necessary. No supplied results show that the skill improves correctness or saves time.
Alternatives
Within Context7, ctx7 search offers a single-step lookup where the service chooses libraries. The library-then-docs sequence gives the user or assistant an explicit source choice. MCP exposes tools directly to an agent, while CLI + Skills guides the agent through command-line use.
Reading the library's own release-specific documentation directly is another approach when checking a returned example or an unavailable version. No comparative evidence establishes differences in accuracy, speed or cost between these approaches.
Evidence
The source snapshot is pinned to Git revision c5e26f6919055d29b8d3ead20500eb06e8036295. It includes SKILL.md, references/docs.md, references/setup.md and the repository LICENSE. The pinned main instruction file is available at [https://raw.githubusercontent.com/upstash/context7/c5e26f6919055d29b8d3ead20500eb06e8036295/skills/context7-cli/SKILL.md].
These files support descriptions of intended commands, options, authentication and configuration changes. They provide no execution receipts, retrieved documentation samples, independent quality measurements or implementation-level verification.
Access & freshness
Costs
Prices, free allowances, paid plans, numerical rate limits and billing terms are unknown from these files. The documentation states that documentation commands work without authentication and that authentication provides higher rate limits.
Those access statements do not establish unlimited use or a price. The MIT licence governs reuse of the supplied software and documentation; it does not establish the cost of hosted Context7 access or an associated coding assistant.
Rights
The repository LICENSE names Upstash, Inc., with a 2021 copyright notice, and grants MIT permissions to use, copy, modify, distribute, sublicense and sell the software and associated documentation. Copies or substantial portions must retain the copyright and permission notice. The licence also disclaims warranties and liability.
This supports redistribution of the supplied skill files with the accompanying notice. Rights in third-party documentation or examples returned by Context7, and the hosted service's terms, are not established here. Licence source: [https://raw.githubusercontent.com/upstash/context7/c5e26f6919055d29b8d3ead20500eb06e8036295/LICENSE].
Freshness
The supplied source snapshot was captured on 12 November 2026 at 18:28:50.711 UTC. A publication date, last-change date and corresponding CLI release number are not established.
The instructions use ctx7@latest, which does not pin an executable version. Following them later may obtain a different CLI release. The promise of current documentation describes intended behavior; indexing dates, update frequency and actual freshness for individual libraries are unknown.
Actions
Before adopting the skill, check whether Context7 returns the library and release your project needs. Use a focused, non-sensitive query, inspect the returned identifier and version, and check consequential examples against the project's requirements.
Choose MCP or CLI + Skills according to the target assistant and preferred interaction. Review the documented configuration writes and decide between project and global installation. Confirm current service pricing, limits and data terms separately, since these files do not establish them.
Treat any installation or lookup as a future validation step. No commands, authentication flows or configuration changes were performed for this report.
