Context7 icon

Context7

Createdupstash

Fetches up-to-date documentation and code examples for LLMs and AI code editors directly from the source.

About

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

  • Supports multiple installation methods (npx, bunx, deno)
  • Offers version-specific documentation for accurate results
  • Provides tools for resolving library IDs and fetching documentation
  • Fetches up-to-date documentation and code examples
  • 3,001 GitHub stars
  • Integrates with Cursor, Windsurf, Claude Desktop, and VS Code

Use Cases

  • Avoiding hallucinated APIs and outdated information in code generation
  • Generating accurate and up-to-date code examples with LLMs
  • Integrating current documentation into AI code editors
Craft Better Prompts with AnyPrompt