The model confidently writes a parameter name. You go look it up. There is no such parameter. It is not lying — the version it remembers is the one that existed on the day its training stopped.
Documentation-retrieval servers are the least controversial category in MCP: they do not touch your files, do not call paid APIs, do not need write access. They pull a chunk of official documentation into context, and nothing else. The illness they treat is equally narrow — model knowledge has a cutoff date, and the libraries you depend on ship every week.
The best-known member is Context7 (roughly 61.9k stars, MIT, per its GitHub repo page, 2026-09). But the point of this issue is a distinction: a general aggregator that indexes every library is a different animal from the first-party doc servers run by Microsoft, AWS, Cloudflare and Anthropic themselves. The aggregator is broad, and its index quality is not yours to control; the first-party ones are narrow, but what they return is the source. Nine installable items follow, and the last section answers the question most worth asking: when you should install none of them.
# 1. The official zero-auth one, useful for proving the plumbing works
claude mcp add --transport http claude-code-docs https://code.claude.com/docs/mcp
claude mcp list # expect a ✔ Connected line
# 2. Context7: one command; it asks whether you want CLI+Skills or MCP mode
npx ctx7 setup --claude # Node 18+; OAuth sign-in generates an API key
npx ctx7 remove # the undo
# Wiring MCP mode by hand means this URL, key in the Authorization header
https://mcp.context7.com/mcp
# Your first prompt (the slash syntax names the library, skipping the lookup):
Implement email/password sign-up with Supabase. use library /supabase/supabase
# Want a specific release? Just say it: "How do I set up Next.js 14 middleware?"
Two details are worth noticing. First, ctx7 setup now offers two modes: CLI + Skills, which installs a skill that teaches the agent to shell out to ctx7 library and ctx7 docs and needs no MCP at all, or the traditional MCP server. That is a live example of something this series keeps returning to — the same capability can ship as a server or as a skill plus a CLI. Second, the README calls the API key "recommended", not required; the free key buys higher rate limits.
CLAUDE.md: "Always use Context7 when I need library/API documentation, code generation, setup or configuration steps without me having to explicitly ask." The skill route from ctx7 setup wires this up for you; hand-wired MCP does not.claude-code-docs command comes from)Because a full doc page routinely runs twenty or thirty thousand tokens and the model needs one section of it. Ref's author states the case bluntly — "Models get dumber as you put in more tokens" — and the server returns roughly the most relevant 5k tokens of a page instead of the usual 20k+ full fetch (per its GitHub README, 2026-09). Microsoft Learn hands you the dial directly: append ?maxTokenBudget=2000 to the endpoint and search responses are truncated to that budget.
Context7's README carries two disclaimers that matter: library documentation is community-contributed, with no guarantee of accuracy, completeness or security, and only the MCP server itself is open source — the API backend, parsing engine and crawling engine are private. That is not a knock on it; it is the shared structure of every aggregator. The quality of what you retrieve depends on what someone else's crawler happened to capture. First-party servers (learn.microsoft.com, AWS, Cloudflare, code.claude.com) do not have this problem, because the docs and the service ship from the same building.
maxTokenBudget documentation)claude mcp add --transport http claude-code-docs https://code.claude.com/docs/mcp — no auth, no configuration, and the official docs use it as the first server to practise on. When not to install: if you never touch hooks, settings or MCP config, you will not reach for it once a year.https://learn.microsoft.com/api/mcp, free, no key; three tools — microsoft_docs_search, microsoft_docs_fetch, microsoft_code_sample_search. When not to install: outside the Microsoft stack it is pure dead weight.uvx awslabs.aws-documentation-mcp-server@latest (needs uv and Python 3.10+); its search_table tool exists precisely to filter large quota and pricing tables without reading the whole page. When not to install: anything a single aws CLI call answers. For AWS China regions, set AWS_DOCUMENTATION_PARTITION to aws-cn.https://mcp.cloudflare.com/mcp; the documentation tool is simply named docs. When not to install: note that this is not a pure docs server — it advertises "2500 endpoints in 1k tokens, powered by Code Mode", and sitting next to docs is an execute tool that can change your live configuration. If you only want documentation, do not casually attach write access along with it.https://api.ref.tools/mcp?apiKey=YOUR_API_KEY, or npx ref-tools-mcp@latest with REF_API_KEY set. When not to install: it requires signing up for a key, and for purely public documentation that step buys you nothing.https://gitmcp.io/{owner}/{repo} pins one repo, https://gitmcp.io/docs is the generic endpoint; tool names are generated per repo, and there is a search_*_code that searches the code directly. When not to install: if the repo has no documentation, all it can hand you is grep output.https://mcp.deepwiki.com/mcp, free, no auth, public repos only; three tools — read_wiki_structure, read_wiki_contents, ask_question. When not to install: what it returns is a Devin-generated wiki, which is second-hand interpretation, not source — trust it for orientation, verify details against the code.CLAUDE.md and let the built-in fetch tool pull pages on demand — zero cost, no tool slot consumed.CLAUDE.md — "this project is on X 4.x, do not write 3.x-style code" — blocks a large share of version confusion. That is the disease many people are actually trying to treat when they reach for a retrieval server.npx @upstash/context7-mcp and its tool was get-library-docs; today it is npx ctx7 setup and query-docs. A great many tutorials are still frozen on the old version — read the project's own README before installing anything, never a blog post./context for what it occupies, /usage every two weeks for the bill, and remove anything whose purpose you cannot recall. This category is unusually prone to becoming that zombie.Install these three first: (1) claude-code-docs — claude mcp add --transport http claude-code-docs https://code.claude.com/docs/mcp, zero auth, and it proves your MCP plumbing works; (2) context7 — npx ctx7 setup --claude, plus that trigger line in CLAUDE.md; (3) whichever first-party server matches your main cloud — https://learn.microsoft.com/api/mcp for Azure/.NET, uvx awslabs.aws-documentation-mcp-server@latest for AWS, https://mcp.cloudflare.com/mcp for Cloudflare.
Add on demand: gitmcp.io/{owner}/{repo} for the days you are chewing through an undocumented repo · mcp.deepwiki.com/mcp to get a map of an unfamiliar codebase · Ref only when what you need to search is private documentation.
Explicitly do not install: a second server in a tier you already cover (no aggregator on top of a first-party server) · anything added "just in case I ever need to look that up" · the stale @upstash/context7-mcp command copied from an old blog post.
The one-line test: use whoever owns the thing you are looking up; reach for an aggregator only when ownership is unclear; and when one page gets consulted five times, paste it.
/vercel/next.js. Naming it directly in a prompt skips the fuzzy-matching step.?maxTokenBudget=2000 is a rare case of exposing it to the user directly.npx ctx7 setup, the CLI+Skills and MCP modes, the parameters of resolve-library-id and query-docs, the slash syntax for naming a library, the example trigger rule, and the two disclaimers about community contribution and the private parsing engine; roughly 61.9k stars, MIT, per its GitHub repo page, 2026-09claude-code-docs command and the phrase "hosted server with full-text search over the Claude Code docs" come from; also the claude mcp list status table and the troubleshooting checklisthttps://learn.microsoft.com/api/mcp endpoint, the three-tool parameter table, the experimental ?maxTokenBudget=, and @microsoft/learn-cli for using the same tools without an MCP client; roughly 1.9k stars per its GitHub repo page, 2026-09uvx config snippet, six tools including search_table, and the AWS_DOCUMENTATION_PARTITION switch between global and China documentationhttps://mcp.cloudflare.com/mcp, the docs / search / execute tools, and what ?codemode=false changes; roughly 825 stars, Apache-2.0, per its GitHub repo page, 2026-09/mcp endpoint and the deprecating /sse one, the three tool names, remote no-authref_search_documentation and ref_read_url, private documentation support, and the argument for returning only the most relevant 5k tokens; roughly 1.2k stars, MIT, per its GitHub repo page, 2026-09/context and /usage audit routine; this issue expands its first line