Context7 logo

Context7

Freemium
Visit

Context7 brings current, version-specific library documentation and code examples into AI coding assistants through an MCP integration. It helps developers generate code against the APIs and package versions they are using.

What is Context7?

Context7 is an MCP-based documentation service for AI coding assistants. It retrieves current, version-specific library documentation and code examples from library sources and places that context directly into an assistant’s prompt.

Its core purpose is to give coding agents more relevant information about the libraries and versions involved in a task. This addresses common problems described in the product documentation, including examples based on old training data, generic answers, and hallucinated APIs.

A typical workflow is to install Context7 with npx ctx7 setup, select a supported coding agent, and add use context7 to a natural-language coding prompt. Context7 can be used with agents such as Claude Code, Cursor, Codex, Opencode, Antigravity, VS Code, Devin Desktop, Cline, Trae, and Gemini CLI. The service also provides a searchable directory of more than 142,000 libraries.

What can Context7 do?

Version-specific documentation lookup

Retrieves documentation and code examples for the library and version relevant to a coding task, rather than relying only on an assistant’s general training data.

MCP prompt integration

Places the retrieved library context directly into the AI coding assistant’s prompt through Context7 MCP, so developers can request documentation within their existing coding workflow.

One-command setup

The `npx ctx7 setup` command wires Context7 into a selected coding agent and provides configuration options for supported tools.

Broad coding-agent support

Installation guidance covers Claude Code, Cursor, Codex, Opencode, Antigravity, VS Code, Devin Desktop, Cline, Trae, Gemini CLI, and other agents.

Library discovery

The Context7 library directory lets users search a catalog of more than 142,000 libraries and inspect available documentation sources.

Private repository and team plans

Paid plans extend the service beyond public repositories with private repository access and team collaboration; Enterprise adds options such as SSO and self-hosted deployment.

Use Cases

“Implementing framework features”

A developer can ask an AI coding assistant to build a feature with a framework such as Next.js or React and add `use context7` so the response is grounded in current library documentation.

“Working with changing APIs”

When a package’s API or syntax may have changed, Context7 can supply version-specific examples before the assistant generates implementation code.

“Configuring infrastructure and platform services”

Prompts for tasks such as configuring a Cloudflare Worker or integrating a service can use Context7 to bring the relevant platform documentation into the coding session.

“Standardizing documentation access for teams”

Teams working with private repositories can use the Pro or Enterprise offering for private library parsing, team collaboration, and, on Enterprise, organizational controls such as SSO or self-hosting.

Frequently Asked Questions

How do I use Context7 in a coding prompt?

Install it with `npx ctx7 setup`, choose your AI coding agent, and add `use context7` to the prompt. Context7 then retrieves relevant documentation and code examples for the request.

Which AI coding tools can use Context7?

The installation page lists Claude Code, Cursor, Codex, Opencode, Antigravity, VS Code, Devin Desktop, Cline, Trae, and Gemini CLI, along with additional agents documented by Context7.

What information is sent to Context7?

The plans documentation says that Context7 receives the documentation lookup query and library name, not the user’s code, conversation history, or full prompt. The LLM is instructed not to include private information such as API keys, passwords, or proprietary code in lookups.

Can Context7 work with private repositories?

Private repositories are available on Pro and Enterprise plans, not on the Free plan. Enterprise also includes private-repository support alongside additional team and deployment options.

What are the available plans?

The documented plans are Free for public repositories, Pro for private repositories and team collaboration, and Enterprise for organizations needing features such as SOC-2, SSO, dedicated support, or self-hosted deployment.

Quick Facts

Product type
MCP documentation service for AI coding assistants
Primary users
Developers and software teams using AI coding tools
Setup
`npx ctx7 setup`, followed by `use context7` in a prompt
Library directory
More than 142,000 libraries
Supported tools
Claude Code, Cursor, Codex, Opencode, Antigravity, VS Code, Devin Desktop, Cline, Trae, Gemini CLI, and more
Plans
Free, Pro, and Enterprise

Context7 Alternatives

Groq logo

Groq

groq.com

Groq is an inference platform for developers and teams, offering fast, predictable-cost model serving through the Groq LPU and GroqCloud, with OpenAI-compatible APIs and scalable tools.

Nango logo

Nango

nango.dev

Nango is a code-first integration platform connecting products and AI agents to 800+ APIs.

Unblocked logo

Unblocked

getunblocked.com

Unblocked turns code, docs, tickets, and conversations into actionable context for code review, Q&A, and AI coding workflows.

Maximem Synap logo

Maximem Synap

www.maximem.ai

Maximem Synap is an agentic memory and context-management platform for AI agents. It records conversations, builds structured and scoped memory, and retrieves concise context through SDKs, APIs, MCP, and native adapters for 23 agent frameworks.

Grsai logo

Grsai

grsai.ai

Grsai aggregates image, video, and chat AI models through documented APIs, with credit-based billing examples and onboarding via account and API key setup.

Murmell logo

Murmell

murmell.com

Murmell is a browser-based canvas for running AI coding agents in shared cloud sandboxes. It helps developers coordinate Claude Code, Codex, Kimi, and OpenCode on one project without local setup or file collisions.