Written by @iluxav from the project's code and releases, not by its maintainers. Last updated for mcpb-v4.7.0 (2026-11-12), so it may lag behind newer releases.
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.
Requires enterprise configuration; Entra ID uses teamspace tenant/audience settings and pre-provisioned user mappings; enterprise-managed authorization requires a compatible client.
Requires Admin MCP and OAuth or an API key scoped to one teamspace. Writes require Write access; billing, SSO, teamspace creation/deletion and whole Docs7-site deletion remain in the dashboard.
Search and read library source code at a selected version through the CLI or MCP.
ExperimentalSince mcpb-v4.7.0
Good to know
Requires available library source and Context7 access. Initial queries may wait for indexing. The MCP tool requires research-preview opt-in; CLI support starts at 0.11.0.
Retrieve a paginated guide to changes between two library versions.
ExperimentalSince mcpb-v4.7.0
Good to know
Research-preview MCP opt-in and Context7 access required. Guides are served only after preparation completes; pending or unavailable guides return retry timing.
SDK `searchLibrary` returns an empty array or a no-libraries text result instead of throwing a 404 `Context7Error` for no matches. Text results rename the trust-score label to Source Reputation.
Behavior changedAffects: SDK callers handling no-match searches or parsing text search results.
`resolveLibraryId` returns a no-libraries message for no matches; `queryDocs` returns a no-documentation message for unknown IDs. Other errors no longer append advice to check the API key.
Behavior changedAffects: AI SDK applications consuming tool result text.
Replace `/facebook/react` with `/reactjs/react.dev` in React documentation commands; the old ID redirects to another library and returns no documentation.
Action requiredAffects: Users or scripts copying the previous React library ID.
For Vercel OIDC, pass your actual `store_…` or `ir_…` resource ID to `getIntegrationToken`, not `context7`. Use @vercel/integrations 0.1.2+ and a token-provider function for refresh.
Action requiredInferredAffects: Applications using the earlier SDK README's Vercel token-provider example.
The documented API-key permission is now Write access: ordinary keys can read, while mutations require Write access. Some personal data also requires Write access.
CLI 0.7.0 clears rejected refresh credentials and offers sign-in again in terminals. Piped output and `--json` receive a stderr notice and continue anonymously; transient failures retain credentials.
Behavior changedAffects: CLI users with stored OAuth sessions that can no longer be refreshed.
MCP 4.4.0 adds `MCP_OAUTH_AUDIENCE_ENFORCEMENT=foreign`: reject another server's audience with 401 while admitting missing audiences. Allowed-host audience query strings are ignored; `observe` remains the default.
Behavior changedAffects: HTTP server operators choosing audience enforcement and OAuth clients using configured URLs with query strings.
Use standard Microsoft RS256 access tokens with `tid` matching the issuer and configured tenant. Custom signing keys, including claims-mapping or `?appid=` key sets, are unsupported by the new shared-key verification.
Action requiredInferredAffects: Microsoft Entra deployments using custom signing keys or tokens with inconsistent tenant claims.
For MCP 4.4.4, supply an integer `--port` from 0 to 65535 only with HTTP. Remove `--port=<n>` from stdio commands; replace HTTP `--api-key=<key>` with header-based authentication.
Action requiredAffects: Local MCP launch commands using invalid ports or transport-incompatible equals-form arguments.
MCP 4.4.3 advertises `ttlMs: 3600000` and `cacheScope: public` on tool, prompt, resource and resource-template lists and server discovery, allowing clients to reuse them for one hour.
Behavior changedAffects: MCP clients using protocol 2026-07-28.
Bundled guidance now includes documentation lookup when porting code between libraries, platforms or SQL dialects, and narrows exclusions to work independent of library or platform APIs.
Behavior changedAffects: Coding agents using MCP 4.4.4 or CLI 0.8.1 guidance.
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.
Search and read a library's source code at the version its documentation describes.
Details
`ctx7 search` and `ctx7 code` add cross-library documentation search and source inspection. MCP research preview adds `query-code`, `submit-docs-feedback` and paginated `get-upgrade-guide`; SDK 0.7.0 returns empty search results instead of 404 exceptions.
Also: Search docs across libraries from the CLI; preview paginated upgrade guides and docs feedback; configure Pi and T3 Code; preserve setup files; handle empty SDK searches.
CLI 0.11.1 needs Node.js 22.13+; MCP 4.7.0 needs Node.js 20.18.1+. MCP preview tools require `--research-preview` or `CONTEXT7_RESEARCH_PREVIEW=1` for stdio, or `?research_preview=1` on the HTTP URL.
Improved: Search for libraries and retrieve their documentati…Added: Search and read library source code at a selected v…Added: Retrieve a paginated guide to changes between two l…Added: Send a score and feedback on retrieved library docu…Now works: 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…Added: Set up and remove Context7 MCP, rules and documenta…Added: Configure Context7 for T3 Code's Claude Code and Co…Now works: Check for CLI updates and get package-manager-aware…Behavior changed: Search libraries and retrieve documentation from a…Behavior changed: Give Vercel AI SDK applications tools for finding l…Action required: Search for libraries and retrieve their documentati…Action required / inferred: Search libraries and retrieve documentation from a…Improved / inferred: Manage Context7 teamspaces, libraries, policies, us…Behavior changed / inferred: Manage Context7 teamspaces, libraries, policies, us…Added / inferred: Inspect Context7 usage, libraries and site analytic…
Keep your CLI session signed in when several commands refresh it at once.
Details
CLI 0.8.2 coordinates token refresh through a credential lock. SDK 0.6.0 exposes snippet `rank`, and this tagged snapshot adds documented account-management tools.
Also: SDK search results expose a shared snippet ranking; the repository adds an Admin MCP server.
Install ctx7 0.8.2 (Node.js 22.13+) or @upstash/context7-sdk 0.6.0. Admin MCP uses a separate hosted endpoint and Context7 credentials.
Now works: Sign in, inspect the active identity and sign out t…Improved: Search relevant documentation without first resolvi…Added / inferred: Manage Context7 teamspaces, libraries, policies, us…
Sign in again when a saved CLI session expires and continue the documentation command.
Details
CLI 0.7.0 adds session-expiry recovery; 0.8.0 removes deprecated skill management and generation; 0.8.1 preserves OpenCode JSONC and replaces inline API-key arguments. MCP 4.4.0–4.4.4 add optional foreign-audience rejection, correct error flags and HTTP request completion, advertise list-cache hints, and reject invalid ports and incompatible transport arguments.
Also: Skill Hub commands are removed; setup preserves configuration; HTTP cancellation and shutdown complete requests; MCP ports and transport flags are validated.
Install `[email protected]` with Node.js 22.13.0+ or `@upstash/[email protected]` with Node.js 20.18.1+. The matching MCP bundle is tagged `mcpb-v4.4.4`.
Behavior changed: Sign in, inspect the active identity and sign out t…Removed: Find, install, list and remove skills for coding ag…Removed: Generate a coding-agent skill from a description an…Now works: Configure Context7 documentation access and rules f…Now works: Remove Context7-generated agent configuration while…Added / inferred: Install documentation tools, rules, skills and a re…Behavior changed: Sign in to a Context7 MCP connection using OAuth.Action required / inferred: Authenticate MCP documentation access through an en…Now works: Connect coding clients to a locally run documentati…Action required: Connect coding clients to a locally run documentati…Now works: Retrieve library documentation and code examples in…Behavior changedBehavior changed
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.