context7-cli

Fetch library documentation and manage AI coding skills via CLI.

467|42|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/mxyhi/ok-skills --skill context7-cli-mxyhi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context7-cli
Source: https://github.com/mxyhi/ok-skills/tree/main/context7-cli
Command: npx skills add https://github.com/mxyhi/ok-skills --skill context7-cli-mxyhi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines accessing up-to-date library documentation, managing AI coding skills, and configuring the Context7 MCP for your AI coding agent.

Core Features & Use Cases

  • Documentation Fetching: Get current docs for any library, essential for coding and verifying API signatures.
  • Skills Management: Install, search, list, and remove AI coding skills.
  • Context7 Setup: Configure Context7 MCP for editors like Claude Code, Cursor, and OpenCode.
  • Use Case: When you need to understand the latest features of a Python library for a new project, use this skill to fetch the official documentation directly.

Quick Start

Use the context7-cli skill to fetch documentation for the 'react' library, searching for information on 'hooks'.

Frequently Asked Questions about context7-cli

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

FAQPage Schema
How do I fetch up-to-date library documentation for my AI coding agent?▼

You can fetch up-to-date library documentation by running a command-line interface that retrieves current docs for any library, allowing you to verify API signatures and understand latest features directly.

How do I configure Context7 MCP for editors like Cursor or Claude Code?▼

Configuring Context7 MCP for editors like Cursor and Claude Code is handled through a dedicated setup command that integrates the MCP server with your specific AI coding agent environment.

Can I manage and install AI coding skills from the command line?▼

Yes, you can manage AI coding skills entirely from the command line by using interactive and non-interactive modes to search, install, list, generate, and remove skills as needed.

Do I need npm installed to use the Context7 CLI?▼

You need either npm installed globally to install the CLI package locally, or you can use npx for direct execution without a permanent installation, ensuring a valid Node.js environment.

What is the best way to search for specific API features within library docs?▼

The best way to search for specific API features is using the CLI's search functionality, which allows you to fetch documentation for a target library and query specific terms like 'hooks' in React.

Can I use Context7 CLI in an automated, non-interactive pipeline?▼

Yes, the CLI supports non-interactive modes for installation, search, suggestion, and skill generation, making it suitable for automated pipelines and scripted environments without manual input.