by arabold
Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools
# Add to your Claude Code skills
git clone https://github.com/arabold/docs-mcp-serverGuides for using ai agents skills like docs-mcp-server.
docs-mcp-server is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by arabold. Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools. It has 1,929 GitHub stars.
docs-mcp-server's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/arabold/docs-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
docs-mcp-server is primarily written in TypeScript. It is open-source under arabold on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh docs-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Grounded Docs gives your AI coding assistant a documentation index that matches the library versions you use. It fetches documentation from websites, GitHub repositories, npm, PyPI and local folders, and serves search over the Model Context Protocol (MCP), a command line and a web UI. Your assistant answers from that documentation instead of from what it remembers.
It is an open-source alternative to Context7, Nia and Ref.Tools.

You need Node.js 22.14 or later, or Docker. Installation covers both in detail, along with Docker Compose and running the server inside your AI client.
npx @arabold/docs-mcp-server@latest
Or with Docker:
docker run --rm \
-v docs-mcp-data:/data \
-v docs-mcp-config:/config \
-p 6280:6280 \
ghcr.io/arabold/docs-mcp-server:latest
Without an embedding model, search uses full-text matching. Vector search also finds passages by meaning. To use OpenAI, start the server with OPENAI_API_KEY set:
OPENAI_API_KEY="sk-proj-..." npx @arabold/docs-mcp-server@latest
With Docker, add -e OPENAI_API_KEY="sk-proj-...". Embedding Models covers Ollama, Gemini, Azure OpenAI and other providers.
Do this before you add documentation. Embeddings are computed when a page is indexed, so documentation indexed without a model gets no vectors until you scrape it again with --replace.
Open the web UI at http://localhost:6280 and choose Add library.
Add the server's MCP endpoint, http://localhost:6280/mcp, to your client. Most clients accept an entry like this:
{
"mcpServers": {
"docs-mcp-server": {
"url": "http://localhost:6280/mcp"
}
}
}
Connecting MCP Clients has the exact settings for Claude Code, Claude Desktop, Zed and other clients, how a client can start the server itself over stdio, and the list of MCP tools.
The CLI indexes and searches without a running server, which suits scripts and coding agents. It shares its database with a server on the same machine.
# Index documentation
npx @arabold/docs-mcp-server@latest scrape react https://react.dev/reference/react
# Search it
npx @arabold/docs-mcp-server@latest search react "useEffect cleanup" --output yaml
# Fetch one page as Markdown without indexing it
npx @arabold/docs-mcp-server@latest fetch-url https://react.dev/reference/react/useEffect
scrape refuses a library version that already exists. Pass --replace to rebuild it, or run refresh to update it in place. The skills/ directory has Agent Skills that teach coding agents these commands. Basic Usage covers every command, output formats and local files.
llms.txt file in the start URL's directory and at the site root. The links listed there become extra starting points, and for those pages the scraper first tries the Markdown version of the URL, such as /guide/index.html.md or /page.html.md.llms.txt and links to .md files. A custom Accept header replaces the default one.llms.txt or to its companions such as llms-full.txt, llms-small.txt and llms-medium.txt (any llms-*.txt). A companion holds the site's docs joined into one file, complete or abridged, and the crawl already indexes those pages under their own URLs. To index a companion on its own, use its URL as the start URL; it is read as Markdown.https://docs.example.com/#/guide, turn on hash routes for the scrape. See Hash Route Behavior.Setup:
Usage:
Deployment:
https://example.com/docs.Internals:
See CONTRIBUTING.md for development setup and guidelines.
This project is licensed under the MIT License. See LICENSE for details.