Documentation
Context7
Up-to-date, version-specific library documentation and code examples for LLMs. Eliminates hallucinated APIs and outdated code patterns.
Install
npx -y @upstash/context7-mcpUp-to-date, version-specific library documentation and code examples for LLMs. Eliminates hallucinated APIs and outdated code patterns.
npx -y @upstash/context7-mcpContext7 is the highest-starred MCP server (54K+) in the ecosystem. It fetches up-to-date, version-pinned library documentation and injects it directly into your LLM's context window. This solves the common problem of AI assistants generating code using deprecated or non-existent APIs.
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
}
}
}
}
use context7 in prompts to auto-invoke for library questionsuse library /supabase/supabase for api and docs