context7-plugin
🔌Pluginupstash/context7
Installation
/plugin marketplace add upstash/context7/plugin install context7-plugin@context7-marketplaceAn MCP server that pulls up-to-date, version-specific library documentation and code examples directly into your AI coding assistant prompt, eliminating outdated or hallucinated API suggestions.
Overview
Context7 MCP is a Model Context Protocol server that solves a fundamental problem with AI coding assistants: outdated training data. When you ask an LLM to write code using a library, it often generates examples based on old versions or hallucinates APIs that do not exist. Context7 fixes this by fetching current, version-specific documentation and code examples directly from the source and injecting them into your prompt context. Simply add "use context7" to any prompt, or configure a rule for automatic invocation.
Key Features
- Real-time documentation retrieval: Pulls up-to-date docs and code examples for any library, matched to the specific version you need, directly into your LLM context
- Broad client support: Works with Cursor, Claude Code, Opencode, and 30+ other MCP-compatible clients via both remote (HTTP) and local (stdio) connections
- Library resolution tools: Provides
resolve-library-idto find the right library andquery-docsto fetch relevant documentation based on your specific question or task - Flexible authentication: Supports API key authentication (free tier available) and OAuth 2.0 for MCP clients that implement the OAuth specification
- Auto-invocation rules: Configure your editor to automatically call Context7 for code-related questions without typing "use context7" every time
- Version-specific lookups: Mention a specific library version in your prompt and Context7 automatically matches the appropriate documentation
Who is this for?
- Developers using AI coding assistants (Cursor, Claude Code, or similar) who are frustrated by outdated code suggestions and hallucinated APIs
- Teams working with rapidly evolving libraries and frameworks where training data quickly becomes stale
- Anyone who wants to eliminate tab-switching between documentation sites and their AI coding environment
Part of
upstash-context7
More from this repository9
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Dynamically retrieves and provides up-to-date code documentation and context for software libraries, ensuring AI models generate accurate, current code examples and API references.
Skill
Skill
Skill
Quickly retrieves and summarizes technical documentation across multiple sources to provide precise, context-aware programming references and solutions.
Skill
Skill
Skill