Context7 Docs
Give coding assistants current, version-specific library docs and code examples.
- Source repo
- upstash/context7
- Stars
- ★ 66k
- Last updated
- today mcpb-v4.9.4
- FARS reviewed
- Nov 08, 2026 +28 new
- License
- MIT
- Primary language
- TypeScript
- FA score
- 59/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free tier plus a paid hosted plan
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer using a coding assistant such as Cursor wants documentation for the relevant Next.js version before generating proxy code.
- Not a fit if
- Teams that require every component to be self-hostable
- Teams that need guaranteed documentation accuracy or security
- Website
- context7.com ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-04latest release mcpb-v4.9.4 (2026-12-04)+46.9 ★/day over 7 days
- Source review
- 59/100 · Major gaps
What does this agent do, and when should you use it?
Context7 is Upstash’s documentation retrieval platform for coding assistants, supplying current docs and examples from their sources. It offers two modes: the ctx7 CLI with a guiding skill, or an MCP server whose tools can be called by an MCP client. The CLI searches for libraries and retrieves their docs; the MCP tools are resolve-library-id and query-docs. Users can specify a Context7 library ID or version in a prompt to target the documentation they need. The repository contains the MCP server source and lists packages for a TypeScript SDK, Vercel AI SDK tools, and a pi.dev extension; the API backend, parsing engine, and crawling engine are private components.
In CLI mode, ctx7 library <name> <query> searches by library name and returns matching libraries and IDs, while ctx7 docs <libraryId> <query> retrieves docs by Context7-compatible library ID. In MCP mode, resolve-library-id finds an ID using libraryName and query, and query-docs retrieves documentation using libraryId and query; its optional language parameter ranks code examples for a language first. Retrieved documentation and examples are supplied to the coding assistant’s context. A prompt can include a library ID or version to target the lookup.
- A developer using a coding assistant such as Cursor wants documentation for the relevant Next.js version before generating proxy code.
- An engineer configuring Cloudflare Worker caching needs examples for caching JSON responses.
- A team building Supabase sign-up wants to retrieve the email and password registration API docs.
- A Node.js developer wants to search for a Context7 library ID and retrieve its docs from the terminal.
- A team with an MCP client wants its assistant to call library resolution and documentation retrieval tools natively.
How do you install or deploy this agent?
The CLI quickstart requires Node.js 22.13 or newer. Run setup to authenticate via OAuth and generate an API key, then choose CLI + Skills or MCP mode; flags can target a specific coding assistant. A free API key is recommended for higher rate limits. For manual MCP setup, configure the client with the Context7 server URL and pass a Bearer API key.
How do you use this agent?
After setup, search for a library and retrieve documentation with the CLI:
ctx7 library next.js "proxy configuration"
ctx7 docs /vercel/next.js "proxy configuration"Add use context7 to a prompt, or provide an exact library ID and version to target the docs. For MCP, configure the client with the server URL and Bearer key; the README does not specify a universal client configuration file format.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Both CLI and MCP paths retrieve current library docs and code examples.
- Library IDs and versions can be specified to reduce ambiguity in library matching.
- MCP queries accept a language parameter to rank matching code examples first.
- The project lists integration packages for the CLI, MCP server, TypeScript SDK, and Vercel AI SDK tools.
- The CLI requires Node.js 22.13 or newer.
- Retrieval depends on the Context7 service; manual MCP setup needs network access and an API key, while a free key is only documented as improving rate limits.
- The API backend, parsing engine, and crawling engine are private, so the full platform cannot be deployed from this repository alone.
- The project does not guarantee the accuracy, completeness, or security of community-contributed documentation.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Context7 Docs This agent | 59 · Major gaps | CLIFreemium | ★ 66k | today | TypeScript | — |
| Superset | 66 · Some gaps | Desktop appFreemium | ★ 17k | today | TypeScript | Codex · Claude Code |
| Stock SDK | 61 · Some gaps | Library / SDKFree | ★ 2k | 6d ago | TypeScript | ChatGPT · Codex · Claude Code |
| Unbrowse Website API Client | 52 · Major gaps | Hosted serviceFreemium | ★ 960 | 1d ago | Rust | ChatGPT · Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The product centers on documentation retrieval, and the CLI and MCP configuration show a bounded capability. The privacy document lists queries, API keys, client information, and an IP assertion as data sent, and advises removing sensitive content, so data flows are partly visible and basic sensitive-data guidance exists. Deductions: queries are still formulated by the assistant and privacy assurances are primarily documentary; the sample provides little dependency-security evidence; setup and removal commands are mentioned, but confirmation and recovery details for all external effects are not shown.
The documentation, CLI examples, and MCP tool descriptions broadly support the documentation-retrieval purpose and provide some error semantics. Deductions: the README presents library/docs commands while skills also describe a search flow, and setup authentication requirements differ across sources; the backend, parsing, and crawling components are private, so availability and complete failure behavior cannot be established from this sample.
Materials target developers using coding agents, cover multiple clients plus CLI and MCP, and guide lookup by library, version, and topic. Deductions: skill triggers are broad, including mere mentions of frameworks, and some say to always use the tool, which may over-trigger for simple questions; retrieval boundaries are described, but environment-specific constraints are only partly covered.
The repository provides multi-client installation guidance, CLI quick starts, a troubleshooting entry point, a security policy, a license, and examples; supported versions and vulnerability reporting are also described. Deductions: the sample contains no clear changelog, product entry points and skill names are multiple, and version information is distributed; installation is clear but relies on external services and components not shown here.
Resolving a library and retrieving version-relevant documentation can directly add context for code generation and API questions, and examples show usable queries. Deductions: value depends on index coverage, retrieval quality, and upstream services; multi-topic questions may require multiple requests, and there is no quantitative evidence for cost or result quality.
The README, skills, installation guide, and privacy document mutually support descriptions of the workflow and data types, while examples correspond to the CLI/MCP interfaces. Deductions: privacy and service-quality claims are mostly project statements; backend components are not visible, and this sample cannot independently establish data handling or retrieval accuracy.
- The privacy document says full prompts, code, and conversations are not sent, but queries are generated by the assistant; users should still check that queries contain no confidential information.
- The README says the API backend, parsing engine, and crawling engine are private, so this static packet cannot independently verify server-side handling or retrieval quality.
- Skill triggers are broad and may invoke external retrieval for casual framework mentions or simple development questions.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
mcpb-v4.9.4 context7.mcpb 4.9.4
Release notes excerpt
MCP Bundle for [@upstash/[email protected]](https://github.com/upstash/context7/releases/tag/%40upstash%2Fcontext7-mcp%404.9.4)View on GitHub ↗ -
Release notes excerpt
Patch Changes - 67cc4fd: The hosted server sends instructions A/B test exposures as one batch a minute, with each caller and client once a day, instead of one request per initialize. - 7f55f9d: The code tools take a GitHub repository in a new repo parameter, as owner/repo or its URL, and read any public GitHub repository. libraryId still works as an alias. …View on GitHub ↗ -
mcpb-v4.9.3 context7.mcpb 4.9.3
Release notes excerpt
MCP Bundle for [@upstash/[email protected]](https://github.com/upstash/context7/releases/tag/%40upstash%2Fcontext7-mcp%404.9.3)View on GitHub ↗
FAQ
Do I need an API key to use Context7?
What runtime is needed for first-time setup?
Can I run the complete Context7 platform in my own environment?
Are retrieved docs guaranteed to be accurate or safe?
How do I target a particular library or version?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.