$npx skillfedfor your agent

context7-cli

context7-cli brings three core capabilities to your workflow: retrieve up-to-date documentation for any library, install and manage AI coding skills, and configure Context7 MCP integration with your editor. Use it when your training data may be stale, you need to verify API signatures, or you're setting up Context7 for Claude Code, Cursor, or OpenCode.

context7-cli fetches current library documentation and manages AI coding skills from the command line.

AI-generated summary based on this skill's SKILL.md

59,866 2,867 MITupdated by upstash

Decision gist · record as of 2026-07-25

context7-cli fetches current library documentation and manages AI coding skills from the command line. context7-cli brings three core capabilities to your workflow: retrieve up-to-date documentation for any library, install and manage AI coding skills, and configure Context7 MCP integration with your editor. Use it when your training data may be stale, you need to verify API signatures, or you're setting up Context7 for Claude Code, Cursor, or OpenCode.

manual: git clone https://github.com/upstash/context7 → cp -r context7/skills/context7-cli ~/.claude/skills/context7-cli
skills/context7-cli/SKILL.md · version 72bfba09

Use it when

  • context7-cli lets you fetch current library documentation and API references via CLI.
  • context7-cli supports installation and management of AI coding skills from the registry.

Verify before relying

Read SKILL.md below before installing (4 files). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

upstash/context7/context7-cli · repository language: TypeScript

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What is context7-cli and what does it do?

context7-cli brings three core capabilities to your workflow: retrieve up-to-date documentation for any library, install and manage AI coding skills, and configure Context7 MCP integration with your editor. Use it when your training data may be stale, you need to verify API signatures, or you're setting up Context7 for Claude Code, Cursor, or OpenCode.

How do I fetch library docs with context7?

context7-cli lets you fetch current library documentation and API references via CLI. This is especially useful when your training data may be outdated or you need to verify the latest API signatures before writing code.

How to install ctx7 command line?

context7-cli supports installation and management of AI coding skills from the registry. Once installed, you can search for skills, manage them, and integrate context7-cli with your development environment for seamless access to documentation and skill management.

How do I configure context7 MCP for Cursor?

context7-cli enables configuration of Context7 MCP for code editors and AI agents. You can set up context7-cli integration with Cursor, Claude Code, or OpenCode to enable real-time documentation fetching and AI skill access directly within your editor.

Can context7-cli generate custom AI coding skills?

Yes, context7-cli supports generating custom AI coding skills with authentication. This advanced capability allows you to create tailored skills for your specific workflow and integrate them with your configured MCP setup.

What is the license for context7-cli?

context7-cli is released under the MIT license, making it freely available for personal and commercial use with minimal restrictions.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

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

```bash

Documentation

ctx7 library <name> <query> # Step 1: resolve library ID ctx7 docs

(truncated - see the full file via the links below)

File tree — 4 files
skills/context7-cli/SKILL.md
skills/context7-cli/references/docs.md
skills/context7-cli/references/setup.md
skills/context7-cli/references/skills.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Fetch current library documentation and API references via CLI”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

context7-docs
by upstash · upstash/context7

context7-docs pulls up-to-date documentation and working code examples for any library, framework, SDK, CLI tool, or cloud service directly into your workflow. Use it whenever you need API syntax, configuration details, version migration help, or setup instructions—especially for rapidly evolving tools where training data lags behind. The skill includes tools to resolve library identifiers and query documentation by concept, keeping you current without relying on potentially stale training data.

MITupdated Jul 2026
★ 59,866repo stars
find-docs
by upstash · upstash/context7

find-docs fetches live documentation, API references, and code examples for developer libraries and frameworks via the Context7 CLI. Resolve a library name to its ID, then query docs with specific questions about APIs, configuration, setup, or usage—perfect for verifying current syntax and avoiding outdated training data. Works without authentication; higher rate limits available with login.

MITupdated Jul 2026
★ 59,866repo stars
lookup
by melodic-software · melodic-software/claude-code-plugins

Context7 lookup retrieves up-to-date library documentation, API references, and code examples through either a CLI tool or MCP server interface. Use it whenever you need to verify current API syntax, configuration, setup steps, or version-specific guidance for any library, framework, SDK, or cloud service.

MITupdated Jul 2026
★ 4repo stars
context7-mcp
by upstash · upstash/context7

context7-mcp pulls live documentation for libraries and frameworks like React, Next.js, Prisma, and Supabase, ensuring your code answers stay current. Resolve library IDs, query specific concepts, and incorporate official docs into responses—perfect for setup questions, API references, and code generation tasks.

MITfor claude-code, codex, copilot, cursorupdated Jul 2026
★ 59,866repo stars
Context7
by dotneet · dotneet/claude-code-marketplace

Context7 fetches the latest library documentation to give you accurate, up-to-date API information and code examples. It eliminates hallucinations from outdated training data by retrieving version-specific details when you ask about library usage, request examples, or explicitly invoke it.

no license declared → metadata onlyupdated Jan 2026
★ 3repo stars
context7
by julianobarbosa · julianobarbosa/claude-code-skills

Context7 pulls up-to-date documentation and real code examples directly from official library sources, covering 1000+ frameworks and tools. Query by library name and topic to get exact API signatures, configuration details, and working patterns for your specific version—no guessing, no hallucinated APIs.

MITupdated Jul 2026
★ 5repo stars

More skills find-docs (Apache-2.0) · Context7 (unlicensed) · find-docs (MIT)

Tags
cli-tooldocumentation-fetcherai-coding-skillsmcp-integrationeditor-setuplibrary-lookupskill-registryapi-reference-tool