Written by @iluxav from the project's code and releases, not by its maintainers. Last updated for @upstash/[email protected] (2026-10-09), so it may lag behind newer releases.
Look up library documentation and code examples for coding tasks through MCP, a command-line tool, or TypeScript integrations.
What you can do with Context7
Retrieve library documentation and code examples in an MCP coding client.
Present at v1.0.21
Good to know
Requires access to the Context7 service; documentation availability depends on the indexed library and version.
Connect coding clients to a locally run documentation server over stdio or HTTP.
Present at v1.0.21
Good to know
Requires Node.js 20.18.1+ and the Context7 service. HTTP requires credentials by default; legacy SSE transport is unavailable and subscriptions provide no change notifications.
Retrieve documentation through an HTTPS proxy.
Present at v1.0.21
Good to know
Requires a reachable proxy and any required CA file configured through Node's environment.
Load Context7 documentation tools through a Gemini CLI extension.
Since v1.0.26
Good to know
Requires Gemini CLI, Node.js and `CONTEXT7_API_KEY`.
Give Vercel AI SDK applications tools for finding libraries and retrieving documentation.
Requires enterprise configuration; Entra ID uses teamspace tenant/audience settings and pre-provisioned user mappings; enterprise-managed authorization requires a compatible client.
Register Context7 documentation access through an OpenCode plugin.
Supply credentials for HTTP `/mcp`, now required by default. Use OAuth access tokens rather than Clerk ID/session JWTs, which return 401. Operators can set `MCP_AUTH_ENFORCEMENT=observe` for anonymous `/mcp` migration.
Action requiredAffects: Anonymous HTTP clients, callers using Clerk ID/session JWTs, and HTTP server operators.
Remove `MCP_MAX_SUBSCRIPTIONS`; HTTP `subscriptions/listen` now acknowledges and completes immediately, with no change notifications. Use valid `observe` or `required` values for authentication enforcement settings.
Action requiredInferredAffects: HTTP deployments configuring subscriptions or authentication enforcement.
Expired OAuth tokens now receive HTTP 401 with an invalid-token challenge. JWT audience mismatches are logged by default; `MCP_OAUTH_AUDIENCE_ENFORCEMENT=required` rejects them, and `MCP_OAUTH_ALLOWED_AUDIENCES` overrides accepted audiences.
SDK requests now time out after 30 seconds; set `timeout: false` or a longer timeout when needed. Narrow array-or-string results when selecting formats at runtime. New options cover cancellation, retries, custom fetch and token providers.
Action requiredAffects: SDK callers relying on unlimited request duration or runtime-selected response formats.
Claude Code plugin requests require authentication in 4.0.5. Version 4.0.7 allows anonymous access only for an empty API-key header; configure working credentials for authenticated access.
Tool descriptions request one concept per documentation query and separate calls for unrelated topics; this guidance also ships in CLI, pi and AI SDK tools.
Behavior changedAffects: Coding agents using documentation lookup.
`ctx7 login` and setup support device authorization for remote hosts; login uses it by default from 0.5.1. Credentials move to XDG config directories with automatic legacy migration.
Behavior changedAffects: CLI users, including SSH, container and CI sessions.
Remove `--device` from `ctx7 login` commands; device login is now the default. Replace the ignored `ctx7 setup --universal` flag with a supported agent target.
Action requiredAffects: CLI scripts using `login --device` or `setup --universal`.
Anonymous sign-in suggestions use a client-rendered elicitation dialog instead of tool-result text, only when the client advertises elicitation support.
Behavior changedAffects: Anonymous users of MCP clients supporting elicitation.
For HTTP deployments, configure `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN`. Clients must initialize and send the returned `mcp-session-id` on subsequent calls.
Action requiredInferredAffects: Self-hosted HTTP deployments and custom HTTP MCP clients.
Remove `researchMode` from `query-docs` calls: introduced in 2.2.0, hidden from the schema in 2.2.2, and removed entirely in 2.2.4. Use ordinary `query-docs` retrieval.
Action requiredAffects: Callers that enabled the short-lived research option.
Replace `get-library-docs` with `query-docs` using `libraryId` and `query`; pass `query` with `libraryName` to `resolve-library-id`. Remove `mode`, `topic`, `page` and `limit`.
Action requiredAffects: Custom tool callers upgrading from MCP 1.x.
Replace `getDocs()` with `getContext(query, libraryId, options)` and use `searchLibrary(query, libraryName)`. Remove pagination, mode, topic and limit options; responses now default to JSON, so request `type: txt` to keep text.
Action requiredAffects: Applications upgrading the TypeScript SDK from 0.1.x.
Rename `resolveLibrary` to `resolveLibraryId` and `getLibraryDocs` to `queryDocs`, supply `query`, and remove `defaultMaxResults`. Upgrade the `ai` peer dependency to version 6 or later.
Action requiredAffects: Applications upgrading AI SDK tools from 0.1.0.
Prioritize documentation examples in your programming language.
Details
MCP `query-docs` adds `language`, and CLI `docs` adds `--language`. HTTP credentials are required by default, OAuth tokens are validated more strictly, and the CLI declares Node.js 22.13+.
Added: Rank documentation examples in the programming lang…Action required / inferredAction required: Sign in to a Context7 MCP connection using OAuth.Action required / inferred: Connect coding clients to a locally run documentati…Now works: Retrieve library documentation and code examples in…Now works: Configure Context7 documentation access and rules f…Now works: Remove Context7-generated agent configuration while…Now works: Search libraries and retrieve documentation from a…Limit lifted: Register Context7 documentation access through an O…Behavior changed
Configure an on-premise Context7 MCP endpoint from the CLI.
Details
Setup accepts `--base-url` with personal API-key entry or anonymous-auth discovery. The SDK adds HTTP controls and token providers, with a new default request timeout.
Added: Connect a coding agent to an on-premise Context7 MC…Now works: Configure Context7 documentation access and rules f…Action required: Search libraries and retrieve documentation from a…Action required: Sign in to a Context7 MCP connection using OAuth.Behavior changed: Connect coding clients to a locally run documentati…Added / inferred: Authenticate MCP requests with a Vercel Marketplace…
The OpenCode plugin registers MCP and its documentation skill. HTTP authentication recognizes the advertised API-key header and publishes the correct OAuth issuer.
Added: Register Context7 documentation access through an O…Now works: Sign in to a Context7 MCP connection using OAuth.Now works: Retrieve library documentation and code examples in…Now works: Search for libraries and retrieve their documentati…Now works: Configure Context7 documentation access and rules f…
Use HTTP documentation calls without accumulating idle response streams.
Details
MCP HTTP serving becomes stateless and uses JSON responses unless an exchange needs SSE. Upstream calls time out after 60 seconds, and CLI documentation commands refresh expired login credentials.
Retrieve documentation through CONNECT proxies on Node.js 26 and later.
Details
MCP restores proxy and custom-CA support on newer Node.js and raises its minimum runtime. CLI setup gains a fallback for skill downloads and writes standard bearer headers.
Now works: Retrieve documentation through an HTTPS proxy.Action required: Connect coding clients to a locally run documentati…Now works: Configure Context7 documentation access and rules f…
Get documentation queries scoped to individual concepts.
Details
Tool descriptions across MCP, CLI, pi and AI SDK tools now request separate queries for distinct concepts, except when asking how the concepts interact.
MCP 3.2.3, CLI 0.5.4, pi 0.1.1 and AI SDK tools 0.2.4.
Behavior changed: Retrieve library documentation and code examples in…
Sign in from remote terminals using a device code.
Details
CLI login adopts device authorization; enterprise MCP supports Entra ID and enterprise-managed authorization. Skills commands are deprecated, and CLI files move to XDG directories.
CLI 0.4.5–0.5.3, MCP 3.1.0–3.2.2, and SDK 0.3.1.
Behavior changed: Sign in, inspect the active identity and sign out t…Action requiredNow works: Configure Context7 documentation access and rules f…Deprecated: Find, install, list and remove skills for coding ag…Deprecated / inferred: Generate a coding-agent skill from a description an…Now works: Search for libraries and retrieve their documentati…Added: Authenticate MCP documentation access through an en…Now works: Connect coding clients to a locally run documentati…Behavior changed: Retrieve library documentation and code examples in…Now works: Search libraries and retrieve documentation from a…
Retrieve documentation inside the pi coding agent.
Details
The pi extension provides documentation tools and `/c7-docs`. CLI setup gains a stdio mode, while HTTP server deployments now need Redis credentials for sessions.
pi extension 0.1.0; MCP 2.3.0–3.0.0; CLI 0.4.3–0.4.4.
Added: Retrieve library documentation within the pi coding…Now works: Configure Context7 documentation access and rules f…Behavior changed: Find, install, list and remove skills for coding ag…Action required / inferred: Connect coding clients to a locally run documentati…Behavior changed: Retrieve library documentation and code examples in…
Keep using MCP when a client supplies common alternative argument names.
Details
MCP accepts specific aliases for query and library arguments and exits when its stdio parent closes. CLI cleanup skips malformed agent configs instead of crashing.
MCP 2.2.5 and CLI 0.4.2.
Now works: Retrieve library documentation and code examples in…Now works: Connect coding clients to a locally run documentati…Now works: Remove Context7-generated agent configuration while…Now works: Configure Context7 documentation access and rules f…
Remove generated Context7 setup without deleting unrelated MCP entries.
Details
The CLI adds setup cleanup and upgrade commands. Research mode appears in MCP 2.2.0 and CLI 0.4.0, then is withdrawn by MCP 2.2.4 and CLI 0.4.1.
CLI 0.4.0–0.4.1; MCP 2.2.0–2.2.4.
Added: Remove Context7-generated agent configuration while…Added: Check for CLI updates and get package-manager-aware…Action required: Retrieve library documentation and code examples in…Action required: Search for libraries and retrieve their documentati…Now works: Connect coding clients to a locally run documentati…
Install documentation skills on Windows without path-validation failures.
Details
CLI setup adds Gemini CLI and GitHub authentication for downloads; skill installs gain noninteractive options. MCP preserves default certificate authorities when extra ones are configured.
CLI 0.3.10–0.3.13 and MCP 2.1.7–2.1.8.
Now works: Configure Context7 documentation access and rules f…Behavior changed: Find, install, list and remove skills for coding ag…Now works: Retrieve documentation through an HTTPS proxy.Behavior changed: Connect coding clients to a locally run documentati…
Reconfigure existing coding-agent connections through setup.
Details
Setup can overwrite existing MCP entries, recognizes OpenCode JSON and JSONC variants, and installs rules alongside skills, including Codex rules.
CLI 0.3.8–0.3.9; MCP 2.1.6 is included.
Now works: Configure Context7 documentation access and rules f…Behavior changed: Find, install, list and remove skills for coding ag…Now works: Retrieve documentation through an HTTPS proxy.
Look up library documentation directly from a terminal.
Details
The CLI adds `library` and `docs` commands and a CLI-plus-skills setup mode. MCP search results include sources and filtering warnings.
CLI 0.3.2–0.3.6 and MCP 2.1.3–2.1.4.
Added: Search for libraries and retrieve their documentati…Behavior changed: Configure Context7 documentation access and rules f…Now works: Sign in, inspect the active identity and sign out t…Behavior changed: Retrieve library documentation and code examples in…Behavior changed: Connect coding clients to a locally run documentati…Behavior changed: Find, install, list and remove skills for coding ag…
Find and install coding-agent skills from the terminal.
Details
The CLI can search, install, list and generate skills, authenticate with OAuth, and suggest skills from project dependencies. Usage telemetry is enabled with an opt-out.
Install `ctx7` 0.2.0–0.2.3; skill generation requires authentication and has weekly quotas.
Added: Find, install, list and remove skills for coding ag…Added: Generate a coding-agent skill from a description an…Added: Sign in, inspect the active identity and sign out t…Behavior changed
MCP switches to query-based retrieval and adds OAuth discovery at `/mcp/oauth`. TypeScript and AI SDK callers must update method names and arguments.
MCP 2.0.0–2.1.0; SDK 0.2.0–0.3.0 and AI SDK tools through 0.2.1.
Action required: Retrieve library documentation and code examples in…Action required: Search libraries and retrieve documentation from a…Action required: Give Vercel AI SDK applications tools for finding l…Added: Sign in to a Context7 MCP connection using OAuth.
Add documentation lookup to a TypeScript application.
Details
The repository provides a TypeScript client and Vercel AI SDK tools. The MCP search tool also regains API-key forwarding over stdio.
MCP 1.0.33; TypeScript SDK documented as work in progress; AI SDK tools 0.1.0 require an API key and AI SDK 5+.
Added: Search libraries and retrieve documentation from a…Added: Give Vercel AI SDK applications tools for finding l…Now works: Retrieve library documentation and code examples in…
Retrieve additional pages of library documentation.
Details
Documentation fetching replaces the token budget with a page number. Library results expose source reputation and benchmark scores, and the legacy SSE endpoint is removed.
MCP v1.0.27–v1.0.29; use HTTP `/mcp` or stdio.
Action required / inferred: Retrieve library documentation and code examples in…Action required / inferred: Connect coding clients to a locally run documentati…
Bring version-specific library documentation into an MCP coding client.
Details
The existing MCP tools resolve library names and retrieve documentation by library ID, with optional topic and token controls. Clients can connect over HTTP or start a local stdio server.
Context7 MCP v1.0.21; local execution needs Node.js 18+ and an MCP client. API keys are optional for higher limits and private repositories.
Added: Retrieve library documentation and code examples in…Added: Connect coding clients to a locally run documentati…Added: Retrieve documentation through an HTTPS proxy.