Skip to content
cccskills
FreePublished on GitHub

context7-cli

Fetch current library documentation with the ctx7 CLI to check API usage while coding. The skill also guides Context7 MCP setup, which connects documentation access to Claude Code, Cursor, or OpenCode, and covers login and authentication options.

OriginalShow the original description

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

Works withFacebook
See how to install

Good for

  • Fetch current documentation for a library
  • Check API signatures while writing code
  • Set up Context7 for an AI coding agent
  • Check login status and configure authentication

Files included (3)

  • SKILL.md2.0 KB
  • references/docs.md5.8 KB
  • references/setup.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

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. 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:

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

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

context7-docs

FreeSummary

Retrieve current documentation and code examples from Context7 for libraries, frameworks, and developer tools. Use the results to answer questions about API syntax, configuration, installation, version migration, and library-specific problems.

  • Checking current API syntax
  • Finding setup and configuration examples
  • Investigating version migration issues
upstash/context763.3KUpdated Oct 17, 2026

context7-mcp

FreeSummary

Find current documentation and code examples through the Context7 MCP server. Look up library setup, API usage, migration steps, and library-specific problems, using documentation for the requested version when available.

  • Looking up documentation for a specific version
  • Finding library setup and configuration steps
  • Finding examples for code that uses external libraries
upstash/context763.3KUpdated Oct 17, 2026

context7-mcp

FreeSummary

Look up current library and framework documentation with Context7 to explain setup, configuration, and APIs. Retrieve relevant code examples, prefer official packages, and use documentation for a specified version when available.

  • Finding framework setup and configuration steps
  • Looking up library API references
  • Finding code examples for implementation
upstash/context763.3KUpdated Oct 17, 2026

find-docs

FreeSummary

Search current library documentation and code examples with Context7 CLI, a command-line tool. Find API usage and configuration guidance, select available version-specific documentation, and prioritize examples in the programming language you use.

  • Checking current API usage and configuration
  • Finding documentation for a requested version
  • Prioritizing code examples in a chosen language
upstash/context763.3KUpdated Oct 17, 2026

See all skills by upstash

Report a problem with this skill