Context7: Up-to-date code documentation for LLMs
MCP server delivering version-specific library documentation to LLMs.
Learn more about context7
Context7 is an MCP (Model Context Protocol) server that provides version-specific library documentation to Large Language Models during code generation workflows. It automatically detects dependencies listed in a project's package.json file, retrieves documentation corresponding to the exact installed versions, and injects this contextual information into the LLM's working context. This eliminates the common problem of AI models generating code based on outdated or incorrect API signatures by ensuring documentation matches the actual library versions in use. The server integrates with AI-powered code editors like Cursor and Windsurf, operating as a background service that intercepts LLM requests and enriches them with current, accurate library reference material before code suggestions are generated.

Version-specific documentation
Retrieves documentation tied to specific library versions rather than generic information, reducing mismatches between generated code and actual API availability.
MCP protocol integration
Operates as an MCP server compatible with multiple clients including Cursor, VS Code, Claude Code, and Windsurf, allowing seamless integration into existing development workflows.
Direct prompt injection
Places fetched documentation directly into the LLM context window without requiring manual tab-switching or copy-pasting, keeping documentation lookup within the coding interface.
import { Context7Client } from '@upstash/context7-mcp';
const client = new Context7Client({
apiKey: process.env.CONTEXT7_API_KEY
});
// Get docs for a specific library version
const docs = await client.getLibraryDocs('react', '18.2.0');
console.log(docs.content);Adds rate-limit warning feature; release notes do not specify breaking changes, requirements, or migration steps.
- –Review new rate-limit warning behavior introduced in PR #835 to understand impact on your application.
- –No action required for upgrade; feature appears additive based on available information.
Release notes do not specify breaking changes, new features, or bug fixes; only a changelog link is provided.
- –Review the full changelog at the provided GitHub compare URL to identify any relevant changes for your deployment.
- –No actionable upgrade steps, deprecations, or security fixes are documented in the release notes themselves.
Patch release fixing a registry configuration issue; no breaking changes or new requirements documented.
- –Apply the fix for registry configuration handling merged in PR #823.
- –Release notes do not specify the nature of the bug or upgrade impact.
See how people are using context7
Related Repositories
Discover similar tools and frameworks used by developers
higgsfield
Cluster manager for multi-node PyTorch model training.
tiktoken
Fast BPE tokenizer for OpenAI language models.
unsloth
Memory-efficient Python library for accelerated LLM training.
PentestGPT
AI-assisted Python framework for automated security testing.
LLaMA-Factory
Parameter-efficient fine-tuning framework for 100+ LLMs.