New advertisers: 50% off your first month with code FIRSTMONTHSee slots
upstash avatar

Context7 Cli

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
View on GitHub

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, and docs commands for one-step or two-step documentation lookup
  • Includes setup, login, logout, and whoami commands 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 -y

Installs 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 3

Similar to Context7 Cli

More Technical Documentation