Context7
Current Library Docs for AI Coding — What Context7 Is, and How to Use It.
AI assistants can rely on training knowledge while your dependencies move on. Context7 retrieves current library documentation at answer time — down to the exact version when you name one — through an MCP server in your editor, a REST API or SDK on your server, or a browsable catalog. This page lays out the surfaces, version pinning, the privacy boundary and citation checking.
See the difference
Three surfaces, one index — the line between them is who is in the loop.
Who reaches for Context7
- Developers in MCP-capable editors
- Stop the assistant from inventing APIs from stale training data
- The MCP server feeds current docs for the library — and the version — you name into the session as you work.
- Teams pinning dependency versions
- Answer against the version you actually run, not the latest
- Name the release in the query and the index resolves documentation for that version.
- Products needing docs server-side
- Build documentation-aware features without scraping
- The REST API and TypeScript SDK expose the same index programmatically.
How a Context7 lookup works
- 01
Pick the surface
MCP server when a person works interactively in an editor or agent; REST API or SDK when your own software needs the lookup; the web catalog to check coverage first.
- 02
Resolve the exact entity and version
Name collisions are real — Bolt the ride-hailing app and Bolt.new the app builder are different entries. Resolve the library and pin the version before trusting an answer.
- 03
Ask with the docs in context
The retrieved documentation slice rides along with your question, so the answer reflects the current API surface rather than the model's training snapshot.
Sharpen the question first
Draft the spec, the failing case and the exact question with @vustbot, then take it to your docs-aware tooling. Free tier, no card.
Context7, honestly
An index of sources, not an oracle
The entries are documentation sources — repositories, websites, llms.txt files, OpenAPI documents — and several can describe one product. Source trust and entity resolution stay your job.
Privacy is a working rule, not a toggle
Context7 publishes its own data-privacy documentation. Send the question, never secrets or code you cannot share — that rule holds for any third-party retrieval service.
Figures move
Scale, plans and coverage change as the index grows. Verify on Context7's site before you build against an assumed quota.
Frequently asked questions
What is Context7?
A documentation service that feeds current library documentation to AI tools. Without current documentation in context, AI tools can rely on stale training knowledge and suggest APIs that have since changed; Context7 narrows that gap by retrieving the documentation for the library — and, when you name one, the version — you specify, at answer time. It ships as an MCP server for editors and agents, a REST API and a TypeScript SDK for server-side use, and a browsable web catalog. The MCP server is open source; the backend that parses and indexes the documentation is a hosted service run by the vendor.
MCP server, SDK or API — which surface fits?
MCP when a person is in the loop: an MCP-capable editor or agent resolves docs interactively as you work. REST API or the TypeScript SDK when software is in the loop: your own service needs documentation retrieval as a feature. The web catalog is for checking coverage and disambiguating same-named entries before you rely on either.
How does version pinning work, and why does it matter?
Version pinning is explicit: you name the release in the query — say, the exact version from your lockfile — and the index resolves documentation for it; without a named version you get the library's current documentation. This matters because a version mismatch — an assistant describing a different release than the one you run — is a common cause of wrong AI answers about libraries. Pin the version from your lockfile, not from memory, and the answer describes your reality.
Is it free?
A free API key is available from Context7's dashboard, and paid options are listed on its own pricing page. Limits and plan compositions change, so verify there before building anything on an assumed quota — this page deliberately quotes no prices.
What about the privacy of what I send?
A documentation lookup transmits your query to a third-party service — treat it accordingly. Send the question and the library name, never secrets, credentials, proprietary identifiers or code you cannot share. Context7 publishes its own data-privacy documentation; read it before wiring the service into a workflow that handles sensitive material, and keep the working rule regardless of any vendor's policy.
How do I verify what the assistant cites from Context7?
Two habits. First, resolve the entity before the query: same-named entries exist, so confirm in the catalog that the library id you target is the product you mean. Second, spot-check the citation against the official documentation the entry links — retrieval narrows the version gap, but the primary source remains the authority, and a thirty-second check on the one API you are about to build on is cheap insurance.
Ready when you are
Context7 keeps the docs current; the surface depends on who is in the loop.
MCP for interactive editor work, REST or SDK for server-side features, the catalog for coverage checks. Verify plans and coverage on Context7's site.
Official sources: Context7's site and catalog, the open-source repository, and its data-privacy documentation. Capabilities, plans and coverage move — verify there before you build. Context7 catalog · Open-source repository