---
title: "Context7 Alternatives: 6 MCP Servers for Library Docs"
url: "https://mcpshelf.co/alternatives/context7"
description: "Ref, Grounded Docs, GitMCP, Microsoft Learn, AWS Knowledge and shadcn/ui MCP: when each beats Context7 for feeding current docs to a coding agent."
updated: "2026-11-10"
site: "MCP Shelf"
---

# 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 | GitHub stars |
| --- | --- | --- | --- | --- |
| [Context7](https://mcpshelf.co/servers/context7) | The original (Context7) | Your computer or hosted | 2 | 63.8K |
| [Ref MCP](https://mcpshelf.co/servers/ref) | Shorter answers and private docs | Your computer or hosted | 2 | 1.2K |
| [Grounded Docs (docs-mcp-server)](https://mcpshelf.co/servers/grounded-docs) | A private, self-hosted docs index | Your computer | 12 | 1.8K |
| [GitMCP](https://mcpshelf.co/servers/gitmcp) | Reading one GitHub project with no account | Hosted | 5 | 8.5K |
| [Microsoft Learn MCP](https://mcpshelf.co/servers/microsoft-learn) | Azure, .NET and Microsoft 365 | Hosted | 3 | 2K |
| [AWS Knowledge MCP Server](https://mcpshelf.co/servers/aws-knowledge) | AWS services and region checks | Hosted | 5 | 9.8K |
| [shadcn/ui MCP](https://mcpshelf.co/servers/shadcn-ui) | shadcn/ui components that compile | Your computer | 10 | 3.1K |

## 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)
- You need: A Ref account and API key from ref.tools; Node.js, only for the local version
- Setup: [Ref MCP setup and config](https://mcpshelf.co/servers/ref)
- GitHub: https://github.com/ref-tools/ref-tools-mcp

### 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
- You need: Node.js 22 or newer; Optional: an embedding provider such as an OpenAI key or a local Ollama, for vector search
- Setup: [Grounded Docs (docs-mcp-server) setup and config](https://mcpshelf.co/servers/grounded-docs)
- GitHub: https://github.com/arabold/docs-mcp-server

### 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/repo` to tie it to one repository, or the generic `gitmcp.io/docs` address 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
- You need: Nothing: no account, key or install; A client that can connect to a remote URL (or mcp-remote as a bridge)
- Setup: [GitMCP setup and config](https://mcpshelf.co/servers/gitmcp)
- GitHub: https://github.com/idosal/git-mcp

### 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)
- You need: A client that connects to a remote server by URL; Nothing else: no account, key or install
- Setup: [Microsoft Learn MCP setup and config](https://mcpshelf.co/servers/microsoft-learn)
- GitHub: https://github.com/MicrosoftDocs/mcp

### 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)
- You need: Nothing: no AWS account or key; A client that connects to a remote URL (or a stdio bridge such as fastmcp)
- Setup: [AWS Knowledge MCP Server setup and config](https://mcpshelf.co/servers/aws-knowledge)
- GitHub: https://github.com/awslabs/mcp

### 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)
- You need: Node.js 20 or newer; Optional: a GitHub token, for 5,000 requests an hour instead of 60
- Setup: [shadcn/ui MCP setup and config](https://mcpshelf.co/servers/shadcn-ui)
- GitHub: https://github.com/Jpisnice/shadcn-ui-mcp-server

## 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](https://mcpshelf.co/servers/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](https://mcpshelf.co/servers/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.

---

From [MCP Shelf](https://mcpshelf.co/): A short shelf of MCP servers that are worth installing. Index for agents: https://mcpshelf.co/llms.txt

