context7-mcp

Fetch current documentation for referenced libraries and frameworks.

1|Updated May 22, 2026
One-click install
npx skills add https://github.com/spontus-reach/spontus --skill context7-mcp-spontus-reach
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-mcp
Source: https://github.com/spontus-reach/spontus/tree/main/.agents/skills/context7-mcp
Command: npx skills add https://github.com/spontus-reach/spontus --skill context7-mcp-spontus-reach

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you answer questions about software libraries, frameworks, and APIs accurately by fetching current documentation rather than relying on outdated knowledge.

Core Features & Use Cases

  • Library resolution: Converts the user’s mentioned library/framework name into the best Context7 library match using resolve-library-id.
  • Documentation retrieval: Pulls targeted, current docs with query-docs based on the user’s full question.
  • Practical code/examples guidance: Produces responses grounded in the fetched documentation for setup, configuration, and implementation tasks (e.g., Next.js middleware, Prisma queries, Supabase auth methods).

Quick Start

Ask: “How do I configure Next.js middleware to handle authentication for protected routes?”

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 API references and code examples for web frameworks?

To generate accurate code examples, this Skill resolves your library name into a Context7 ID and queries current documentation to provide implementation guidance grounded in the latest API references.

How do I configure Next.js middleware for protected route authentication?

To configure Next.js middleware, this Skill retrieves current framework documentation and generates setup guidance grounded in the latest API references for handling authentication across protected routes.

Can I use this to find setup guidance for common developer toolchains and libraries?

Yes, you can use this to find setup guidance because it applies library resolution and documentation retrieval across common web and developer toolchains to deliver accurate configuration instructions.

What's the best way to query Prisma documentation for specific database operations?

The best way to query Prisma documentation is providing your full question, which allows the Skill to resolve the library ID and pull targeted, current docs for accurate database operation guidance.

Why does library resolution matter when fetching framework documentation?

Library resolution matters because it converts your mentioned library or framework name into the best Context7 match, ensuring the subsequent documentation retrieval pulls accurate and current API references.