# Documentation Search

> Documentation Search is an open-source MCP server for knowledge and memory. Local retrieval-only RAG over any markdown docs repo, with cited passages. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Windows, Linux, CLI
- **Repository:** https://github.com/alyiox/mcp-docs-ask
- **MCP Registry name:** io.github.alyiox/mcp-docs-ask
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

This server indexes a folder or git repository of Markdown and hands back the passages that best match a question, leaving the answer to the MCP host. There is no answer-generating model and no API key: embeddings come from sentence-transformers models that run on your machine, and the weights are downloaded once on first use.

Configuration is a JSON file listing documentation collections. Each can point at a local path or a git URL with a branch, tag or SHA, and can include or exclude globs. Optional layers split a repo by path, for example guides versus API reference, so a search can be narrowed. Chunks follow headings, and passages come back with their heading path and numbered citations within a character budget.

The index rebuilds itself when files, config or the embedding model change, and private git sources use the credentials already on the machine. It needs Python 3.13 or newer and uv, and the README recommends different embedding models for English-only, Chinese-only and multilingual docs.

## Features

- **Any Markdown source:** Indexes a local path or a git URL, fetched on reindex.
- **Local embeddings:** Runs sentence-transformers on your machine without API keys.
- **Layers:** Splits a repo by path globs so searches can target guides or API reference.
- **Cited passages:** Returns full chunks with heading paths and numbered citations.
- **Self-refreshing index:** Rebuilds when files, config or the embedding model change.
- **Model choice:** Lets you pick English, Chinese or multilingual embedding models per collection.

## Good for

- Search a product's docs repo from an editor assistant
- Query internal team notes kept as Markdown
- Narrow questions to API reference or how-to guides
- Get citations to the exact source file for each answer

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-docs-ask -- uvx mcp-docs-ask
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-docs-ask -- uvx mcp-docs-ask
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-docs-ask]
command = "uvx"
args = ["mcp-docs-ask"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-docs-ask uvx -- mcp-docs-ask

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-docs-ask": {
      "command": "uvx",
      "args": [
        "mcp-docs-ask"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 3 tools reads data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_docs` (name suggests: reads): Lists configured docs collections, layer filters and index state
- `ask_docs`: Retrieves grounded passages and citations for a question
- `reindex`: Syncs the git source if any and rebuilds the vector index

## FAQ

### Does Documentation Search generate answers?

No. It does retrieval only; the host model writes the answer from the returned passages.

### Does Documentation Search need API keys?

No. Embeddings run locally with sentence-transformers.

### What are the requirements?

Python 3.13 or newer, uv, and git if the source is a git URL.

### How do I access a private repo?

Use git credentials already on the machine, such as gh auth login or SSH; no tokens go in the config.

### Is Documentation Search free?

Yes. Documentation Search is open source, so you can use and self-host it for free.

### How do I add Documentation Search to Claude Code?

Run this command in your terminal: claude mcp add mcp-docs-ask -- uvx mcp-docs-ask

### What are the best alternatives to Documentation Search?

The closest alternatives to Documentation Search are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/documentation-search
