Context7

upstash/context7

An MCP server that lets Claude Code, Cursor and similar tools fetch up-to-date official docs and examples for libraries, so AI writes fewer outdated APIs.

Why pick itSet it up once, then add "use context7" to a prompt. Especially useful for fast-moving frameworks like Next.js and React.

Install

GitHub
upstash/context7
Website
context7.com
Stars
★ 63.6k
License
MIT
Language
TypeScript
Last push
Oct 23, 2026
Category
MCP & Agents

Good for

Getting started

  1. Run claude mcp add context7 -- npx -y @upstash/context7-mcp (or npx ctx7 setup, which needs Node.js 22.13+)
  2. Add "use context7" to your prompt, for example when asking about Next.js or Supabase
  3. To trigger it automatically, add a rule in CLAUDE.md telling the agent to always use Context7 for library docs

Before you install

A free API key from context7.com/dashboard is recommended for higher rate limits.

Summarized by AI from the project docs; check the official docs before relying on it.

Similar tools

More in MCP & Agents →

Source GitHub · Updated Oct 24, 2026 · All rights belong to the original creators