Documentation MCP servers
Documentation MCP servers give a coding agent a direct line to library docs, skipping web search and your website entirely. If a developer has Context7, DeepWiki, GitMCP or Ref installed, the agent calls a tool such as resolve-library-id and query-docs and gets back pre-chunked documentation from that service’s index, which was built from your GitHub repository, docs site or llms.txt. For a library, I think this is often the highest-quality path an agent has to your current API, and it’s one you can partly control through configuration files in your repo. The catch is that the traffic goes from the agent to the MCP vendor, so your logs show at most the vendor’s indexing fetches and never the developer’s query.
How a doc MCP changes the path
Section titled “How a doc MCP changes the path”- Coding agent → Context7
tool call - Context7 → GitHub repo
index on refresh - DeepWiki MCP → Config files
reads wiki.json - GitMCP → llms.txt
live read
In practice, this means ranking stops mattering for developers who use these servers. An agent asking Context7 about your library gets your docs if Context7 has indexed them, and Context7 returns its best-matching chunks without any web search ranking involved inferred. That’s a big deal, because coding agents already generate a large share of documentation traffic: Mintlify reports that coding agents made 45.3% of about 790M requests to docs it hosts, close to the 45.8% from browsers (Mintlify State of Knowledge 2026) documented. Doc MCP queries come on top of that, and the docs host never sees them.
The four main services
Section titled “The four main services”| Service | How a library gets in | What you control | Evidence |
|---|---|---|---|
| Context7 (Upstash) | Anyone can submit a public repo, website, llms.txt or OpenAPI spec at context7.com/add-library; ownership is not required | context7.json in the repo, a refresh API and a GitHub Action, and the admin panel once claimed | documented |
| DeepWiki (Cognition) | Submit a public GitHub URL at deepwiki.com; private repos are indexed inside Devin | .devin/wiki.json with repo_notes and pages | documented |
| GitMCP | No submission: github.com/o/r becomes gitmcp.io/o/r and o.github.io/r becomes o.gitmcp.io/r (gitmcp.io) | What is in the repo: llms.txt, llms-full.txt, README | documented |
| Ref (ref.tools) | Public and private docs search through ref_search_documentation and ref_read_url; the public pages do not say how sites get indexed | Unknown | inferred |
Two search-API MCPs play a similar role: Exa’s get_code_context_exa tool and Firecrawl’s Developer Index (more than 70M READMEs, docs pages, issues, PRs and OpenAPI specs, served at /v2/search/developer) (Firecrawl changelog) documented. By the way, OpenCode shipped a codesearch tool backed by get_code_context_exa in v1.1.4 and removed it before v1.19.6 (codesearch.ts at v1.1.4) verified in code, which shows that built-in code-search tools come and go between versions.
Context7 in detail
Section titled “Context7 in detail”Context7 indexes Markdown, MDX, reStructuredText, plain text, AsciiDoc, HTML, notebooks, PDF and DOCX files from a repository, and it skips raw source code when docs exist. When a repo has no docs, Context7 generates examples from the code instead. One limitation worth knowing up front is that it indexes English only (Context7 admin docs) documented.
Refresh frequency scales with the library’s popularity, which means a new or niche library can lag behind its own releases. You don’t have to wait for it, though, because you can force a refresh with POST /v1/refresh (refresh API) or a GitHub Action that runs on every push documented.
A context7.json at the repo root controls indexing through folders, excludeFolders, excludeFiles and rules, where rules are short usage instructions that get returned to the agent alongside your docs (adding libraries). Claiming a library uses the same file: you open https://context7.com/OWNER/REPO/admin, click “Claim to manage”, and commit the generated url and public_key (prefixed pk_) to context7.json on the default branch; for a website or llms.txt source, you host the file under the library’s base URL instead (claiming libraries). The docs warn that the url has to match the library’s Context7 URL exactly. Once it’s claimed, a library gets higher refresh limits and the admin panel documented.
{ "url": "https://context7.com/your-org/your-lib", "public_key": "pk_...", "folders": ["docs"], "excludeFolders": ["docs/internal", "examples/legacy"], "rules": [ "Use createClient() from v3; the v2 Client constructor is removed.", "Always pass an AbortSignal to long-running calls." ]}DeepWiki in detail
Section titled “DeepWiki in detail”DeepWiki generates a wiki of pages and diagrams from your source code and exposes it to agents through the DeepWiki MCP server. Without any configuration, the model decides which pages to write. A .devin/wiki.json file at the repo root lets you steer it: repo_notes (up to 10,000 characters each) give the generator context, and pages (each with a title, purpose, optional parent and page notes) define the structure, up to 30 pages and 100 notes, or 80 pages on enterprise plans (Devin docs). Changes apply after you commit and regenerate documented.
{ "repo_notes": [ { "content": "Public API is everything exported from src/index.ts. Files under src/internal are private and must not be documented as API." } ], "pages": [ { "title": "Getting started", "purpose": "Install, configure and make a first request" }, { "title": "Migration from v2", "purpose": "Breaking changes and replacements", "parent": "Getting started" } ]}The main risk I see with an unconfigured DeepWiki is that a model-written page documents internal helpers as public API, and agents then happily generate code against them. The simplest fix is a repo_notes entry that names the public surface inferred.
GitMCP and Ref
Section titled “GitMCP and Ref”GitMCP needs no setup at all: any public repo is reachable at its gitmcp.io URL, and the server reads llms.txt, llms-full.txt and the README “and more” (gitmcp.io). Whether GitMCP fetches live or keeps an index isn’t documented, so the lever for GitMCP is the same as for GitHub generally: a good README head and an accurate llms.txt in the repo.
Ref’s public docs describe the agent-side tools but not how public documentation gets into its index. Until Ref documents that, the only reliable check I know of is to query Ref for your library and see what comes back.
What a site owner can measure
Section titled “What a site owner can measure”Honestly, very little can be measured directly, because Context7 and DeepWiki read from GitHub and their indexing shows up in GitHub’s traffic rather than your logs. When Context7 indexes a website source it does fetch pages, but no separate web user agent is documented inferred, and developer queries only ever go to the MCP vendor. The workable measurement is a canary: you put a unique phrase in a docs page that only one service has indexed, then ask an agent with only that MCP enabled for it. The test catalog describes the procedure.
Checklist
Section titled “Checklist”- Search Context7, DeepWiki and Ref for your library, and note which source each one indexed.
- Claim the Context7 entry and add
context7.jsonwithfolders,excludeFoldersandrulesthat name your current major version. - Wire a Context7 refresh into your release workflow.
- Add
.devin/wiki.jsonthat names your public API surface, then regenerate the DeepWiki. - Keep
llms.txtand the README head accurate for GitMCP. - Review generated wiki pages after each major release for stale or internal APIs.
Open questions
Section titled “Open questions”- How Context7 ranks chunks when several libraries match a query, and whether claimed libraries receive any ranking preference.
- Whether GitMCP caches repository content and for how long.
- How Ref decides which public documentation sites to index.
- How many agent sessions call a doc MCP compared with web search; only the vendors can see this, and none publishes it.
Further reading
Section titled “Further reading”- Context7: adding libraries and
context7.json - Context7: claiming libraries
- DeepWiki: configuring with
.devin/wiki.json - GitMCP
- Ref documentation
- Exa MCP reference
Last reviewed 2026-12-02 against Context7, DeepWiki, GitMCP and Ref public documentation. This site is re-reviewed monthly; see maintenance.