context7

Context7 Platform -- Up-to-date docs for AI agents

What is context7?

Context7 Platform -- Up-to-date docs for AI agents

Overview of context7

What it is

and what it does not do (placeholder) — replaced below.

What it is

Context7 is a platform that supplies up-to-date, version-specific documentation and code examples to AI coding agents. The README states that LLMs otherwise rely on outdated or generic information about the libraries you use, which produces outdated code examples, hallucinated APIs that do not exist, and generic answers for old package versions. Context7 pulls documentation straight from the source into the agent's context. It works in two modes: CLI + Skills, which installs a skill that guides the agent to fetch docs using ctx7 CLI commands with no MCP required, and MCP, which registers a Context7 MCP server so the agent can call documentation tools natively. The repository hosts the MCP server's source code; the API backend, parsing engine, and crawling engine are private and not part of the repository.

Key features

  • Two integration modes: CLI + Skills (no MCP required) and an MCP server.
  • ctx7 library searches the Context7 index by library name and returns matching libraries with their IDs.
  • ctx7 docs retrieves documentation for a library using a Context7-compatible library ID.
  • MCP tools resolve-library-id and query-docs, the latter with an optional language parameter that ranks code examples in that language first.
  • Library ID slash syntax, such as /supabase/supabase, lets Context7 skip the library-matching step.
  • Version matching when a version is mentioned in the prompt.
  • Packages: @upstash/context7-mcp, ctx7, @upstash/context7-sdk, @upstash/context7-tools-ai-sdk, and @upstash/context7-pi.

Use cases

  • Bringing current code examples and API documentation into a coding agent's context.
  • Requesting setup or configuration steps for a specific library version.
  • Targeting a known library directly by its Context7 ID.
  • Using Context7 from Cursor, Claude Code, OpenCode, or another MCP client.

Getting started

The ctx7 CLI requires Node.js 22.13 or newer. bash npx ctx7 setup The command authenticates via OAuth, generates an API key, and installs the appropriate skill; --cursor, --claude, or --opencode target a specific agent. To remove the generated setup, run npx ctx7 remove. For manual configuration, use the server URL https://mcp.context7.com/mcp with your MCP client and pass the API key via the Authorization: Bearer YOUR_API_KEY header.

License and pricing

Context7 is released under the MIT license, and the metadata lists it as open source. The README recommends getting a free API key for higher rate limits.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/upstashcontext7.svg)](https://yunodb.com/tools/upstashcontext7?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/upstashcontext7?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/upstashcontext7.svg" alt="Featured on YunoDB" height="20"></a>