context7-docs

Fetch library documentation from Context7 MCP with topic filters.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/Thomashighbaugh/opencode --skill context7-docs-thomashighbaugh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-docs
Source: https://github.com/Thomashighbaugh/opencode/tree/main/skills/context7-docs
Command: npx skills add https://github.com/Thomashighbaugh/opencode --skill context7-docs-thomashighbaugh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires mcporter, and includes scripts (resource) components.

What problem does it solve?

Fetch official library documentation quickly via the Context7 MCP server, enabling accurate references without generic web searches.

Core Features & Use Cases

  • Resolve library IDs from human-friendly names and fetch the corresponding docs.
  • Filter documentation by topic to obtain focused guidance (e.g., hooks, routing, utilities).
  • Use token limits to manage context size and prevent overload; fallback to public MCP URL if a local server isn't configured.
  • Use cases include researching React, Next.js, Tailwind CSS, Vue, MCP, OpenCode, or any npm library before coding.

Quick Start

Run ./scripts/docs.sh docs react hooks to fetch React hooks documentation.

Frequently Asked Questions about context7-docs

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

FAQPage Schema
How do I fetch up-to-date library documentation for React or Next.js without web searching?

Fetch up-to-date library documentation by running the docs.sh script with a library name like react. It queries the Context7 MCP server to retrieve precise API references, filtering by topics like hooks to guide development without generic web searches.

Can I filter library docs by a specific topic like Tailwind CSS utilities?

Yes, you can filter library documentation by specific topics. When fetching docs via Context7 MCP, apply optional topic filters such as routing or utilities to obtain focused guidance tailored to your current development needs.

Do I need a local Context7 server installed to fetch npm library docs?

You do not strictly need a local Context7 server installed to fetch npm library docs. The script falls back to a public MCP URL if a local server isn't configured, though Node.js 18+ is required to run the process.

How do I manage context size when fetching framework API references?

Manage context size when fetching framework API references by applying token limits. These optional token controls prevent context overload, ensuring the returned documentation fits safely within your development environment's constraints.

What is the best way to get precise API references for Vue or other npm libraries before coding?

The best way to get precise API references for Vue or other npm libraries is resolving the library ID from its human-friendly name via Context7 MCP. This fetches official documentation directly, ensuring accurate references for your codebase.