upstash/context7
FreeUpstash 出品,为 LLM 和 AI 编辑器实时注入最新的库文档与代码示例,消除模型对过时 API 的幻觉。Cursor / Claude 等一键接入。
About upstash/context7
Context7 is an open-source platform by Upstash that provides up-to-date, version-specific code documentation and examples directly into the prompts of LLMs and AI code editors like Cursor and Claude. It eliminates hallucinations caused by outdated training data by fetching real-time documentation from official sources. Context7 supports two modes: CLI + Skills, which installs a skill that guides the agent to fetch docs using ctx7 CLI commands (no MCP required), and MCP mode, which registers a Context7 MCP server for native tool calls. Installation is a single command (npx ctx7 setup) and requires Node.js 18+. Users can specify library IDs and versions for precise results. A free API key is available for higher rate limits.
Key Features
Pros & Cons
- Eliminates hallucinations by providing real-time, version-specific documentation
- Supports both CLI and MCP modes for flexible integration with various AI tools
- Simple one-command setup process requiring only Node.js 18+
- Free tier available with optional API key for higher rate limits
- Allows precise library and version targeting for accurate code generation
- Requires Node.js 18+ which may not be available in all environments
- Free tier may have rate limits without an API key
- Primarily designed for LLM/code editor use cases, not a general-purpose documentation tool
- Setup involves OAuth authentication which could be a minor friction point