Context7 delivers current, version-specific documentation and code examples directly into LLM prompts, eliminating outdated training data and hallucinated APIs. Available as MCP server or CLI with Skills mode for seamless integration with coding agents. Supports 30+ client integrations including Claude, Cursor, and VS Code. Ensures developers receive accurate, up-to-date library documentation rather than stale AI training data.
git clone https://github.com/upstash/context7.git
# Add to Claude Desktop
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}
# Then in prompts, add "use context7"
# to get live docs for any library