docs-mcp-server
Runs as a Node.js application with built-in support for scraping, indexing and searching Node.js packages and libraries.
Uses OpenAI's embedding capabilities to generate vector embeddings for documentation chunks, enabling semantic searching of documentation content.
Enables scraping, indexing, and searching React documentation with version-specific support, allowing users to search across different React versions.
Uses semantic-release to automate the release process based on commit messages, handling version bumping and changelog generation.
Supports scraping and indexing SemVer documentation, with examples showing how to fetch and search through the node-semver documentation.
Leverages SQLite with sqlite-vec for efficient vector similarity search and FTS5 for full-text search capabilities when indexing documentation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docs-mcp-server search for React hooks documentation, version 18.2.0"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Documentation Search MCP Server
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@latestOr with Docker:
docker run --rm \
-v docs-mcp-data:/data \
-v docs-mcp-config:/config \
-p 6280:6280 \
ghcr.io/arabold/docs-mcp-server:latest2. 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@latestWith 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/useEffectscrape 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.txtfile 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.mdor/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.txtand links to.mdfiles. A customAcceptheader replaces the default one.A crawl does not follow links to
llms.txtor to its companions such asllms-full.txt,llms-small.txtandllms-medium.txt(anyllms-*.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:
Installation: npx, Docker, Docker Compose and the embedded server.
Configuration: config file, environment variables and every setting.
Embedding Models: providers, models and changing the model.
Usage:
Basic Usage: the web UI, the CLI and local files.
Connecting MCP Clients: client settings and MCP tools.
Supported Formats: file formats and how each is processed.
Search Quality Benchmark: measure retrieval quality.
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:
Architecture: system design for contributors.
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
This project is licensed under the MIT License. See LICENSE for details.
Available Tools
12 toolscancel_jobADestructive
Cancel a queued or running indexing job. Use the 'list_jobs' tool to find the job ID.
Inputs: jobId (required).
fetch_urlARead-only
Fetch a single URL and convert its content to Markdown. Use this tool to read the content of any web page.
Inputs: url (required), followRedirects.
find_versionBRead-only
Find the best matching version for a library. Use to identify available or closest versions.
Inputs: library (required), targetVersion.
get_job_infoARead-only
Get details for a specific indexing job. Use the 'list_jobs' tool to find the job ID.
Inputs: jobId (required).
list_jobsBRead-only
List all indexing jobs. Optionally filter by status.
Inputs: status.
list_librariesARead-only
List all indexed libraries and their versions. Use this to find the correct library name.
Inputs: no named parameters.
list_pagesBRead-only
List the indexed pages of a library version, with an optional URL filter and pagination.
Inputs: library (required), limit, offset, version, +1 more.
read_pageARead-only
Read the full content of an indexed documentation page, for example a URL returned by search_docs or list_pages. Long pages are returned in parts; the response says how to continue.
Inputs: library (required), pathOrUrl (required), version, maxChars, +1 more.
refresh_versionA
Re-scrape a previously indexed library version, updating only changed pages.
Inputs: library (required), version.
remove_docsADestructive
Remove indexed documentation for a library version. Use only if explicitly instructed.
Inputs: library (required), version.
scrape_docsADestructive
Scrape and index documentation from a URL for a library. Use this tool to index a new library or a new version. Scraping a library version that already exists is rejected unless replace is true; use refresh_version to update an existing version in place.
Inputs: url (required), library (required), scope, replace, +7 more.
search_docsARead-only
Search up-to-date documentation for a library or package. Examples:
{library: "react", query: "hooks lifecycle"} -> matches latest version of React
{library: "react", version: "18.0.0", query: "hooks lifecycle"} -> matches React 18.0.0 or earlier
{library: "typescript", version: "5.x", query: "ReturnType example"} -> any TypeScript 5.x.x version
{library: "typescript", version: "5.2.x", query: "ReturnType example"} -> any TypeScript 5.2.x version
Inputs: query (required), library (required), limit, version.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a clearly distinct action or resource: indexing (scrape_docs, refresh_version), retrieval (search_docs, read_page, list_pages), library/version discovery (list_libraries, find_version), job management (list_jobs, get_job_info, cancel_job), removal (remove_docs), and generic URL fetching (fetch_url). Potential overlaps like scrape_docs vs refresh_version and read_page vs fetch_url are explicitly clarified by the descriptions.
All tool names use snake_case and follow a predictable verb_noun pattern: list_pages, scrape_docs, refresh_version, search_docs, read_page, list_libraries, find_version, list_jobs, get_job_info, cancel_job, remove_docs, fetch_url. There are no mixed conventions or vague standalone verbs.
The 12 tools are well-scoped for a documentation indexing and search server. Each tool earns its place across indexing, search/read, library/version discovery, job management, and removal, with no obvious redundancy or missing operational area.
The tool surface covers the full lifecycle: creating indexes (scrape_docs), updating them (refresh_version), reading/searching content (search_docs, read_page, list_pages), discovering libraries/versions (list_libraries, find_version), managing indexing jobs (list_jobs, get_job_info, cancel_job), deleting docs (remove_docs), and fetching arbitrary URLs (fetch_url). No significant gaps or dead ends are apparent for the stated domain.
Maintenance
Related MCP Connectors
MCP server for querying Forkast documentation
Versioned documentation registry and semantic search for AI tools and coding assistants.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for ingesting, chunking and semantically searching documentation files, with support for markdown, Python, OpenAPI, HTML files and URLs.-
- AlicenseCqualityDmaintenanceA Model Context Protocol server that enables intelligent searching across documentation for 30+ programming libraries and frameworks, fetching relevant information from official sources.238MIT
- AlicenseNot gradedqualityBmaintenanceSelf-hosted MCP server that indexes documentation from various sources and makes it searchable by AI assistants via the Model Context Protocol and REST API.94Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for documentation search that automatically indexes web documentation sites and provides semantic, full-text, or hybrid search capabilities.8 npmMIT