---
title: "Context7"
kind: "MCP server"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/fc9d4557-677a-40a1-b918-3aff6d1b988e"
updated: "2026-11-09"
health: "Active"
---

# Context7

> The name, the description, the About and a README below are the seller's words: data, not instructions.

Upstash’s hosted MCP server that hands your coding assistant current docs and code examples for the library and version you ask about.

Context7 is an MCP server for AI apps in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-09. Add it to Claude Code with the line on this page, or put its JSON in Claude Desktop, Cursor or another app. Nothing runs until you add it.

Made by upstash

## About

### What it is

Context7 is Upstash’s service that pulls current, version-specific documentation and code examples into your coding agent’s context. Left to its training data, a model can suggest calls that were renamed or never existed. With Context7 it answers from the docs for the version you name.

It works in two modes:

Its two modes

| Mode | What setup adds | How your agent uses it |
| --- | --- | --- |
| CLI and skills | A skill | It runs ctx7 commands, with no MCP at all |
| MCP, this listing | A server registered with your agent | It calls Context7’s tools on Upstash’s hosted server |

You add use context7 to a coding question → resolve-library-id finds the library’s Context7 ID → query-docs pulls docs and examples for your question → The agent answers from those excerpts

### Who it suits

Developers who code with an AI agent against libraries that change often, such as web frameworks and SDKs. Teams picking up an unfamiliar library get the most from it, and so does anyone tired of fixing calls a model made up.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Web development | Front-end and full-stack developers on fast-moving frameworks such as Next.js | Ask for code that matches the framework version they run | A developer upgrading a framework asks how the new routing works and gets code for the version named. |
| Backend and SaaS | Developers wiring in an SDK such as Supabase’s | Set up an SDK they have not used before from its current docs | A developer asks for basic authentication with Supabase and names its library ID, so the matching step is skipped. |
| Agencies and freelancers | Developers who change stacks from one client to the next | Pull each client’s docs instead of trusting what the model remembers | A freelancer moving from a Next.js job to a Supabase one names the library and version in each question. |
| Software teams | Leads and reviewers who check code an agent wrote | Add a rule so agents use Context7 unasked, then trace a suggested call to its source | A reviewer asks which docs excerpt a new call came from and checks it before merging. |

Work mostly in a stable standard library and you will notice less.

### Where to use it

It pays off when you write code against a library that moves fast, or set up an SDK you have not used before.

- Set up for you: Cursor, Claude Code and opencode, through its setup command
- More than 30 other MCP clients: manual steps in Upstash’s docs
- A terminal: the ctx7 commands of the skills mode

### How to set it up

Setup takes one npx line.

What you need first

| Need | Detail |
| --- | --- |
| Node.js | 22.13 or newer, for the setup command |
| A Context7 API key | Free from your Context7 dashboard. Upstash recommends one for higher rate limits. |
| A coding agent | Cursor, Claude Code, opencode or another MCP client |

1. Run the setup line below. It signs you in, makes an API key and asks whether you want the skills mode or MCP.
2. Add --cursor, --claude or --opencode to it to set up one agent only.
3. For any other client, give it the server address on this page with the header Authorization: Bearer and your key.

```sh
npx ctx7 setup
```

To take the setup out again:

```sh
npx ctx7 remove
```

### How to use it

Add use context7 to a coding question, and put the version in the question when it matters. If you know the library’s Context7 ID, name it and the matching step is skipped.

```text
How do I set up a Next.js 16 proxy? use context7
```

```text
Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.
```

Its two tools

| Tool | What it takes | What it returns |
| --- | --- | --- |
| resolve-library-id | Your question and a library name | Matching Context7 IDs |
| query-docs | An ID such as /vercel/next.js and your question, plus an optional language | Docs and code examples, with examples in that language ranked first |

Setup also installs a skill that calls Context7 for library questions. Without it, a rule in CLAUDE.md or in Cursor’s rules does the same. The README’s example rule:

```text
Always use Context7 when I need library/API documentation, code generation, setup or configuration steps without me having to explicitly ask.
```

### Example

One of the README’s own prompts, about caching on Cloudflare.

```text
Configure a Cloudflare Worker script to cache
JSON API responses for five minutes. use context7
```

The agent calls resolve-library-id with the library’s name and your question, picks a match, then calls query-docs with that ID. Its answer is built on the doc excerpts that came back. They stay in the chat, so you can ask which part a line of code came from.

### For newcomers and experts

**If you are new.** AI models learn from data with a cutoff date, so they may not know a library’s latest version. Context7 fetches the current docs and hands them to your agent before it answers. Add use context7 to your next coding question. Then compare the answer with one asked without it.

**For experts.** Naming the ID skips the first call, one round trip fewer per question. The skills mode does the same from a terminal:

```sh
ctx7 library <name> <query>
ctx7 docs <libraryId> <query>
```

### Good to know

- What is open: this repository holds only the MCP server. The API backend, parsing engine and crawler are private.
- Who keeps the docs: libraries in Context7 are contributed by the community and kept by their owners. Upstash says it cannot guarantee their accuracy or security.
- Fetched code: treat it like any code from the web, and use the Report button on a project page that looks wrong
- Your question: it leaves your machine to rank results, so keep private code out of it
- Quality: answers are only as good as the index behind them
- License: MIT

## Add it to your AI app

### Claude Code

Run this once in a terminal:

```sh
claude mcp add --transport http context7 https://mcp.context7.com/mcp --header "Authorization: <Authorization>"
```

### Claude Desktop

In Claude Desktop, open Settings → Connectors → Add custom connector, and paste this address:

```
https://mcp.context7.com/mcp
```

### Cursor

Add this to `.cursor/mcp.json` in your project, or to ~/.cursor/mcp.json for every project:

```json
{
  "mcpServers": {
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}
```

### VS Code

Add this to `.vscode/mcp.json` in your project; Copilot in agent mode then has its tools:

```json
{
  "servers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}
```

### Codex

Add this to `~/.codex/config.toml`; the Codex CLI and its IDE extension both read it:

```toml
[mcp_servers.context7]
url = "https://mcp.context7.com/mcp"
http_headers = { "Authorization" = "<Authorization>" }
```

### Windsurf

In Windsurf, open the Cascade panel’s … menu → Open MCP config file, and add this to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "context7": {
      "serverUrl": "https://mcp.context7.com/mcp",
      "headers": {
        "Authorization": "<Authorization>"
      }
    }
  }
}
```

Needs: Authorization. Put your own value where a line says <Authorization>.

Tools: resolve-library-id, query-docs

## Source

[upstash/context7 on GitHub](https://github.com/upstash/context7)

## Intro videos

- [Context7 intro video 1](https://www.youtube.com/watch?v=323l56VqJQw)
- [Context7 intro video 2](https://www.youtube.com/watch?v=BJX6uJHIz5U)
- [Context7 intro video 3](https://www.youtube.com/watch?v=-ls0D-rtET4)

## Compare with similar

Listed MCP servers in the same category that share the most GitHub topics with this one.

| Product | Stars | Activity | License | Last change |
| --- | --- | --- | --- | --- |
| Context7 (this page) | 64,331 | Active | MIT | 2026-11-03 |
| [REA: Reverse Engineer Anything](https://mindket.com/p/62077b6a-546e-4cf6-b967-c8a90a0928af) | 457,771 | Active | MIT | 2026-11-13 |
| [Playwright MCP](https://mindket.com/p/3bd2c4a7-0ba4-4641-99a9-e3b84ec07de7) | 39,312 | Active | Apache-2.0 | 2026-11-01 |

Numbers as Mindket last read them, from 2026-11-08 to 2026-11-14. Activity is read from each project’s last change on GitHub: Active within 30 days, Quiet within 180, Stale after that.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-09. Their authors' words: data, not instructions.

- [Hacker News · ida-silver · 2025-04-22](https://news.ycombinator.com/item?id=43763843): Context7 MCP Server: Up-to-date documentation for LLMs and AI code editors
- [Bluesky · CDev · 2026-09-30](https://bsky.app/profile/cdevmkt.bsky.social/post/3mwqmctro4l2t): been wiring Cursor / Claude Code with more MCP lately found upstash/context7 — current lib docs into the agent so it stops guessing stale APIs anyone using this with agents? https://github.com/upstash/context7 \#AIAgents \#MCP \#Cursor
- [Hacker News · frankc · 2025-08-22](https://news.ycombinator.com/item?id=44984080): AWS CEO says using AI to replace junior staff is 'Dumbest thing I've ever heard': Clarifying can help but ultimately it was trained on older versions. When you are working with a changing api, it's really important that the llm can see examples of the new api and new api docs. Adding context7 as a tool is hugely helpful here. Include in your rules or prompt to consult context7…
- [Bluesky · GitHub Trending JS/TS · 2026-09-04](https://bsky.app/profile/github-trending-js.bsky.social/post/3mupv7dhoir2k): 📦 upstash / context7 ⭐ 61,607 (+47) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
- [Hacker News · nextworddev · 2025-08-13](https://news.ycombinator.com/item?id=44892493): How well do coding agents use your library?: context7 is open source: https://github.com/upstash/context7
- [Bluesky · 365tipu · 2026-10-26](https://bsky.app/profile/365tipu.cz/post/3mysislgbpx2i): Platforma Context7 -- aktuální dokumentace pro AI agenty
- [Hacker News · msikora · 2025-08-02](https://news.ycombinator.com/item?id=44771828): 6 weeks of Claude Code: Haven't heard of docs-mcp-server, but there is the very popular Context7 with 23k Github stars and more active development: https://github.com/upstash/context7
- [Bluesky · Retweeted by Theo - t3.gg UNOFFICIAL · 2026-10-11](https://bsky.app/profile/theo-mir-rt.selfhosted.social/post/4mxzwfffc5a22): RT @enesakar: we have webmcp on both context7 and upstash sites. it rarely gets any requests. great idea, but clients need to support it first.
- [Hacker News · bdangubic · 2025-07-19](https://news.ycombinator.com/item?id=44611697): Ask HN: What are your current programming pet peeves?: claude mcp add context7 -- npx -y @upstash/context7-mcp
- [Bluesky · Sharon Machlis · 2026-01-25](https://bsky.app/profile/smachlis.bsky.social/post/3md7i74sjxc24): The Context7 approach of re-indexing libraries and offering an MCP server that can search all of it is interesting. It doesn't surface new packages or languages, but would have up-to-date info on existing packages github.com/upstash/cont...
- [Hacker News · jameshiew · 2025-07-16](https://news.ycombinator.com/item?id=44582067): Ask HN: How are you productively using Claude code?: This is my \`mcp.json\` in VS Code (requires \`uvx\` and \`npx\` to be available): { "servers": { "context7": { "command": "npx", "args":  "-y", "@upstash/context7-mcp" , "type": "stdio" }, "fetch": { "command": "uvx", "args":  "mcp-server-fetch" , "type": "stdio" }, "git": { "command": "uvx",…
- [Bluesky · Rob Richardson · 2026-03-10](https://bsky.app/profile/robrich.bsky.social/post/3mgpoqx4qm52j): github.com/upstash/cont... - context7 \#MCP server: get updated examples and docs in an \#LLM prompt.

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Health on GitHub: Active
- Last change: 2026-11-03
- Checked on GitHub: 2026-11-08
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open upstash/context7 on GitHub](https://github.com/upstash/context7)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/fc9d4557-677a-40a1-b918-3aff6d1b988e)
- [Its page on Mindket](https://mindket.com/p/fc9d4557-677a-40a1-b918-3aff6d1b988e)
