context7 — Agent Skill
by anthropics · Updated
Upstash Context7 MCP server for up-to-date documentation lookup. Connects to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js or npx required — to pull version-specific documentation and code examples directly from source repositories into your LLM context. Works anonymously out of…
At a glance
context7 is an Agent Skill by anthropics in the Documents & Office category. In Claude Code it installs with `/plugin install context7@claude-plugins-official` after adding the anthropics/claude-plugins-official marketplace; other assistants use its SKILL.md instructions as rules. Its source repository has 45,210 GitHub stars (as of Oct 28, 2026).
How to install context7 in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install context7 in Claude CodeAnthropic's agentic CLI
Add the marketplace
claude/plugin marketplace add anthropics/claude-plugins-officialInstall the skill
claude/plugin install context7@claude-plugins-officialUse it
These are slash commands for a Claude Code session, not your shell. Claude auto-invokes the skill when your request matches its description — or type its slash command if it exposes one.
How to install context7 in Claude DesktopDesktop app (MCP config)
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Add the SKILL.md to your Skills folder
Settings → Capabilities → Skills → add the folder containing SKILL.md. Claude picks it up automatically.
How to install context7 in CursorAI-first code editor
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Convert to a Cursor rule
Create .cursor/rules/context7.mdc and paste the SKILL.md body. Set `alwaysApply` or a glob so the Agent loads it in context.
How to install context7 in Codex CLIOpenAI coding agent
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Reference in AGENTS.md
Add the skill's instructions (or a link) to AGENTS.md at your repo root — Codex reads it on every run.
How to install context7 in WindsurfCodeium's agentic IDE
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
How to install context7 in ClineVS Code autonomous agent
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
How to install context7 in VS CodeCopilot / MCP support
Clone the source
bashgit clone https://github.com/anthropics/claude-plugins-official.gitFind the skill
It lives in claude-plugins-official/external_plugins/context7 — that folder contains the SKILL.md.
Add to your rules / context
Paste the SKILL.md instructions into this tool's custom rules or workspace instructions so the agent follows them.
Documentation
Full READMEContext7
Context7 solves a common problem with AI coding assistants: outdated training data and hallucinated APIs. Instead of relying on stale knowledge, Context7 fetches current documentation and code examples directly from source repositories.
This plugin connects Claude Code to Context7's hosted remote MCP server (https://mcp.context7.com/mcp) — no local Node.js, npm, or npx required.
Available Tools
- `resolve-library-id` — searches for libraries and returns Context7-compatible identifiers (e.g.
/vercel/next.js) plus available versions. - `query-docs` — fetches documentation for a specific library, ranked by relevance to your question.
API Key (optional)
Without an API key the plugin connects anonymously and shares the anonymous rate limits. To use your own plan, create an API key in the Context7 dashboard and export it as an environment variable before launching Claude Code:
# e.g. in ~/.zshrc or ~/.bashrc
export CONTEXT7_API_KEY="your-api-key"The plugin's MCP server configuration picks up CONTEXT7_API_KEY automatically. Restart Claude Code after setting it, then verify usage in the dashboard.
Usage
The plugin works automatically when you ask about libraries:
- "How do I set up authentication in Next.js 15?"
- "Show me React Server Components examples"
- "What's the Prisma syntax for relations?"
To get documentation for a specific version, include the version in the library ID (e.g. /vercel/next.js/v15.1.8). The resolve-library-id tool returns available versions, so you can pick the one that matches your project.
More Documents & Office skills
- Documents & Office185k
document skills
Collection of document processing suite including Excel, Word, PowerPoint, and PDF capabilities
Anthropic Skills4 skillsby anthropics
- Documents & Office185k
claude api
Claude API and SDK documentation skill for building LLM-powered applications
Anthropic Skills1 skillsby anthropics
- Documents & Office45k
playground
Creates interactive HTML playgrounds — self-contained single-file explorers with visual controls, live preview, and prompt output with copy button. Includes templates for design playgrounds, data explorers, concept maps, and document critique.
Claude Plugins (Official)by anthropics
- Documents & Office16k
Claude Developer Platform
Official documentation
awesome-claude-skillsby travisvn
- Documents & Office16k
Skills API Endpoint
/v1/skills API documentation
awesome-claude-skillsby travisvn
- Documents & Office16k
Official Skills Repository Issues
[Claude Documentation](https://docs.claude.com/)
awesome-claude-skillsby travisvn
Catalog data refreshed . Something wrong? Report it.