Context7
Fetches up-to-date documentation and code examples for LLMs and AI code editors directly from the source.
Context7 addresses the issue of LLMs relying on outdated information by pulling version-specific documentation and code examples directly into your prompts. By adding `use context7` to your prompt, the tool fetches relevant and current information, preventing hallucinated APIs and outdated code generations. It integrates with various MCP clients such as Cursor, Windsurf, Claude Desktop and VS Code, providing a seamless experience for developers seeking accurate and up-to-date context for their LLM-powered coding tasks.
Key Features
01Supports multiple installation methods (npx, bunx, deno)
02Offers version-specific documentation for accurate results
03Provides tools for resolving library IDs and fetching documentation
04Fetches up-to-date documentation and code examples
053,001 GitHub stars
06Integrates with Cursor, Windsurf, Claude Desktop, and VS Code
Use Cases
01Avoiding hallucinated APIs and outdated information in code generation
02Generating accurate and up-to-date code examples with LLMs
03Integrating current documentation into AI code editors