context7-mcp

Fetches current library documentation and code examples via Context7 MCP tools.

1|Updated Aug 1, 2024
One-click install
npx skills add https://github.com/obispobruno/dotfiles --skill context7-mcp-obispobruno
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context7-mcp
Source: https://github.com/obispobruno/dotfiles/tree/main/dot_agents/skills/context7-mcp
Command: npx skills add https://github.com/obispobruno/dotfiles --skill context7-mcp-obispobruno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI training data becomes outdated, so answers about libraries and frameworks may reference deprecated APIs or miss recent changes. This Skill retrieves up-to-date documentation from Context7 so answers about React, Next.js, Prisma, Supabase, and other frameworks reflect current versions. ## Core Features & Use Cases - Library Resolution: Calls resolve-library-id with the library name and the user's question to find the best matching Context7 library ID. - Documentation Retrieval: Calls query-docs with the selected library ID and the user's specific question to fetch relevant docs and code examples. - Version Awareness: Prefers version-specific library IDs when users mention versions like React 19 or Next.js 15, and favors official packages over community forks. - Use Case: A user asks "How do I configure Next.js middleware?" The Skill resolves the Next.js library ID, fetches current middleware documentation, and answers with accurate code examples citing the relevant version. ## Quick Start Ask how to configure a feature in a specific framework, such as "How do I set up authentication with Supabase in Next.js?"

Frequently Asked Questions about context7-mcp

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

FAQPage Schema
How do I get up-to-date documentation for a library like Next.js or Prisma?▼

Ask your question mentioning the library, and the Skill calls resolve-library-id with the library name and your full question, then calls query-docs with the selected Context7 library ID. The fetched documentation is used to answer with current information and code examples.

What is the Context7 resolve-library-id tool used for?▼

resolve-library-id maps a library name to a Context7 library ID such as /vercel/next.js. It takes the library name and the user's full question to improve relevance ranking, returning candidates with benchmark scores indicating documentation quality.

Does Context7 support version-specific documentation like React 19?▼

Yes. When a user mentions a version such as React 19 or Next.js 15, the Skill prefers version-specific library IDs from the resolution results. This ensures the fetched documentation matches the version the user is working with.

How are multiple library matches handled during resolution?▼

The Skill selects the exact or closest name match to what the user asked for, preferring higher benchmark scores that indicate better documentation quality. When multiple matches exist, official or primary packages are preferred over community forks.

When should I use Context7 instead of the AI's built-in knowledge?▼

Use it for setup and configuration questions, API reference lookups, and code generation involving specific libraries or frameworks. Training data may be outdated, while Context7 fetches current documentation for the exact library in question.