context7-mcp

Fetch current library documentation and generate code examples from retrieved references.

Updated May 17, 2026
One-click install
npx skills add https://github.com/ohdaveed/director-hearing-manager --skill context7-mcp-ohdaveed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-mcp
Source: https://github.com/ohdaveed/director-hearing-manager/tree/main/.agents/skills/context7-mcp
Command: npx skills add https://github.com/ohdaveed/director-hearing-manager --skill context7-mcp-ohdaveed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of outdated or incomplete answers when users ask about libraries, frameworks, APIs, or need accurate code examples that match current documentation.

Core Features & Use Cases

  • Resolves the best documentation source: Selects the most relevant Context7 library ID (optionally version-aware) for the user’s question.
  • Fetches current official docs: Retrieves targeted documentation via resolve-library-id and query-docs, then uses it to answer precisely.
  • Generates correct, example-driven responses: Produces guidance and code snippets aligned with the fetched references for topics like React, Next.js, Prisma, Supabase, Tailwind, and more.
  • Use case: When a developer asks how to implement a specific Supabase auth flow or a framework configuration detail, the skill pulls the latest docs and grounds the response in current APIs.

Quick Start

Ask: “How do I configure Supabase authentication for my Next.js app, and what are the recommended methods for this in the current docs?”

Frequently Asked Questions about context7-mcp

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

FAQPage Schema
How do I fetch up-to-date library documentation for code generation?

Resolve the specific library ID and query the current docs to fetch up-to-date library documentation for accurate code generation. This ensures generated snippets align with the latest framework versions.

What's the best way to get current API references for React or Next.js setup?

The best way to get current API references for React or Next.js setup is querying fetched documentation by resolving the framework library ID. This retrieves targeted configuration guidance matching the latest official docs.

Can I get accurate code examples for Prisma or Supabase using current documentation?

Yes, you can get accurate code examples for Prisma or Supabase by resolving the library ID and querying the current documentation. This grounds the response in the latest official API methods and configurations.

Does this documentation retrieval approach support version-aware framework setup?

Yes, this documentation retrieval approach supports version-aware framework setup by optionally specifying the version during library ID resolution. This ensures the fetched references match your exact framework version.

Why does my Tailwind configuration code not match the current documentation?

Your Tailwind configuration code may not match current documentation because it relies on outdated references. Querying fetched up-to-date docs resolves the library ID to retrieve the latest accurate configuration methods.