Mindket

Context7

Newversion 1 · updated
Star64.3k

Overview

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 . 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.

At a glance

Runs in
  • 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
Start with
npx ctx7 setup

Platform

CursorCode editor
Claude CodeCoding agent
OpenCodeCoding agent

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
ModeWhat setup addsHow your agent uses it
CLI and skillsA skillIt runs ctx7 commands, with no MCP at all
MCP, this listingA server registered with your agentIt calls Context7’s tools on Upstash’s hosted server
  1. You add use context7 to a coding question
  2. resolve-library-id finds the library’s Context7 ID
  3. query-docs pulls docs and examples for your question
  4. 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
IndustryWho uses itHow they use itExample
Web developmentFront-end and full-stack developers on fast-moving frameworks such as Next.jsAsk for code that matches the framework version they runA developer upgrading a framework asks how the new routing works and gets code for the version named.
Backend and SaaSDevelopers wiring in an SDK such as Supabase’sSet up an SDK they have not used before from its current docsA developer asks for basic authentication with Supabase and names its library ID, so the matching step is skipped.
Agencies and freelancersDevelopers who change stacks from one client to the nextPull each client’s docs instead of trusting what the model remembersA freelancer moving from a Next.js job to a Supabase one names the library and version in each question.
Software teamsLeads and reviewers who check code an agent wroteAdd a rule so agents use Context7 unasked, then trace a suggested call to its sourceA 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
NeedDetail
Node.js22.13 or newer, for the setup command
A Context7 API keyFree from your Context7 dashboard. Upstash recommends one for higher rate limits.
A coding agentCursor, 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.
npx ctx7 setup

To take the setup out again:

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.

How do I set up a Next.js 16 proxy? use context7
Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.
Its two tools
ToolWhat it takesWhat it returns
resolve-library-idYour question and a library nameMatching Context7 IDs
query-docsAn ID such as /vercel/next.js and your question, plus an optional languageDocs 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:

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.

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:

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

A server on the web: your app connects to its address. Put your own value where a line says <Authorization>.

Run this once in a terminal:

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

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

https://mcp.context7.com/mcp

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

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

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

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

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

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

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

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

NeedsAuthorization

Toolsresolve-library-idquery-docs

What’s new

  • Version 1 · 2026-11-03

Compare with similar

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

ProductStarsActivityLicenseLast change
Context7 This page64,331ActiveMIT
REA: Reverse Engineer AnythingShares mcp457,771ActiveMIT
Playwright MCPShares mcp39,312ActiveApache-2.0
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.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

ida-silverContext7 MCP Server: Up-to-date documentation for LLMs and AI code editors3 pointsCDevbeen 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 #Cursor2 likes · 1 replyfrankcAWS 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…GitHub Trending JS/TS📦 upstash / context7 ⭐ 61,607 (+47) 🗒 TypeScript Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors2 likesnextworddevHow well do coding agents use your library?context7 is open source: https://github.com/upstash/context7365tipuPlatforma Context7 -- aktuální dokumentace pro AI agenty1 likemsikora6 weeks of Claude CodeHaven'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/context7Retweeted by Theo - t3.gg [UNOFFICIAL]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.1 replybdangubicAsk HN: What are your current programming pet peeves?claude mcp add context7 -- npx -y @upstash/context7-mcpSharon MachlisThe 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...1 likejameshiewAsk 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",…Rob Richardsongithub.com/upstash/cont... - context7 #MCP server: get updated examples and docs in an #LLM prompt.

Searched

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar projects

See all in Developer

TrendRadar

sansan0 · Kit

An open source news and public opinion monitor. It reads Chinese hot-search lists and your RSS feeds, keeps what matches your keywords or an AI score, and push…

New63.5k

Axiocairn MCP

cplj · Kit

Checks portfolio risk for your holdings from an AI chat: concentration, volatility and beta to SPY, plus scenarios under stated assumptions. A hosted MCP serve…

New86

ECC by affaan-m

affaan-m · Skill

Affaan Mustafa’s plugin of agents, skills, commands and hooks that gives Claude Code, Codex and other coding agents a routine of planning, test-first work, fre…

New299k