Skip to main content
MCP server CX Codex

Context7 · upstash — Claude Code MCP server: version-aware library documentation

Context7 brings current, version-aware library docs and code examples into an AI coding agent. Use it when generated answers rely on stale or invented APIs.

MIT 5,563 installs ★ 65,245 updated 2026-10-29

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http context7-mcp https://context7-mcp--upstash.run.tools
Open on GitHub

What Context7 does

Context7 supplies documentation matched to a library version, along with code examples for the task at hand. Its MCP tools are resolve-library-id and query-docs: one identifies the library, while the other retrieves relevant documentation.

The server connects over HTTP and is listed for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and other supported clients. Add use context7 to a request when you want the agent to consult the documentation. An API key is recommended for higher rate limits; the separate CLI + Skills mode requires Node.js 22.13 or newer.

What it helps with

  • look up documentation for a library version
  • check whether an API exists
  • bring current code examples into an agent prompt
  • avoid code based on stale package knowledge

Example prompts for the agent

  • Build a Next.js proxy that checks JWT cookies and redirects unauthenticated users; consult Context7 for the current API.
  • Show the current email/password sign-up API for Supabase, and use use context7 before answering.
  • Configure a Cloudflare Worker to cache JSON responses and ask Context7 for the relevant documentation.

How to install Context7

Platform CLI: remote server

claude mcp add --transport http context7-mcp https://context7-mcp--upstash.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Context7

How do I install Context7 in Claude Code?

Run claude mcp add --transport http context7-mcp https://context7-mcp--upstash.run.tools, then run claude mcp add --transport http context7 https://context7-mcp--upstash.run.tools.

What does Context7 do?

It places version-aware library documentation and code examples in the agent context. The server exposes resolve-library-id and query-docs for that lookup.

Do I need an API key to use Context7?

An API key is recommended for higher rate limits. The separate CLI + Skills mode requires Node.js 22.13 or newer.

Similar MCP servers

MCP servers catalog →

Context7 by other authors comes first.

Context7 geobio Context7 puts version-aware library documentation and code examples into an agent’s context. Use it when API details need a current reference. CX Codex +1 1,447installs Context7 docker Context7 injects targeted framework documentation and working code snippets directly into your LLM prompt. CX Codex +1 setup-context7-mcp NeoLabHQ The setup-context7-mcp skill walks the agent through setting up the Context7 MCP server and writes the library IDs into CLAUDE.md so code follows current docs. CX Codex +1 1,200installs context7-auto-research davila7 The context7-auto-research skill retrieves current library and framework references through the Context7 API. Use it when a Claude Code answer needs documentation for React, Next.js, Prisma, or another library. CX Codex +1 709installs Context7-Expert official github The Context7-Expert subagent checks library documentation through Context7 and uses current syntax in its answers. Use it for framework and package questions. CX Codex +1 ★ 41,430repo stars context7-docs rohitg00 context7-docs pulls up-to-date library documentation through Context7 into a Claude Code session. Handy when the model starts inventing APIs or sticks to outdated signatures. ★ 2,858repo stars context7-docs-fetcher normalnormie context7-docs-fetcher is a Claude Code plugin that retrieves Context7 documentation for specific libraries and frameworks. The agent steps in for implementation questions or setup guidance. ★ 1,013repo stars microsoft-docs official github microsoft-docs finds official Microsoft documentation, tutorials, and code samples for Azure, .NET, VS Code, and GitHub work. Use it when an agent needs a source tied to a specific technology or version. CX Codex +1 14,881installs

From the same set5

More in the catalog

Project sponsors

Companies that keep this analytics open