Skip to content

Summary

Self-hosted documentation retrieval for coding agents — index any library's docs from the web, GitHub, npm, PyPI or local files and query them by exact version. An open-source Context7 alternative.

Features

  • Version-scoped queries so answers match the dependency you actually installed
  • Indexes websites, GitHub repos, npm and PyPI packages, and local files
  • 90+ source-code languages plus PDF, Word, Excel and Markdown
  • Runs entirely on your machine — private and internal docs stay in-house
  • Pluggable embeddings: OpenAI, Google Gemini or fully local Ollama
  • Docker image with persistent volumes for a team-shared index
  • Open-source alternative to Context7, Nia and Ref.Tools

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "Docs MCP Server" tools will be available.
{
  "mcpServers": {
    "docs-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@arabold/docs-mcp-server@latest"
      ]
    }
  }
}

Description

Docs MCP Server attacks the most persistent failure mode in AI-assisted coding: the model confidently writing an API that was removed two major versions ago. It indexes documentation from wherever it actually lives — a docs website, a GitHub repository, an npm or PyPI package, or files on your disk — and serves it back over the Model Context Protocol scoped to the exact version your project depends on.

The differentiator is that you own the index. Context7, Nia and Ref.Tools solve the same problem as hosted services, which means your queries and often your code context leave your machine, and coverage is whatever the vendor has crawled. Here the pipeline runs locally: you point it at the sources you care about, including private or internal documentation that no hosted crawler will ever see, and nothing is transmitted except to whichever embedding model you choose.

Ingestion is broad — over 90 source-code languages plus PDF, Word, Excel and Markdown documents — so internal design docs and vendor PDFs can sit in the same searchable index as your dependency docs. Embeddings are pluggable across OpenAI, Google Gemini and local Ollama models; the Ollama path keeps the entire stack on your own hardware with no API key and no per-query cost.

Run it with npx @arabold/docs-mcp-server@latest for a quick trial, or the ghcr.io/arabold/docs-mcp-server container with mounted data and config volumes for a persistent index shared across a team. It exposes an HTTP interface on port 6280 alongside stdio, and works with Claude, Cline, Cursor and other MCP clients. MIT-licensed.

Related MCP Servers

MCP: Headroom

by Headroom Labs

New

Context-compression MCP server that shrinks tool outputs, logs, files and RAG chunks before they reach the model, cutting 60-95% of tokens on JSON payloads.

MCP: Engram

by Gentleman Programming

New

Persistent memory for coding agents as a single Go binary — SQLite and FTS5 behind MCP, an HTTP API, a CLI and a TUI, with no Node, Python or Docker required.

MCP: agent-device

by Callstack

New

Give a coding agent a live feedback loop on real mobile, TV and desktop apps — inspect, tap, type and capture evidence on iOS, Android and HarmonyOS over MCP or a CLI.

Browse all MCP servers →