Docs

Docs and learning

Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools.

Your AI app calls the Docs MCP server, which does the docs and learning work and sends the result back to the chat.

About Docs

Docs is a community MCP server from arabold, filed in our directory under docs and learning. Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools.

Docs runs on your own machine: your AI app starts it with the command npx -y @arabold/docs-mcp-server and talks to it over standard input and output.

At a glance

Publisher
arabold (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @arabold/docs-mcp-server
Written in
TypeScript
License
MIT
GitHub stars
1,932

How to set up Docs

  1. Install Node.js on the machine that runs your AI app, because Docs starts with npx and downloads its package on first run.
  2. Check the Docs README for keys or settings; the registry lists none that Docs requires.
  3. Add Docs to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Docs tools to confirm the connection.
  5. Run one read-only task with Docs first, and keep your app asking before each tool call until the results look right.

Docs compared with similar servers

  • Paperdebugger by PaperDebugger has fewer GitHub stars than Docs (1.6k against 1.9k); both are community servers, and both run locally.
  • Microsoft Learn by MicrosoftDocs has more GitHub stars than Docs (2k against 1.9k); both are community servers, and Microsoft Learn runs as a remote server and Docs runs on your own machine.
  • Apple Docs by kimsungwhee has fewer GitHub stars than Docs (1.4k against 1.9k); both are community servers, and both run locally.

Before you connect Docs

  • Give Docs its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Docs tool call until you trust what it does with them.
  • Treat text that Docs fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Docs on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Docs

How marketing and sales teams put Docs to work, by company size. Pick the size closest to yours and start Docs on one use case.

Small business

  • A small business can use Docs to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Owners can ask Docs for up-to-date docs while setting up a tool, instead of trusting an old tutorial.
  • Docs runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Docs so agents write from current product docs, keeping launch copy accurate.
  • Enablement teams can use Docs to turn docs into training and battlecards sales actually uses.
  • Start Docs on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can serve approved docs through Docs, so every agent answers from the same source of truth.
  • Large orgs can use Docs to keep documentation in sync across products and regions as features ship.
  • Docs is a community server, so have security review the code and pin a version before Docs touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Docs README

From arabold/docs-mcp-server on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Grounded Docs MCP Server

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.

Features

  • Indexes websites, GitHub repositories, npm and PyPI packages, local folders and archives (ZIP, TAR).
  • Reads HTML, Markdown, PDF, Office and OpenDocument files, EPUB, Jupyter notebooks, source code and more. See Supported Formats.
  • Stores each library version separately, so a search targets the version your project uses.
  • Combines full-text search with optional vector search through OpenAI, Ollama, Gemini, Vertex AI, AWS Bedrock, Azure OpenAI or any OpenAI-compatible server.
  • Runs on your machine and keeps its index in a local SQLite database. Document text goes only to the embedding provider you configure; with a local one, such as Ollama, it stays on your machine. Usage telemetry is on by default; Telemetry lists what it sends and how to turn it off.
  • Works with any MCP client, over stdio or Streamable HTTP.

Quick Start

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.

1. Start the server
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
2. Turn on vector search (optional)

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.

3. Add documentation

Open the web UI at http://localhost:6280 and choose Add library.

4. Connect your AI client

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.

Command Line

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.

Web Scraping

  • Before it crawls a website, a scrape or refresh looks for an 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.
  • Requests ask for HTML first, like a browser. Markdown that a server converts on request leaves out the site's navigation, so a crawl would miss most pages. The scraper uses Markdown where the site publishes it: pages listed in llms.txt and links to .md files. A custom Accept header replaces the default one.
  • A crawl does not follow links to 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.
  • For documentation sites that route with hash URLs, such as https://docs.example.com/#/guide, turn on hash routes for the scrape. See Hash Route Behavior.

Documentation

Setup:

Usage:

Deployment:

  • Deployment Modes: one process, or a worker with separate MCP and web services.
  • Reverse Proxy Deployment: serve the server under a path such as https://example.com/docs.
  • Authentication: protect the MCP endpoint with OAuth2/OIDC.
  • Security: trust boundaries and limits on what the scraper may reach.
  • Telemetry: the usage events the server sends, and how to turn them off.

Internals:

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

This project is licensed under the MIT License. See LICENSE for details.

Questions about Docs

What is the Docs MCP server?

Grounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools. Docs is maintained by arabold on GitHub at arabold/docs-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Docs MCP server?

Add Docs to your AI app's MCP config with the command npx -y @arabold/docs-mcp-server. In Claude Code, run claude mcp add --transport stdio docs -- npx -y @arabold/docs-mcp-server. To run Docs this way you need Node.js installed.

Does Docs need an API key?

The registry lists no required keys for Docs. Check the Docs README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Docs an official MCP server?

No. Docs is a community server maintained by arabold. Community servers can be excellent; read the code and the open issues before you give Docs access to company data.

What license is Docs under?

Docs is released under the MIT license, according to its GitHub repository. The license covers the code of Docs; the service it connects to has its own terms.