upstash/context7
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
What it solves
Context7 prevents LLMs from generating outdated code or hallucinating APIs by providing them with real-time, version-specific documentation and code examples directly within the prompt context.
How it works
It acts as a bridge between coding agents and a curated index of library documentation. It operates in two primary modes:
- CLI + Skills: Installs a skill that allows agents to fetch documentation using
ctx7commands. - MCP (Model Context Protocol): Registers a server that allows agents to call documentation tools natively to resolve library IDs and query specific docs.
Users can specify library IDs (e.g., /supabase/supabase) or version numbers in their prompts to ensure the agent retrieves the exact documentation needed.
Who it’s for
Developers using AI coding agents (such as Cursor, Claude Code, or OpenCode) who need accurate, up-to-date API references without manually switching tabs to read documentation.
Highlights
- Version-Specific: Automatically matches the appropriate library version mentioned in the prompt.
- Multiple Integration Paths: Supports both a CLI-based approach and the Model Context Protocol (MCP).
- Direct Context Injection: Places documentation straight into the LLM's context to eliminate hallucinations.
- Broad Compatibility: Provides manual installation guides for over 30 different MCP clients.
Related
- Project
- Project
- Project
- Project
- Project