Context7
Use case: MCP
MCP server that injects up-to-date, version-specific library docs into coding agents' context.
Context7 is a documentation service for coding agents, built by Upstash. The README explains the problem: language models rely on year-old training data, so they suggest outdated examples, invent APIs and give generic answers for old package versions. Context7 pulls current, version-specific documentation and code examples from the source and places them in the agent's context. The README shows prompts that end with "use context7" and ask about libraries such as Next.js, Supabase or Cloudflare Workers.
It works in two modes. In CLI plus Skills mode, a skill teaches the agent to fetch docs with the ctx7 command. In MCP mode, a Context7 MCP server exposes two tools: resolve-library-id turns a library name into a Context7 library ID, and query-docs retrieves documentation for that ID and a question, optionally ranking examples in your programming language. npx ctx7 setup handles authentication and installation, and the README lists Claude, ChatGPT, Cursor and VS Code among the clients. In this directory it is the documentation tool in the MCP category, useful alongside any coding agent.
The repository is MIT licensed and covers the MCP server, CLI and SDKs. The README recommends a free API key for higher rate limits, and the plans page lists a free plan for public repositories, a per-seat Pro plan for private repositories and teams, and a custom Enterprise plan; see the official plans page for current limits and prices. The README also warns that library documentation is community-contributed, and that Context7 cannot guarantee its accuracy, completeness or security, so generated code should still be checked.
Like Context7? Find tools like it on X.
Follow @AgentstackDaily, plus the free Top 25 Agent Tools checklist.
At a glance
- Category
- MCP
- Best for
- Best MCP servers and tools in 2026 · MCP use cases
- Official site
- github.com
- Link checked
- November 4, 2026
- Data
- JSON
How Context7 fits an agent workflow
In an agent stack, Context7 belongs to the MCP category, which covers the tool-access layer, where an agent reaches external data and actions through the Model Context Protocol. You will also find it in our curated list: Best MCP servers and tools in 2026. Other MCP entries worth a look alongside it include MCP Python SDK, MCP Inspector and FastMCP.
Context7 alternatives
- Model Context Protocol spec — The open standard for connecting LLM apps to tools, resources and prompts
- MCP reference servers — Official collection of reference servers (filesystem, git, fetch, memory) to learn from or
- MCP TypeScript SDK — Official SDK for building MCP servers and clients in TypeScript with stdio and streamable
- MCP Python SDK — Official Python SDK including FastMCP-style decorators for quickly exposing tools.
- MCP Inspector — Developer tool to connect to any MCP server and interactively test tools, resources and pr
- FastMCP — Pythonic high-level framework for MCP servers and clients with auth, proxying and composit
All MCP tools → · Best MCP servers and tools in 2026
Related tools
- Cloudflare remote MCP servers
Guide to building and deploying remote MCP servers with OAuth on Cloudflare Workers.
- PaperPilot
Local Rust PDF toolkit that runs as an MCP server, CLI, browser WASM app, desktop app and local REST API, letting agents
- Goodmake
Free, no-account browser app for collecting and marking up design screenshots into one brief with a numbered reference s
- Tested MCP
Directory of over 150 MCP servers that were installed and handshake-tested, with dated scores, tool counts and measured
- Shopify Checkout WebMCP
Shopify's browser-registered WebMCP tools that let an AI agent in the buyer's browser read and update a store checkout a
FAQ
Is Context7 open source?
The Context7 repository is MIT licensed. The README recommends getting an API key for higher rate limits. See the official site for current limits and terms.
How do I set up Context7?
Run npx ctx7 setup, which needs Node.js 22.13 or newer. It authenticates with OAuth, generates an API key and installs either the CLI plus Skills mode or the MCP server for your agent. Flags such as --cursor, --claude and --opencode target a specific coding agent.
Which tools does the Context7 MCP server provide?
Two: resolve-library-id, which turns a library name into a Context7-compatible library ID, and query-docs, which retrieves documentation for that ID based on your question and, optionally, your programming language.
What are alternatives to Context7 in this directory?
Other MCP tools for finding or serving servers include MCP Reference Servers, Smithery, MCP Registry and GitHub MCP Server. For web search and extraction for agents, see Exa, Tavily and Firecrawl.
Get new agent tools and tips as they're added
Follow @AgentstackDaily on X for new tools and copy-paste tips. Free.