context7: Give AI Coding Tools Current Library Docs

Summary
Context7 retrieves version-aware library documentation and code examples for AI coding assistants, helping reduce outdated guidance and invented APIs. It offers both a CLI-and-skills setup and an MCP server integration.
At a glance
- Language
- TypeScript
- License
- MIT
- Stars
- 62.6k
- Forks
- 3k
- Added to OSRepos
- May 4, 2026
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Context7 supplies AI coding assistants with current, library-specific documentation and code examples from its index. It addresses a common weakness of model-generated code: answers can rely on stale training data or describe APIs that do not exist in the relevant version.
It is intended for developers using coding agents who want documentation available in the prompt or through native MCP tools. The repository contains the MCP server source; the API backend, parsing engine, and crawling engine are private services.
Key Features
- Retrieves documentation and examples relevant to a library and task.
- Supports version-aware lookups when a version is specified in the prompt.
- Offers a CLI workflow with
ctx7 libraryfor finding library IDs andctx7 docsfor fetching documentation. - Provides MCP tools to resolve library IDs and query documentation from compatible clients.
- Supports both CLI-plus-skills and MCP setup modes for coding agents.
- Includes a TypeScript SDK and integrations such as Vercel AI SDK tools.
Use Cases
- An application developer asks an AI assistant for framework setup instructions and wants examples aligned with a particular version.
- A team using Cursor or another coding agent wants documentation lookup available as part of its normal coding workflow.
- An agent developer integrates library documentation retrieval into an MCP-enabled application.
- A developer knows the target library and wants to query its docs directly by Context7 library ID rather than rely on a generic answer.
Project Facts
- Language: TypeScript
- License: MIT
- Stars: 62.6k
- Forks: 3k
- Topics: llm, mcp, mcp-server, vibe-coding
- Archived: No
Getting Started
Requires Node.js 18 or newer for the CLI. Run the setup command, then follow the prompts to choose CLI-plus-skills or MCP mode:
npx ctx7 setup
See the repository README for manual client configuration and details.
Considerations
- The hosted API, parsing engine, and crawling engine are not included in this repository.
- A free API key is recommended for higher rate limits; the README does not specify rate-limit amounts.
- Documentation indexed from community-contributed projects may be incomplete or inaccurate. Verify important details against the library's own sources.
- CLI setup requires Node.js 18 or newer. MCP mode requires a compatible client and configuration.
Found this useful?
Share it with someone who would like context7.
Comparisons
Source repository
Open the original repository on GitHub.
24 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

agentwatch: Monitor AI Agent Activity Locally
October 6, 2026
agentwatch combines logs from multiple coding agents into a local timeline with event details, cost tracking, alerts, and search. It suits developers who run several agents and want visibility without sending data to a cloud service.

image-blaster: Turn Images into 3D Environments and Assets
October 5, 2026
image-blaster uses Claude skills and external generation services to turn an image into a 3D environment, object meshes, and sound effects. It is designed to quickly create starting points for game, 3D, and web projects.

OrcaReplay: Record and Replay AI Agent Runs
October 2, 2026
OrcaReplay records AI agent runs so developers can inspect what happened, replay interactions offline, and fork a run from a checkpoint onto another model. It is a TypeScript CLI for debugging and comparing agent behavior without modifying the agent.

openmake_llm: Coordinate AI Models, Agents, and Tools
October 1, 2026
OpenMake is a self-hosted AI workspace that coordinates chat models, agents, and tools in one place. It suits people who want multi-step AI workflows with local or open-weight models, while keeping infrastructure and model choices under their control.