# Context7 MCP for library documentation

> Gives your AI coding assistant up-to-date library docs instead of outdated guesses.

- **What it does:** Pulls up the latest official documentation for any coding library so your AI coding assistant stops guessing from outdated knowledge. It also helps you set up Context7 in editors like Claude Code or Cursor.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_c15395e68fc3c62bab4dea3a`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Reach:** Creators' posts about it have 6,236 views
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/context7-mcp-for-library-documentation-itsmariahbrunner

## What you'll need

- Context7: serves up-to-date library docs through the ctx7 CLI; a free account login raises rate limits
- Node.js / npm: runs the ctx7 command-line tool

## Skill

---
name: context7-cli
description: Use when you need current library docs or Context7 setup: fetch docs with the ctx7 CLI or configure Context7 MCP for your editor.
---

# ctx7 CLI

## What this does
The Context7 CLI does two things: it fetches up-to-date library documentation, and it sets up Context7 MCP for your editor.

## When to use
- The user mentions "ctx7" or "context7".
- The user needs current docs for any library.
- The user needs Context7 set up for their AI coding agent.

## How to run it
1. Make sure the CLI is up to date: `npm install -g ctx7@latest`
   Or run it without installing: `npx ctx7@latest <command>`
2. To set up Context7 for the editor, run `ctx7 setup` and have the user log in when asked.
3. To fetch docs, run `ctx7 library` to find the library and get its library ID.
4. Then run `ctx7 docs` with that library ID and the user's question ({library} / {question}). Run `ctx7 --help` to confirm the exact arguments.

## Output
Either a configured Context7 setup, or the current documentation for {library}, summarised for the user's question.

Credit: Based on public content by upstash, packaged by Orbit.

Shared by Mariah Brunner, credited on Orbit.