context7
9,172
Context7 MCP delivers up-to-date, version-specific code documentation into any AI prompt, eliminating the reliance on outdated or hallucinated code examples typically offered by LLMs. With versions available for multiple platforms and comprehensive troubleshooting support, Context7 streamlines coding with its on-demand, accurate documentation.
Context7 MCP - Up-to-date Code Docs For Any Prompt
Without Context7
- Outdated LLM code examples
- Hallucinated APIs
- Generic answers for old packages
With Context7
- Provides up-to-date, version-specific documentation and examples directly in your prompt
- Requires adding
use context7
to prompts in Cursor - Simplifies workflow by eliminating tab-switching and outdated generation issues
Getting Started
- Requires Node.js >= v18.0.0 and a compatible MCP Client
- Available for installation via Smithery, Cursor, Windsurf, VS Code, Zed, and others
Environment Variables
DEFAULT_MINIMUM_TOKENS
: Minimum token count for documentation retrieval
Available Tools
resolve-library-id
: Converts library names to Context7-compatible IDsget-library-docs
: Fetches library documentation by Context7 ID
Troubleshooting
- Tips provided for resolving common errors like
ERR_MODULE_NOT_FOUND
and ESM resolution issues
Connect with Us
- Follow us on X for updates
- Join the Discord Community