COMPARE · COMPARISON: DOCS FOR AGENTS

Context7 alternatives in 2026: 6 docs MCP servers for coding agents

AUTHOR · XERJ documentation team · REVIEWED BY · XERJ engineering team · PUBLISHED · 2026-11-22 · UPDATED · 2026-11-22
SHORT ANSWER · UPDATED 2026-11-22

What are the best Context7 alternatives in 2026? For public repositories with no sign-up, DeepWiki MCP and GitMCP. For a local, self-hosted docs index, Grounded Docs MCP Server. For private docs from a remote service, Ref. For your own code, docs and PDFs on your machine, XERJ. Context7 itself stays a strong pick for public library docs.

Key number: Context7 has 65,291 GitHub stars, the most of any docs MCP server on this page. (as of 2026-11-22 · source: github.com/upstash/context7)

Last checked: 2026-11-22. Stars come from the GitHub REST API and features from each project's README or docs on that date.

TL;DR Context7 brings current library docs into a coding agent. The alternatives cover other needs: DeepWiki MCP and GitMCP for any public GitHub repo, Grounded Docs MCP Server and XERJ for an index on your own machine, and Ref for private docs from a remote service.

Try it: filter by what your agent needs

Find the docs MCP server for your setup

I want

Sort by

ServerRunsDocs it coversLicenceStarsStart
Context7hosted MCP plus ctx7 CLIpublic library docsMIT (server code)65,291
DeepWiki MCPremote MCP, 3 toolspublic repos (Devin MCP for private)service by Cognitionno public repo
GitMCPremote MCP per GitHub repopublic GitHub repos and PagesApache-2.08,531
Grounded Docs MCP Serverlocal MCP, SQLite indexlocal folders, sites, npm, PyPIMIT1,912
Refhosted search plus MCPprivate repos and PDFsMIT (MCP client)1,186
XERJlocal binary, xerj mcpany local folder: code, docs, PDF, logsApache-2.019,418

Runs in your browser and sends nothing. Stars from the GitHub REST API on 2026-11-22. DeepWiki MCP is a remote service by Cognition with no public repository. Ref's hosted search needs an API key; its MCP client is MIT. Context7 recommends a free API key for higher rate limits.
PASTE THIS TO YOUR AI AGENT. IT DOES THE REST Act as a coding agent. Read https://xerj.org/llms.txt and https://xerj.org/compare/context7-alternatives-2026, then set up the docs MCP server that fits this project: a hosted one for public library docs, plus a local XERJ index for our own code and docs. Show me the config you added and one cited answer.

Pick one in ten seconds

Summary table

ServerHow it runsDocs it coversLicenceStartStars (2026-11-22)
Context7hosted MCP plus ctx7 CLIpublic library docsMIT (server code)npx ctx7 setup65,291
DeepWiki MCPremote MCP, 3 toolspublic repos (Devin MCP for private)service by Cognitionclaude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcpno public repo
GitMCPremote MCP per GitHub repopublic GitHub repos and PagesApache-2.0https://gitmcp.io/{owner}/{repo}8,531
Grounded Docs MCP Serverlocal MCP, SQLite indexlocal folders, sites, npm, PyPIMITnpx @arabold/docs-mcp-server@latest1,912
Refhosted search plus MCPprivate repos and PDFsMIT (MCP client)npx ref-tools-mcp@latest1,186
XERJlocal binary, xerj mcpany local folder: code, docs, PDF, logsApache-2.0curl -fsSL https://xerj.org/get | sh19,418

Context7: current library docs

Context7 pulls version-specific documentation and code examples from the source into the agent's context. It works as an MCP server at https://mcp.context7.com/mcp or as a CLI plus skill, set up with npx ctx7 setup. Its two MCP tools are resolve-library-id and query-docs. The repository holds the MCP server code; the API backend and crawler are run by Upstash.

DeepWiki MCP: any public repo, no sign-up

The DeepWiki MCP server is free, remote and needs no authentication. It offers read_wiki_structure, read_wiki_contents and ask_wiki_question over public repositories. For private repositories, Devin's own MCP server with a Devin API key fills the same role.

GitMCP: one URL per GitHub project

GitMCP is a free, open-source remote MCP server that turns a GitHub repository or GitHub Pages site into a docs source. Use gitmcp.io/{owner}/{repo} for one project or gitmcp.io/docs to pick the repository per request. It can also be self-hosted.

Grounded Docs MCP Server: self-hosted and versioned

Grounded Docs indexes websites, GitHub repositories, npm and PyPI packages, local folders and archives. It stores each library version separately, keeps its index in a local SQLite database, and adds vector search when you configure an embedding provider. Start it with npx @arabold/docs-mcp-server@latest or Docker.

Ref: hosted search over public and private docs

Ref gives agents two tools, ref_search_documentation and ref_read_url. It can search public docs on the web and GitHub, plus private resources such as repos and PDFs. Connect with the hosted MCP URL and an API key, or run npx ref-tools-mcp@latest.

XERJ: a new way for AI to search for data

XERJ is one local Rust binary. It indexes a folder of code, docs, PDFs and logs, and xerj mcp lets the agent ask it for ranked passages with file:line. On psf/requests one XERJ answer was 1,303 bytes where ripgrep printed 25,150 (capture). Pair it with Context7 or DeepWiki: they cover public libraries, XERJ covers your own files. XERJ is single-node, and its search is lexical by default; neural embeddings are opt-in.

How this page was checked

On 2026-11-22 we read each project's README or docs page and the GitHub REST API. No head-to-head benchmark was run for this page. Each claim links to its source in the Evidence list.

Read next

FAQ

What is Context7?

Context7 is an MCP server and CLI from Upstash that puts up-to-date, version-specific library docs and code examples into a coding agent's context. Its MCP tools are resolve-library-id and query-docs, and a free API key raises rate limits.

Which Context7 alternative is free and needs no sign-up?

The DeepWiki MCP server is free, remote and needs no authentication for public repositories. GitMCP is free and open source, with a URL per GitHub repository.

Which Context7 alternative runs on my machine?

Grounded Docs MCP Server runs locally with npx or Docker and keeps its index in SQLite. XERJ runs as one local binary and indexes your own folders. GitMCP can also be self-hosted.

Which one can search my private docs?

Grounded Docs indexes local folders and archives, Ref can search private repos and PDFs, and XERJ indexes any local folder of code, docs, PDFs and logs. DeepWiki covers public repositories; Devin's own MCP server covers private ones.

Can I use more than one?

Yes. Many setups pair a public library docs server, such as Context7 or DeepWiki, with a local index of their own code and docs, such as XERJ.

Evidence

Related