Free checklist
C

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
Visit Context7 →

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

All MCP tools → · Best MCP servers and tools in 2026

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.