context7-mcp

Fetch current library documentation and code examples by resolving library IDs and querying specific frameworks.

64.1k|3.2k|Updated Mar 26, 2025
Ready to run
npx skills add https://github.com/upstash/context7 --skill context7-mcp-upstash
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: context7-mcp
Source: https://github.com/upstash/context7/tree/main/plugins/copilot/context7/skills/context7-mcp
Command: npx skills add https://github.com/upstash/context7 --skill context7-mcp-upstash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill solves the problem of relying on outdated training data when answering questions about libraries, frameworks, and APIs. It fetches current, accurate documentation instead of guessing or providing potentially stale information. ## Core Features & Use Cases - Library Resolution: Identify the correct library ID from user queries mentioning frameworks like React, Next.js, Prisma, Supabase, Vue, Svelte, Express, or Tailwind. - Documentation Fetching: Query specific concepts within a library's documentation to retrieve relevant code examples and API references. - Version-Aware Lookups: Select version-specific library IDs when users mention particular versions (e.g., "React 19", "Next.js 16"). - Use Case: A user asks "How do I set up authentication in Next.js 15?" This Skill resolves the Next.js library ID, queries the auth documentation concept, and returns current setup instructions with code examples. ## Quick Start When a user asks about configuring a library or needs code examples for a specific framework, resolve the library ID using the library name and user query, then fetch documentation for the specific concept they're asking about.

Frequently Asked Questions about context7-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch documentation for a specific library version like React 19?▼

Call resolve-library-id with the library name and user query, then select the version-specific library ID from the results. Pass that ID to query-docs with your specific concept to retrieve version-accurate documentation and examples.

What libraries does the context7-mcp Skill support?▼

The Skill supports popular frameworks including React, Vue, Svelte, Next.js, Express, Tailwind CSS, Prisma, and Supabase. It resolves any library name the user mentions and fetches from Context7's documentation index.

Should I combine multiple concepts into a single query-docs call?▼

No. Split multi-topic questions into separate query-docs calls per concept unless asking how concepts interact. Single-concept queries improve ranking accuracy and return deeper results than combined queries.

When should I activate this Skill instead of using training data?▼

Activate whenever the user mentions specific frameworks, requests setup instructions, needs code examples for libraries, or asks for API references. This ensures current documentation instead of potentially outdated training information.

How do I choose between multiple library matches from resolve-library-id?▼

Prefer exact or closest name matches to the user's query, prioritize higher benchmark scores indicating better documentation quality, and select official packages over community forks when multiple matches exist.