NEW Browse AI tools across categories — updated daily. See what's new →

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",…

Authorupstash
Version1.0.0
LicenseMIT
Token count~1,064
UpdatedJun 5, 2026

Install

Quick install

via npx skills · works with 57+ agents
npx skills add https://github.com/upstash/context7/tree/HEAD/skills/context7-cli
Or pick agent:
npx skills add upstash/context7 --skill context7-cli --agent claude-code
npx skills add upstash/context7 --skill context7-cli --agent cursor
npx skills add upstash/context7 --skill context7-cli --agent codex
npx skills add upstash/context7 --skill context7-cli --agent opencode
npx skills add upstash/context7 --skill context7-cli --agent github-copilot
npx skills add upstash/context7 --skill context7-cli --agent windsurf
More install options

Shorthand — useful for multi-skill repos:

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

Manual — clone the repo and drop the folder into your agent's skills directory:

git clone https://github.com/upstash/context7.git
cp -r context7/skills/context7-cli ~/.claude/skills/
How to use: Once installed, ask your agent to "use the context7-cli skill" or describe what you want (e.g. "Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and co"). Requires Node.js 18+.

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",…

context7-cliby upstash

Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

npx skills add https://github.com/upstash/context7 --skill context7-cliDownload ZIPGitHub

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

`# Documentation
ctx7 library <name> <query> # Step 1: resolve library ID
ctx7 docs <libraryId> <query> # Step 2: fetch docs

# Skills
ctx7 skills install /owner/repo # Install from a repo (interactive)
ctx7 skills install /owner/repo name # Install a specific skill
ctx7 skills search <keywords> # Search the registry
ctx7 skills suggest # Auto-suggest based on project deps
ctx7 skills list # List installed skills
ctx7 skills remove <name> # Uninstall a skill
ctx7 skills generate # Generate a custom skill with AI (requires login)

# Setup
ctx7 setup # Configure Context7 MCP (interactive)
ctx7 login # Log in for higher rate limits + skill generation
ctx7 whoami # Check current login status
`

Authentication

`ctx7 login # Opens browser for OAuth
ctx7 login --no-browser # Prints URL instead of opening browser
ctx7 logout # Clear stored tokens
ctx7 whoami # Show current login status (name + email)
`

Most commands work without login. Exceptions: skills generate always requires it; 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:

`export CONTEXT7_API_KEY=your_key
`

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
  • Repository format for skills is /owner/repo — e.g., ctx7 skills install /anthropics/skills
  • skills generate requires login — run ctx7 login first

More skills from upstash

context7-cliby upstashUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…context7-mcpby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…documentation-lookupby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…find-docsby upstashRetrieve current documentation and code examples for any library using the Context7 CLI.context7-docs-lookupby upstashUse Context7 to fetch up-to-date library documentation. Activates when the user asks about libraries, frameworks, API references, or needs code examples —…context7-mcpby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…ctx7-cliby upstashUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…docsby upstashRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. Use when writing code that depends on…

---

Source: https://github.com/upstash/context7/tree/HEAD/skills/context7-cli
Author: upstash
Discovered via: mcpservers.org

SKILL.md source

---
name: context7-cli
description: Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…
---

# 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",…

# context7-cliby upstash
Use the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

`npx skills add https://github.com/upstash/context7 --skill context7-cli`Download ZIPGitHub

## 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

```
`# Documentation
ctx7 library <name> <query> # Step 1: resolve library ID
ctx7 docs <libraryId> <query> # Step 2: fetch docs

# Skills
ctx7 skills install /owner/repo # Install from a repo (interactive)
ctx7 skills install /owner/repo name # Install a specific skill
ctx7 skills search <keywords> # Search the registry
ctx7 skills suggest # Auto-suggest based on project deps
ctx7 skills list # List installed skills
ctx7 skills remove <name> # Uninstall a skill
ctx7 skills generate # Generate a custom skill with AI (requires login)

# Setup
ctx7 setup # Configure Context7 MCP (interactive)
ctx7 login # Log in for higher rate limits + skill generation
ctx7 whoami # Check current login status
`
```

## Authentication

```
`ctx7 login # Opens browser for OAuth
ctx7 login --no-browser # Prints URL instead of opening browser
ctx7 logout # Clear stored tokens
ctx7 whoami # Show current login status (name + email)
`
```

Most commands work without login. Exceptions: `skills generate` always requires it; `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:

```
`export CONTEXT7_API_KEY=your_key
`
```

## 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

* Repository format for skills is `/owner/repo` — e.g., `ctx7 skills install /anthropics/skills`

* `skills generate` requires login — run `ctx7 login` first

## More skills from upstash
context7-cliby upstashUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…context7-mcpby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…documentation-lookupby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…find-docsby upstashRetrieve current documentation and code examples for any library using the Context7 CLI.context7-docs-lookupby upstashUse Context7 to fetch up-to-date library documentation. Activates when the user asks about libraries, frameworks, API references, or needs code examples —…context7-mcpby upstashThis skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code…ctx7-cliby upstashUse the ctx7 CLI to fetch library documentation, manage AI coding skills, and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…docsby upstashRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. Use when writing code that depends on…

---

**Source**: https://github.com/upstash/context7/tree/HEAD/skills/context7-cli
**Author**: upstash
**Discovered via**: mcpservers.org

Related skills 6

running-claude-code-via-litellm-copilot

★ Featured

Use when routing Claude Code through a local LiteLLM proxy to GitHub Copilot, reducing direct Anthropic spend, configuring ANTHROPIC_BASE_URL or ANTHROPIC_MODEL overrides, or troubleshooting Copilot proxy setup failures such as model-not-found, no localhost traffic, or GitHub 401/403 auth errors.

xixu-me 155k
AI & ML

skills-cli

★ Featured

Use when users ask to discover, install, list, check, update, remove, back up, restore, sync, or initialize Agent Skills, mention `bunx skills`, `npx skills`, `skills.sh`, or `skills-lock.json`, ask "find a skill for X", or want help extending agent capabilities with installable skills.

xixu-me 155k
AI & ML

repo-intake-and-plan

★ Featured

Narrow RigorPilot helper for README-first deep learning repo reproduction. Use when the task is specifically to scan a repository, read the README and common project files, extract documented commands, classify inference, evaluation, and training candidates, and return the smallest trustworthy reproduction plan to the main orchestrator. Do not use for environment setup, asset download, command execution, final reporting, paper lookup, or end-to-end orchestration.

lllllllama 127k
AI & ML

image-to-video

★ Featured

Animate any still image on RunComfy — this skill is a smart router that matches the user's intent to the right i2v model in the RunComfy catalog. Picks HappyHorse 1.0 I2V (Arena #1, native audio, identity preservation) for general animations, Wan 2.7 with `audio_url` for custom-voiceover lip-sync, or Seedance 2.0 Pro for multi-modal animation from image + reference video + reference audio. Bundles each model's documented prompting patterns so the caller gets sharper output without burning ite...

agentspace-so 121k
AI & ML

video-edit

★ Featured

Edit existing video on RunComfy — this skill is a smart router that matches the user's intent to the right edit model in the RunComfy catalog. Picks Wan 2.7 Edit-Video (general restyle / background swap / packaging swap, identity + motion preservation), Kling 2.6 Pro Motion Control (transfer precise motion from a reference video to a target character), or Lucy Edit Restyle (lightweight identity-stable restyle / outfit swap). Bundles each model's documented prompting patterns so the skill gets...

agentspace-so 121k
AI & ML

nano-banana-2

★ Featured

Generate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream in...

agentspace-so 121k
AI & ML