context7-mcp
context7-mcp pulls live documentation for libraries and frameworks like React, Next.js, Prisma, and Supabase, ensuring your code answers stay current. Resolve library IDs, query specific concepts, and incorporate official docs into responses—perfect for setup questions, API references, and code generation tasks.
context7-mcp fetches current library and framework documentation to answer code questions with up-to-date information.
AI-generated summary based on this skill's SKILL.md
Install
upstash/context7/context7-mcp · repository language: TypeScript
git clone https://github.com/upstash/context7
cp -r context7/skills/context7-mcp ~/.claude/skills/context7-mcpFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What's the latest React API reference that context7-mcp can fetch?
context7-mcp pulls live documentation for React and other frameworks, ensuring you get current API references rather than relying on training data. You can query specific React features, hooks, and components to generate up-to-date code examples and resolve version-specific details directly from official sources.
How do I set up Next.js middleware using context7-mcp?
context7-mcp provides setup and configuration guidance for Next.js by fetching current documentation. Ask about middleware configuration, and the skill retrieves official Next.js docs to give you accurate setup steps, code examples, and best practices for your specific version.
Can context7-mcp generate code examples for Vue and other frameworks?
Yes, context7-mcp generates code examples using up-to-date API references for Vue, React, Next.js, and other popular frameworks. It fetches live documentation so your examples reflect current syntax, best practices, and available methods rather than outdated training data.
How does context7-mcp handle version-specific documentation?
context7-mcp resolves and retrieves version-specific documentation for libraries you mention. Whether you're asking about Prisma schema definitions, Supabase auth setup, or Next.js 15 configuration, it looks up the exact version's official docs to provide accurate, current guidance.
What libraries and frameworks does context7-mcp support?
context7-mcp supports popular frameworks and libraries including React, Next.js, Vue, Svelte, Express.js, Prisma, Supabase, and Tailwind CSS. It fetches live documentation for setup guides, API methods, configuration details, and code generation across these ecosystems.
Can context7-mcp look up API methods and reference documentation in real-time?
context7-mcp looks up API methods and reference documentation for libraries in real-time, pulling from official sources. This ensures your answers about Tailwind utility classes, Express routing, Prisma queries, or any framework API stay current and accurate.
SKILL.md
rendered from the published skill — quoted content, verbatim
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 Next.js middleware?")
- Requests code involving libraries ("Write a Prisma query for...")
- Needs API references ("What are the Supabase auth methods?")
- 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
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/context7-mcp/SKILL.md