AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Code Assistant/
Context7
Context7 logo

Context7

Active·★ 65.0k·MIT·Updated 2026-11-17
★ Most Popular★ Essential★ Trending

Context7, by Upstash, feeds up-to-date, version-specific library documentation and code examples into your AI coding assistant's context. It addresses a common failure of LLMs: code based on year-old training data, hallucinated APIs and answers written for old package versions.

It is useful for anyone using Cursor, Claude Code, OpenCode or other coding agents with fast-moving libraries. You can add "use context7" to a prompt, name a specific library ID such as /vercel/next.js to skip the matching step, or mention a version (for example Next.js 14) to get matching docs. It works in two modes: a CLI plus skill (`ctx7`) that guides the agent to fetch docs without MCP, or an MCP server that exposes resolve-library-id and query-docs tools.

Getting started: run `npx ctx7 setup` (Node.js 18+), which signs you in with OAuth, creates an API key and installs the skill or MCP configuration for your agent; flags such as `--cursor` and `--claude` target a specific client. You can also point any MCP client at https://mcp.context7.com/mcp with your API key. A free API key gives higher rate limits.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-11-14.

License
MIT
Latest release
@upstash/[email protected] · 2026-11-12
Last commit
2026-11-14
Contributors
148
Forks
3,250
Open issues and PRs
44
First published
2025-03-26
npm package
ctx7 0.11.1 · 58,932 downloads last week

Source: GitHub, npm and PyPI public APIs.

#LLM#Code Generation#API Documentation#Developer Tools#Model Context Protocol#Coding
$ Install
$ npx ctx7 setup
↗ Visit site★ GitHub
01

Features

01Fetches current, version-specific library documentation on demand
02Add "use context7" to any prompt — zero additional configuration
03Covers thousands of popular libraries with up-to-date docs
04Works as a hosted MCP server (no local install required)
05Integrates with Claude Desktop, Cursor, Windsurf, and VS Code
02

Why choose it

+Directly reduces hallucinated APIs and outdated examples by grounding the agent in current, version-specific docs.
+Very low setup effort: one command configures the major coding agents.
+Works with or without MCP (CLI plus skill mode), and with 30+ MCP clients.
+Large community-contributed library index, and library authors can submit their own projects.
03

Trade-offs

!Only the MCP server is open source; the API backend, parsing engine and crawler are private, so you depend on Upstash's hosted service.
!Documentation is community-contributed, and the project itself does not guarantee its accuracy, completeness or security.
!Requests go to an external service, which may matter for teams with strict data policies; heavier use needs an API key for higher rate limits.
05

Maintenance check

ActiveChecked: 2026-11-08
Last commit
2026-11-06
Commits, last 90 days
100+
Releases, last 90 days
30
Latest release
mcpb-v4.5.1 (2026-11-06)
Open issues
57
Recent issues with at least one comment
12/14
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 10, 11, 13, 6, 12, 10, 33, 23, 39, 30, 45, 0

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

Most discussed open issues

  • #339 🧹 Help us clean up duplicate (or unnecessary) libraries in Context798 comments · 2025-06-26
  • #214 Publish an official docker image8 comments · 2025-05-21
  • #2069 [Feature]: Unified repo and docs site documentation5 comments · 2026-03-02
  • #3598 Remove password and mask libraries, per-package management in monorepo2 comments · 2026-10-30
  • #2820 Support DocFX docs2 comments · 2026-06-24

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

04

Who it fits

Pick it if
  • You use Cursor, Claude Code or another coding agent with fast-moving public libraries and want current, version-specific docs and examples.
  • You want the least setup: `npx ctx7 setup` signs you in and configures the skill or MCP server for your agents.
  • You want to work with or without MCP: the CLI plus skill mode fetches docs without an MCP server.
Look elsewhere if
  • You need docs for internal or private libraries: a self-hosted index fits better.
  • Your data policy rules out sending queries to an external service: requests go to Upstash's hosted backend.
  • You need a fully open-source stack: only the MCP server is open source; the API backend, parser and crawler are private.
06

How it differs

docs-mcp-server logovs docs-mcp-server★ 1.9k

docs-mcp-server runs locally, and you index each library or internal doc yourself. Context7 is hosted, with a ready-made community library index.

Full comparison →
git-mcp logovs git-mcp★ 8.5k

GitMCP reads a specific GitHub repo or Pages site by URL, preferring llms.txt. Context7 resolves a library ID from its own index and can match a version.

Full comparison →
07

Compatibility

Claude Desktop
Native
Verified via docs
Cursor
Native
Verified via docs
Windsurf
Supported
Verified via docs
VS Code
Supported
Verified via docs
08

Quick start

1
$ npx ctx7 setup
09

Use cases

↳Preventing LLMs from hallucinating deprecated or non-existent API methods
↳Getting accurate code examples for the exact library version in use
↳Keeping AI coding assistants up-to-date across fast-moving frameworks
10

Alternatives

⚡Top VS:
VSgit-mcp★8.5k→VSdocs-mcp-server★1.9k→VSOpen Interpreter★68.9k→VSDeepCode★16.8k→
git-mcp logo
git-mcp★ 8.5k
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
VSCompare→
docs-mcp-server logo
docs-mcp-server★ 1.9k
Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools
VSCompare→
Open Interpreter logo
Open Interpreter★ 68.9k
A coding agent for the terminal, optimized for low-cost and open models. Forked from OpenAI's Codex, it can emulate other agent harnesses and runs commands in a native sandbox.
VSCompare→
DeepCode logo
DeepCode★ 16.8k
DeepCode is an open-source coding agent from HKUDS for real software engineering: goal-driven loops, evidence-based verification, durable sessions, and Paper2Code research reproduction.
VSCompare→
pal-mcp-server logo
pal-mcp-server★ 11.8k
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
VSCompare→
Figma-Context-MCP logo
Figma-Context-MCP★ 16.2k
MCP server to provide Figma layout information to AI coding agents like Cursor
VSCompare→
awesome-vibe-coding logo
awesome-vibe-coding★ 5.4k
A curated list of vibe coding references, collaborating with AI to write code.
VSCompare→
refact logo
refact★ 3.5k
AI Agent that handles engineering tasks end-to-end: integrates with developers’ tools, plans, executes, and iterates until it achieves a successful result.
VSCompare→
See all alternatives →

Featured in these lists

  • Best MCP Servers for Up-to-Date Docs and Code Context

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
upstash /
context7
↗

Up-to-date library docs for your AI coding assistant

65.0k3.3kMIT
Last commit1d ago
StatusActive
CategoryCode Assistant
Contributors148
Latest release@upstash/[email protected]
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.