Other peas in the pod
Best Context7 alternatives
By Sophie Filer · checked against each server’s README on 10 Nov 2026
For most people the best Context7 alternative is Ref, which searches public and private docs and trims each page to the part that answers the question. If you want docs that never leave your machine, index them yourself with Grounded Docs. If you just need one GitHub project read properly and want no account at all, GitMCP is a URL you paste in. Microsoft Learn, AWS Knowledge and shadcn/ui MCP are narrower, but beat any general index on their own ground.
At a glance
| Server | Best for | Runs on | Tools | Stars | Our install check |
|---|---|---|---|---|---|
| The original (Context7) | Your computer or hosted | 2 | 63.8K | Started in our test | |
| Shorter answers and private docs | Your computer or hosted | 2 | 1.2K | Started in our test | |
| A private, self-hosted docs index | Your computer | 12 | 1.8K | Started in our test | |
| Reading one GitHub project with no account | Hosted | 5 | 8.5K | Needs your setup first | |
| Azure, .NET and Microsoft 365 | Hosted | 3 | 2K | Started in our test | |
| AWS services and region checks | Hosted | 5 | 9.8K | Started in our test | |
| shadcn/ui components that compile | Your computer | 10 | 3.1K | Started in our test |
Stars refresh daily; tool counts come from our own run of each server.
Why look beyond Context7?
- Context7 covers the libraries in its own public index. Docs for your private packages, internal APIs or a niche library it has not indexed are out of reach.
- Every question goes to Upstash’s hosted service. Some teams do not want project names or questions leaving the building.
- Without a key the hosted service is rate limited, and busy agents run into 429 errors.
- Its answers are sections of docs, and for a one-line question you may want a server that trims pages harder.
Stick with Context7 if
- You want the widest spread of popular libraries with one setup and no indexing to manage
- You like asking for a specific version with the /owner/repo syntax
- You use ChatGPT or another client that only takes a URL: the hosted server works there with no install
The alternatives, one by one

1. Ref MCP
Best for: Shorter answers and private docs
Ref has just two tools, one to search and one to read a page, and the reader cuts long pages down to the passages that match what the model searched for, so replies stay at a few thousand tokens. It searches public docs and GitHub like Context7, and also any private repositories and PDFs you add to your Ref account. Repeated searches in one session skip pages the model has already seen, so it can refine a query without paying for the same text twice.
What you give up: You need a Ref account and API key before it does anything, and searches count against your Ref plan.
- Made by:
- Ref (ref-tools/ref-tools-mcp)
- Runs on:
- Your computer or hosted
- You need:
- A Ref account and API key from ref.tools; Node.js, only for the local version
- Licence:
- MIT
- Last commit:
- 24 Oct 2026

2. Grounded Docs (docs-mcp-server)
Best for: A private, self-hosted docs index
Grounded Docs builds your own documentation index on your machine. Point it at a docs site, a GitHub repository, an npm or PyPI package or a local folder, and it stores the pages in SQLite, labelled by library and version. Your assistant then searches the exact version you have installed, including internal docs no public service will ever see. Search is full text out of the box, and adds meaning-based search if you give it an embedding model such as a local Ollama.
What you give up: You choose and index each library yourself, and it needs Node.js 22. Turn off its anonymous telemetry with
--no-telemetry.- Made by:
- Andre Rabold (arabold) and contributors
- Runs on:
- Your computer
- You need:
- Node.js 22 or newer; Optional: an embedding provider such as an OpenAI key or a local Ollama, for vector search
- Licence:
- MIT
- Last commit:
- 25 Oct 2026

3. GitMCP
Best for: Reading one GitHub project with no account
GitMCP is a free hosted server with nothing to install and no sign-up. Use
gitmcp.io/owner/repoto tie it to one repository, or the genericgitmcp.io/docsaddress to let the model pick the repository for each question. It reads a project’s llms.txt first, then its README, and can search the code as well as the docs.What you give up: It only reads what is in public GitHub repositories and GitHub Pages sites, with no version picking beyond what the repository holds.
- Made by:
- The GitMCP project (idosal/git-mcp), free and open source
- Runs on:
- Hosted
- You need:
- Nothing: no account, key or install; A client that can connect to a remote URL (or mcp-remote as a bridge)
- Licence:
- Apache-2.0
- Last commit:
- 8 May 2026

4. Microsoft Learn MCP
Best for: Azure, .NET and Microsoft 365
Microsoft runs this server itself over the whole of Microsoft Learn. It has three tools: a semantic search, a fetch that turns any Learn page into Markdown, and a search for official code samples filtered by language. When a model insists on an Azure SDK method or CLI flag that no longer exists, this is the source that settles it. There is no key, account or cost.
What you give up: It covers Microsoft’s documentation only, so keep a general docs server for everything else.
- Made by:
- Microsoft (MicrosoftDocs/mcp)
- Runs on:
- Hosted
- You need:
- A client that connects to a remote server by URL; Nothing else: no account, key or install
- Licence:
- CC-BY-4.0
- Last commit:
- 25 Oct 2026

5. AWS Knowledge MCP Server
Best for: AWS services and region checks
AWS hosts this server for free, with no AWS account. It searches the AWS documentation, API references, What’s New posts and Well-Architected guidance, returns whole pages as Markdown, and can tell you whether a service, API or CloudFormation resource is available in a given region. That last check is something no general docs index answers.
What you give up: AWS content only, and it reads about your account’s services rather than acting on them.
- Made by:
- Amazon Web Services (awslabs/mcp)
- Runs on:
- Hosted
- You need:
- Nothing: no AWS account or key; A client that connects to a remote URL (or a stdio bridge such as fastmcp)
- Licence:
- Apache-2.0
- Last commit:
- 28 Oct 2026

6. shadcn/ui MCP
Best for: shadcn/ui components that compile
Models write shadcn/ui from memory and get props and imports slightly wrong. This community server fetches the real current source of a component, its demo and its dependencies from GitHub, plus whole blocks such as dashboards and login pages. It also covers the Svelte, Vue and React Native ports.
What you give up: It does one library. GitHub allows 60 requests an hour without a token, so add a free GitHub token if you use it a lot.
- Made by:
- Jpisnice (community project, not affiliated with shadcn)
- Runs on:
- Your computer
- You need:
- Node.js 20 or newer; Optional: a GitHub token, for 5,000 requests an hour instead of 60
- Licence:
- MIT
- Last commit:
- 3 Oct 2026
Which one should you pick?
| If you need | Pick |
|---|---|
| Private docs alongside public ones, with short replies | Ref MCP |
| Docs that stay on my machine | Grounded Docs (docs-mcp-server) |
| One open source project, no account, nothing to install | GitMCP |
| Azure, .NET, Microsoft 365 or Power Platform | Microsoft Learn MCP |
| AWS services, APIs and region availability | AWS Knowledge MCP Server |
| Correct shadcn/ui component code | shadcn/ui MCP |
| The widest range of popular libraries in one setup | Context7 |
Questions
What is the best free alternative to Context7?
GitMCP if you want nothing to install: it is free, hosted and needs no account. Grounded Docs if you want it free and private: it is open source and runs on your own machine. Microsoft Learn and AWS Knowledge are free too, for their own docs.
Is there a self-hosted Context7?
Yes. Grounded Docs (docs-mcp-server) does the same job locally: it indexes the docs you choose into a SQLite database on your machine, by version, and your assistant searches that. Run it with --read-only once your docs are indexed.
Can I run Context7 and one of these together?
Yes, and it often makes sense: Context7 for general libraries plus a specialist such as Microsoft Learn or shadcn/ui MCP. Avoid two general docs servers in one client, such as Context7 and Ref, because the model then has to guess which to ask.
Which alternative works with private code?
Ref searches private repositories and PDFs you add to your Ref account. Grounded Docs indexes local folders and private repositories on your own machine, so nothing is sent to a docs service at all.
How we chose
Every server here is on the MCP Shelf, where we check its install and read its README before listing it. We only include servers that do the same job as Context7, and say plainly what each one costs you in setup, money or safety. Nobody pays to appear on this page.
Keep exploring
- All Developer tools MCP servers on the shelf, if none of these fit
- What is an MCP server?
- Adding custom connectors to Claude