upstash avatar

Context7 Mcp

This pulls live documentation from Context7 instead of making Claude rely on potentially outdated training data. You'd use it whenever someone asks about library setup, API references, or code examples for frameworks like React, Next.js, Prisma, or Supabase. It works in two steps: first resolves which specific library and version the user is asking about, then fetches the relevant docs for that exact question. The version awareness is honestly the killer feature here since framework APIs change fast enough that training data gets stale quickly. It's essentially giving Claude a fresh reference manual instead of forcing it to remember everything from whenever it was last trained.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
9
skills.sh installs
6.8K
GitHub stars
64.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add upstash/context7 --skill context7-mcp --agent claude-code

Installs into .claude/skills of the current project.

Files

When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.

When to Use This Skill

Activate this skill when the user:

  • Asks setup or configuration questions ("How do I configure a Next.js proxy?")
  • Requests code involving libraries ("Write a Prisma query for...")
  • Needs API references ("What are the Supabase auth methods?")
  • Needs an exact fact from a library's source: a default value, a signature, or where an error comes from
  • Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)

How to Fetch Documentation

Step 1: Resolve the Library ID

Call resolve-library-id with:

  • libraryName: The library name extracted from the user's question
  • query: What to look up in the library's documentation (improves relevance ranking)

Step 2: Select the Best Match

From the resolution results, choose based on:

  • Exact or closest name match to what the user asked for
  • Higher benchmark scores indicate better documentation quality
  • If the user mentioned a version (e.g., "React 19"), prefer version-specific IDs

Step 3: Fetch the Documentation

Sponsors

Details

Repository
github.com/upstash/context7
Categories
Frontend Development, Backend & APIs, AI & Agent Building, Databases
First seen
Apr 16, 2026

More from upstash/context7

All 4
1lynx-community avatarlynx-devtoollynx-community/skillsUse when working with Lynx DevTool or debugging a Lynx app, page, or device, especially when the task mentions clients or sessions, CDP or App commands, DOM/CSS6.7Kskills.sh installs
2aws avataraws-transformaws/agent-toolkit-for-awsPerforms code upgrades, migrations, and transformations using the AWS Transform (ATX) CLI. Use when upgrading language versions, migrating AWS SDKs, migrating f6.5Kskills.sh installs
3assistant-ui avatartoolsassistant-ui/skillsRegisters LLM tools and renders custom tool-call UI in assistant-ui (@assistant-ui/react). Covers the current authoring model: a "use generative" file exporting6.5Kskills.sh installs
4freshtechbro avatarmotion-framerfreshtechbro/claudedesignskillsModern animation library for React and JavaScript. Create smooth, production-ready animations with motion components, variants, gestures (hover/tap/drag), layou6.5Kskills.sh installs
5assistant-ui avatarprimitivesassistant-ui/skillsBuilds and customizes assistant-ui chat UI from composable, unstyled @assistant-ui/react primitives that follow Radix-style part composition. Use when assemblin6.5Kskills.sh installs
6assistant-ui avatarruntimeassistant-ui/skillsGuide to the assistant-ui runtime system, single-thread state, and the imperative aui client API in @assistant-ui/react. Use when creating a runtime (useLocalRu6.5Kskills.sh installs