upstash / context7
An MCP server that injects up-to-date, version-specific documentation into LLM prompts to eliminate hallucinated APIs and outdated code examples
星标趋势
AI 分析
项目摘要
Context7 is an MCP server that provides up-to-date, version-specific code documentation directly to LLMs and AI code editors. It solves the problem of LLMs relying on stale training data by fetching current documentation and code examples from the source and injecting them into prompts.
为什么值得关注
It addresses a critical pain point in AI-assisted coding—hallucinated APIs and outdated code examples—by leveraging the Model Context Protocol to deliver real-time, version-aware documentation. With nearly 60k stars and integration into popular editors like Context7 has become essential infrastructure for vibe-coding workflows.
优势
- Solves a real, widespread problem of LLM hallucinations and outdated code examples
- Seamless MCP integration makes it compatible with Cursor and other AI editors
- Highly active development with 57 releases in 6 months and 128 contributors
- Excellent multilingual documentation supporting 16+ languages
- Clear, compelling README with concrete before/after examples
局限性
- No automated tests despite high production usage
- No Docker support for self-hosting or enterprise deployment
- No examples directory for advanced configuration or custom integrations
使用场景
- AI-assisted coding with accurate, version-specific library documentation
- Reducing API hallucinations in LLM-generated code
- Vibe-coding workflows where developers rely on AI editors for rapid prototyping