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

At a glance

How it runs
CLIMCP serverLibrary / SDK
Works with
Universal · cross-platform
Cost
Free tier plus a paid hosted plan
Setup effort
Low · running in minutes
You'll need
Node.js 22.13 or newerShell / CLINetwork accessLocal filesystemMCP Server
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

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.

  1. A developer using a coding assistant such as Cursor wants documentation for the relevant Next.js version before generating proxy code.
  2. An engineer configuring Cloudflare Worker caching needs examples for caching JSON responses.
  3. A team building Supabase sign-up wants to retrieve the email and password registration API docs.
  4. A Node.js developer wants to search for a Context7 library ID and retrieve its docs from the terminal.
  5. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
59/ 100 5-point scale 3.0 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 28 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 17/29
Reliability 6/14
Adaptability 10/18
Convention 11/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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.

Reliability6 / 14 · 2.1/5

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.

Adaptability10 / 18 · 2.8/5

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.

Convention11 / 18 · 3.1/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 078c0c731d19 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/context7.svg)](https://followagents.com/en/agents/context7)
<a href="https://followagents.com/en/agents/context7"><img src="https://followagents.com/badge/context7.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 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 ↗
  2. 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 ↗
  3. 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?
The README recommends a free API key for higher rate limits; it does not state the exact limits without a key.
What runtime is needed for first-time setup?
The CLI setup requires Node.js 22.13 or newer and uses OAuth to generate an API key.
Can I run the complete Context7 platform in my own environment?
This repository hosts the MCP server source, but the API backend, parsing engine, and crawling engine are private.
Are retrieved docs guaranteed to be accurate or safe?
The README says projects are community-contributed and that it cannot guarantee every project's documentation accuracy, completeness, or security.
How do I target a particular library or version?
Include a Context7 library ID or the desired version in the request; the CLI docs command also takes a library ID.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts