
Context7 Mcp
This pulls live documentation from Context7 instead of making Claude rely on potentially outdated training data. You'd use it whenever someone asks about library setup, API references, or code examples for frameworks like React, Next.js, Prisma, or Supabase. It works in two steps: first resolves which specific library and version the user is asking about, then fetches the relevant docs for that exact question. The version awareness is honestly the killer feature here since framework APIs change fast enough that training data gets stale quickly. It's essentially giving Claude a fresh reference manual instead of forcing it to remember everything from whenever it was last trained.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 9
- skills.sh installs
- 6.8K
- GitHub stars
- 64.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add upstash/context7 --skill context7-mcp --agent claude-codeInstalls into .claude/skills of the current project.
Files
When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.
When to Use This Skill
Activate this skill when the user:
- Asks setup or configuration questions ("How do I configure a Next.js proxy?")
- Requests code involving libraries ("Write a Prisma query for...")
- Needs API references ("What are the Supabase auth methods?")
- Needs an exact fact from a library's source: a default value, a signature, or where an error comes from
- Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)
How to Fetch Documentation
Step 1: Resolve the Library ID
Call resolve-library-id with:
libraryName: The library name extracted from the user's questionquery: What to look up in the library's documentation (improves relevance ranking)
Step 2: Select the Best Match
From the resolution results, choose based on:
- Exact or closest name match to what the user asked for
- Higher benchmark scores indicate better documentation quality
- If the user mentioned a version (e.g., "React 19"), prefer version-specific IDs
Step 3: Fetch the Documentation
Sponsors
Details
- Repository
- github.com/upstash/context7
- Categories
- Frontend Development, Backend & APIs, AI & Agent Building, Databases
- First seen
- Apr 16, 2026