# Context7 Docs MCP Server

> Gets Claude Code the latest docs for any library so answers aren't outdated.

- **What it does:** Pulls up current, accurate documentation and code examples for whatever coding library or tool you're using, so Claude Code gives you correct setup steps and syntax instead of guessing from outdated training data.
- **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_147ddd597f2a3d0c22845cd2`
- **Creator:** Mariah Brunner (@itsmariahbrunner) on Instagram
- **Reach:** Creators' posts about it have 6,146 views
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Installs:** 1
- **Last updated:** 2026-11-14
- **Page:** https://orbitinbox.app/s/context7-docs-mcp-server

## What you'll need

- Context7: serves current library docs; needs a CONTEXT7_API_KEY from its dashboard

## Skill

---
name: context7-docs-lookup
description: Use when a question involves any library, framework, SDK, CLI or cloud service: fetch current docs and code examples via Context7 instead of memory.
---

# Context7 Documentation Lookup

## What this does
Retrieves current documentation and code examples from Context7 (https://context7.com) using the `resolve-library-id` and `query-docs` tools, so answers reflect recent API changes rather than training data.

## When to use
Whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service, even well-known ones (React, Next.js, Prisma, Express, Tailwind, Django, Spring Boot). Use for API syntax, configuration options, version migration, setup, library-specific debugging, and CLI usage. Use even when you think you know the answer, and prefer this over web search for library docs.

Examples:
- "How do I configure caching in Next.js 16?"
- "What's the syntax for Prisma's `findMany` with relations?"
- "Show me a working Tailwind v4 install for a Vite app."
- "How do I rate-limit with `@upstash/ratelimit`?"

## How to run it
1. Resolve the library ID. Call `resolve-library-id` with the library name and what to look up in its documentation. It returns matches with Context7 IDs (`/org/project` format), descriptions, snippet counts, and quality scores. Pick the best match, prioritizing official sources, name match, and high benchmark scores.
2. Query the docs. Call `query-docs` with the chosen library ID and what to look up, scoped to a single concept. If the question spans multiple distinct concepts, make a separate call per concept with the same library ID, unless the question is about how the concepts interact.
3. Answer. Cite the library ID you used and quote code examples verbatim when relevant.

If the user supplies a library ID in `/org/project` or `/org/project/version` format, skip step 1 and call `query-docs` immediately.

## Constraints
- Do not call either tool more than 3 times per question.
- Do not pass API keys, passwords, credentials, personal data, or proprietary code in the `query` argument, because it is sent to the Context7 API.
- Authentication uses the `CONTEXT7_API_KEY` environment variable. If requests fail with an auth error, the user can get a key at https://context7.com/dashboard.

## Output
An answer grounded in the retrieved docs, with the library ID cited and relevant code examples quoted verbatim.

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

Shared by Mariah Brunner, credited on Orbit.