
Context7 Cli
upstash/context7Official
Fetch current library documentation and configure Context7 MCP for AI coding agents through the ctx7 CLI.
- skills.sh installs
- 8.8K
- GitHub stars
- 65.3K
- last updated
- Aug 21, 2026
What it does
- Covers two workflows: fetching up-to-date docs for any library and setting up Context7 MCP for an editor
- Provides
search,library, anddocscommands for one-step or two-step documentation lookup - Includes
setup,login,logout, andwhoamicommands for MCP configuration and authentication status - Designed for coding tasks where training data may be outdated, such as verifying API signatures
Install
$ npx -y skills add upstash/context7 --skill context7-cli -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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:
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.
- Setup — Configure Context7 MCP for Claude Code / Cursor / OpenCode.
Quick Reference
# Documentation
ctx7 search <query> # Search all libraries in one step
ctx7 library <name> <query> # Step 1: resolve library ID
ctx7 docs <libraryId> <query> # Step 2: fetch docs
# Setup
ctx7 setup # Configure Context7 MCP (interactive)
ctx7 login # Log in for higher rate limits
ctx7 whoami # Check current login status
Authentication
Details
- Repository
- github.com/upstash/context7
- Categories
- Technical Documentation, Skill & Plugin Building
- First seen
- Apr 16, 2026
More from upstash/context7
All 3Similar to Context7 Cli
More Technical Documentation
Context7MCP serverupstash65.3K starsCurrent, version-specific library docs and code examples fetched into an AI coding agent's context.
setup-context7-mcpSkillneolabhq/context-engineering-kit1.2K installsGuided setup that installs the Context7 MCP server and records its documentation library IDs in CLAUDE.md.
microsoft-docsSkillgithub/awesome-copilot15K installsDocumentation lookup skill that routes Microsoft queries to Learn MCP, Aspire MCP, or Context7 by source.
context7-auto-researchSkilldavila7/claude-code-templates724 installsAutomatic lookup of current library and framework docs for Claude Code through the Context7 API.