context7-cli

Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7", needs current docs for any library, wants to install/search/generate skills, or needs to set up Context7 for their AI coding agent.

By upstash · 6,416 installs

npx skills add upstash/context7 --skill context7-cli

Source repository · Upstream listing

ctx7 CLI The Context7 CLI does two things: fetches up to date library documentation and sets up Context7 MCP for your editor. Make sure the CLI is up to date before running commands: Or run directly without installing: What this skill covers [Documentation](references/docs.md) — Fetch current docs for any library. Use when writing code, verifying API signatures, or when training data may be outdated. [Setup](references/setup.md) — Configure Context7 MCP for Claude Code / Cursor / OpenCode. Quick Reference Authentication Most commands work without login. Exception: ctx7 setup requires it unless api key or oauth is passed. Login also unlocks higher rate limits on docs commands. Set an API key via environment variable to skip interactive login entirely: Common Mistakes Library IDs require a / prefix — /facebook/react not facebook/react Always run ctx7 library first — ctx7 docs react "hooks" will fail without a valid ID