context7-docs

Fetch official npm library documentation via Context7 MCP with REST fallback.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/kamelmh/opencode --skill context7-docs-kamelmh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context7-docs
Source: https://github.com/kamelmh/opencode/tree/main/skills/context7-docs
Command: npx skills add https://github.com/kamelmh/opencode --skill context7-docs-kamelmh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires npx, curl, grep, head, jq, python3, and includes scripts (resource) components.

What problem does it solve?

It eliminates the time wasted hunting for correct, up-to-date documentation by fetching authoritative library docs directly through Context7 instead of relying on memory or external browsing.

Core Features & Use Cases

  • Library ID resolution: Turns a human library name (like React or Next.js) into a Context7-compatible library ID before fetching content.
  • Topic-filtered documentation retrieval: Pulls docs for a specific area (like hooks, routing, or composition API) to reduce noise and context usage.
  • Context7 MCP with robust fallbacks: Uses Context7 MCP for accurate results and can fall back to Context7 REST API if MCP calls fail, with optional token limiting for large outputs.
  • Use case: When debugging an integration with a framework (e.g., Next.js App Router), quickly retrieve the precise docs sections for the feature you need (like routing conventions) to implement it correctly.

Quick Start

Ask for React hooks documentation by running: context7-docs docs react hooks.

Frequently Asked Questions about context7-docs

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

FAQPage Schema
How do I fetch official npm library documentation without web search?▼

Fetch official npm library documentation without web search by resolving library names to Context7 IDs and retrieving relevant doc content directly, supporting frameworks like React, Next.js, and Tailwind CSS with optional topic filtering.

Can I retrieve documentation for a specific topic like React hooks?▼

Retrieve documentation for a specific topic like React hooks by applying topic-filtered constraints to reduce noise, pulling only the precise doc sections needed for implementation or troubleshooting.

Does Context7 MCP support REST API fallback when unavailable?▼

Context7 MCP supports REST API fallback when MCP calls fail, ensuring reliable documentation retrieval even when the primary Context7 MCP service is unavailable.

What npm libraries and frameworks work with Context7 docs retrieval?▼

Context7 docs retrieval works with npm libraries and frameworks including React, Next.js, Tailwind CSS, Vue, and MCP, resolving human library names into Context7-compatible IDs before fetching content.

How do I handle large documentation outputs from Context7?▼

Handle large documentation outputs from Context7 by applying optional token limiting constraints, which reduce context usage and prevent overwhelming outputs when retrieving extensive framework documentation.

Do I need npx and python3 to run Context7 documentation fetching?▼

Running Context7 documentation fetching requires npx, python3, curl, grep, head, and jq dependencies to resolve library IDs, execute Context7 MCP calls, and parse REST fallback responses.