Skip to content

Context7 MCP Server

Pull current, version-specific library docs and code examples into Claude.

Officialby UpstashHosted or on your computerChecked November 8, 2026

Context7 is Upstash's MCP server that fetches current, version-specific documentation and code examples for a library and gives Claude only the parts that match your question. It answers without an account, and a free API key from the Context7 dashboard raises the rate limits. Add it when Claude keeps writing code for an older version of a framework you use.

Who is Context7 MCP for?

  • People building apps with Claude Code who keep getting outdated code
  • Developers on fast-moving frameworks such as Next.js, Tailwind CSS or Supabase
  • Teams that want answers grounded in official docs

What can you ask Context7 MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Use Context7 to show me how to protect my /dashboard pages in Next.js 16, with the current file names.
Prompt 2
Check Context7 for the current Supabase JavaScript sign-up syntax and fix my code. use library /supabase/supabase
Prompt 3
Look up the Tailwind CSS v4 docs in Context7 and update my config to match.

How to connect Context7 to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Codex, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the Context7 MCP server to Claude Code for me: run this command: claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp

Replace the YOUR_ value with your own key first.

Hosted address: https://mcp.context7.com/mcp

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

The API key is optional: drop the --header part to start without one. npx ctx7 setup (Node.js 22.13 or newer) signs you in, creates a key and installs a skill instead of, or next to, the MCP server.

How did we check Context7 MCP?

On November 8, 2026 we read the GitHub repo (MIT, 64,348 stars), npm (@upstash/context7-mcp 4.5.1, published November 6, 2026, about 1.02 million downloads in the week to November 7) and the plans page, then called the hosted endpoint without an API key. It listed 2 tools, resolved Next.js to /vercel/next.js with 6,926 code snippets, and returned the docs for Next.js 16.2.9. On November 22, 2026 npm listed @upstash/context7-mcp 4.7.3, published November 17, 2026, as the latest release.

Source: github.com/upstash/context7

What do people ask about Context7 MCP?

Is Context7 free?

For public libraries, yes. The Free plan lists 1,000 API calls a month and no private repositories; Pro costs $10 per seat a month for 2,000 calls per seat plus private repositories, with extra calls at $5 per 1,000 (context7.com/plans, checked November 8, 2026).

Does Context7 really return the current docs?

In our check on November 8, 2026 we asked how middleware works in Next.js 16.2.9. Context7 answered with the docs for proxy.js, the file Next.js says was formerly known as Middleware, which is exactly the kind of rename an older answer misses. Context7 also says its library entries are community-contributed, so it cannot guarantee every page.

Do I have to type use context7 in every prompt?

No. Add a standing rule to your CLAUDE.md file, such as 'Always use Context7 when I need library or API documentation', or run npx ctx7 setup, which installs a skill that calls it for library questions.

What does Context7 see of my project?

Only the question and library name your AI tool sends, and the tool descriptions tell the AI to leave out API keys, passwords, personal data and proprietary code. The MCP server's code is open source; the API backend, parsing and crawling engines behind it are private.

Is Context7 worth adding if I do not code?

It helps most then. When you build with Claude Code but cannot judge whether the code is current, Context7 hands Claude the real docs so you do not have to spot an outdated API yourself, and it needs no sign-in, which makes it an easy first server.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Using servers like Context7 from Claude Code? Our Claude Code course, in early access, goes from your first command to a landing page, an AI video and a working agent.