Context7

Current, version-specific library docs served straight to your coding agent

Intermediate API
Screenshot of Context7, Current, version-specific library docs served straight to your coding agent

What is Context7?

Context7 is an AI coding assistant tool. Context7 gives AI coding agents like Claude, Codex and Cursor current, version-specific documentation and code examples for about 179,000 libraries, reducing outdated or invented API suggestions. It is an Upstash project.

Context7 is a documentation service built for AI coding agents. Instead of letting a model answer from whatever it absorbed during training, it supplies the current docs and code examples for a given library, so the suggestions an agent makes match the version a project actually uses. It is an Upstash project, and its index covers roughly 179,000 libraries, from frameworks such as Next.js and React to databases like PostgreSQL and platforms like Stripe, Cloudflare and GitLab. The audience is developers who work with agents such as Claude Code, Codex and Cursor and are tired of outdated APIs, deprecated methods and invented function names showing up in generated code. Library maintainers are a second audience: a dedicated maintainers section and an Add Docs page let owners submit their documentation so agents can find it. An enterprise tier exists for organizations with stricter needs. In practice, a developer installs Context7 into an agent by following the install guide, optionally creating an API key from the dashboard, and then asks the agent to consult the docs while it writes code. The library directory can also be searched on the website. Each entry lists its source (a GitHub repository or a docs site), a benchmark score, the number of indexed snippets and how recently it was refreshed, with some popular entries updating within hours. Search over the index is powered by Upstash Redis Search. Beyond the agent integration, the site offers a live chat, an Ask feature and a newer Context7 Search API aimed at grounding coding agents. Among alternatives, Context7 sits between generic web search, which returns noisy and unversioned pages, and hand-maintained rule files or pasted documentation. Its strength is breadth and freshness without manual upkeep. The trade-off is that quality depends on how well each library has been parsed and indexed, and the published benchmark scores vary from one library to the next.

How do you use Context7?

  1. 1Open the install guide
    Go to the install page and pick the agent you use, such as Claude Code, Codex or Cursor, then follow the setup instructions shown.
    Context7 — Open the install guide
  2. 2Create an API key
    Sign in and generate an API key from the dashboard settings to connect your agent with higher limits and account features.
  3. 3Look up a library
    Search the directory for the framework or service you work with and check its benchmark, snippet count and last update.
    Context7 — Look up a library
  4. 4Try it live
    Use the live chat to ask a documentation question and see the kind of current answers your agent will receive.
    Context7 — Try it live
  5. 5Add missing documentation
    If a library is absent, submit its docs through the Add Docs page so it can be indexed for agents.
    Context7 — Add missing documentation

Context7 pros and cons

Pros

  • Very large index of roughly 179,000 libraries, covering frameworks, databases and platform docsAI
  • Serves version-specific docs and examples, which cuts outdated API suggestions from agentsAI
  • Works with several agents including Claude, Codex and Cursor through a guided installAI
  • Library table shows benchmark, snippet count and update recency so source quality can be judgedAI
  • Maintainers can add their own docs, and an enterprise tier is available for larger teamsAI

Cons

  • Output quality depends on how each library was indexed, and benchmark scores differ noticeably between librariesAI
  • Some indexed docs refresh slowly, with certain entries showing a week between updatesAI
  • Pricing details are not shown on the homepage, so cost planning requires opening the plans pageAI
  • Mainly useful to developers working with coding agents, with little value for non-technical usersAI

Context7 pricing

Pricing

A Pricing page exists, but the homepage does not state any plan names or prices. An enterprise option is listed separately.

Learn more

Support

Documentation, guides, a contact page, a status page and an X account are linked from the site.

Learn more

Integrations

Supplies docs to agents such as Claude, Codex and Cursor, with indexed sources from GitHub repositories and documentation sites. Search runs on Upstash Redis Search.

Learn more

Features

Searchable index of about 179,000 libraries with benchmark, snippet count and update recency, version-specific docs and code examples for agents, API keys, live chat, an Ask feature, a rankings page, a Docs7 section and the Context7 Search grounding API.

Learn more

Frequently asked questions about Context7

  • Is Context7 free?
    Context7 has a free plan, with paid plans for more usage or features.
  • How much does Context7 cost?
    A Pricing page exists, but the homepage does not state any plan names or prices. An enterprise option is listed separately.
  • Does Context7 have an API?
    Yes, Context7 offers an API.
  • How do you use Context7?
    The walkthrough on this page covers 5 steps: 1. Open the install guide 2. Create an API key 3. Look up a library 4. Try it live 5. Add missing documentation.
  • What platforms does Context7 support?
    Context7 is available on Web App.
  • What does Context7 integrate with?
    Supplies docs to agents such as Claude, Codex and Cursor, with indexed sources from GitHub repositories and documentation sites. Search runs on Upstash Redis Search.

Status

StatusActive
Views0
Outbound clicks0
Added12/5/2026

Platforms

Web App

Pricing

Freemium