Context7
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.
Features
Why choose it
Trade-offs
Maintenance check
- 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
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.
Who it fits
- 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.
- 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.
How it differs
docs-mcp-server runs locally, and you index each library or internal doc yourself. Context7 is hosted, with a ready-made community library index.
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.
Compatibility
Quick start
Use cases
Alternatives
Featured in these lists
Comments
No comments yet. Be the first!