context7-cli
context7-cli brings three core capabilities to your workflow: retrieve up-to-date documentation for any library, install and manage AI coding skills, and configure Context7 MCP integration with your editor. Use it when your training data may be stale, you need to verify API signatures, or you're setting up Context7 for Claude Code, Cursor, or OpenCode.
context7-cli fetches current library documentation and manages AI coding skills from the command line.
AI-generated summary based on this skill's SKILL.md
Install
upstash/context7/context7-cli · repository language: TypeScript
git clone https://github.com/upstash/context7
cp -r context7/skills/context7-cli ~/.claude/skills/context7-cliFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is context7-cli and what does it do?
context7-cli brings three core capabilities to your workflow: retrieve up-to-date documentation for any library, install and manage AI coding skills, and configure Context7 MCP integration with your editor. Use it when your training data may be stale, you need to verify API signatures, or you're setting up Context7 for Claude Code, Cursor, or OpenCode.
How do I fetch library docs with context7?
context7-cli lets you fetch current library documentation and API references via CLI. This is especially useful when your training data may be outdated or you need to verify the latest API signatures before writing code.
How to install ctx7 command line?
context7-cli supports installation and management of AI coding skills from the registry. Once installed, you can search for skills, manage them, and integrate context7-cli with your development environment for seamless access to documentation and skill management.
How do I configure context7 MCP for Cursor?
context7-cli enables configuration of Context7 MCP for code editors and AI agents. You can set up context7-cli integration with Cursor, Claude Code, or OpenCode to enable real-time documentation fetching and AI skill access directly within your editor.
Can context7-cli generate custom AI coding skills?
Yes, context7-cli supports generating custom AI coding skills with authentication. This advanced capability allows you to create tailored skills for your specific workflow and integrate them with your configured MCP setup.
What is the license for context7-cli?
context7-cli is released under the MIT license, making it freely available for personal and commercial use with minimal restrictions.
SKILL.md
rendered from the published skill — quoted content, verbatim
ctx7 CLI
The Context7 CLI does three things: fetches up-to-date library documentation, manages AI coding skills, and sets up Context7 MCP for your editor.
Make sure the CLI is up to date before running commands:
npm install -g ctx7@latest
Or run directly without installing:
npx ctx7@latest <command>
What this skill covers
- Documentation — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated.
- Skills management — Install, search, suggest, list, remove, and generate AI coding skills.
- Setup — Configure Context7 MCP for Claude Code / Cursor / OpenCode.
Quick Reference
```bash
Documentation
ctx7 library <name> <query> # Step 1: resolve library ID ctx7 docs
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 4 files
skills/context7-cli/SKILL.md
skills/context7-cli/references/docs.md
skills/context7-cli/references/setup.md
skills/context7-cli/references/skills.md