# mcp-documentation-server

A local document store with semantic search for AI coding agents. Useful when the agent should search your own notes instead of the web.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 343
- Author: andrea9293
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/andrea9293/mcp-documentation-server
- Updated: 2026-08-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-documentation-server

## What it does

Documents stay on your disk, and the server searches them two ways at once: full-text and vector. Embeddings come from the local `Xenova/all-MiniLM-L6-v2` model via Transformers.js, so no external database or cloud API is involved. Data lives in `~/.mcp-documentation-server` by default.

The tool set includes `add_document`, `search_all_documents` and `get_context_window`, which returns neighbouring chunks so the model sees more than the matched fragment. Drop `.txt`, `.md` or `.pdf` files into the uploads folder and run `process_uploads`. A web UI starts on port 3080 with browsing, uploads and search. The same operations are exposed as a REST API on `http://127.0.0.1:3080/api/`, which keeps MCP tool schemas out of the conversation context.

AI-powered search through `search_documents_with_ai` only runs when `GEMINI_API_KEY` is set; without it you still get the local tools. Set `START_WEB_UI=false` to turn the interface off. `WEB_HOST=0.0.0.0` binds it to every interface, which puts your document base on the network for anyone on the same machine or LAN.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-documentation-server -- npx -y @andrea9293/mcp-documentation-server
```

### Codex

**Platform CLI**
```bash
codex mcp add mcp-documentation-server -- npx -y @andrea9293/mcp-documentation-server
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-documentation-server": {
            "command": "npx",
            "args": [
                "-y",
                "@andrea9293/mcp-documentation-server"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-documentation-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@andrea9293/mcp-documentation-server"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add mcp-documentation-server npx -y @andrea9293/mcp-documentation-server
```

## When to use it
- find a specific passage in your own project docs
- give an agent a local knowledge base with no cloud dependency
- index PDF and Markdown files in one searchable store
- pull surrounding chunks around a matched fragment
- expose document search over REST instead of MCP schemas

## Example prompts
- Add a document describing the project architecture to the knowledge base
- Search all documents for where the config format is described
- Show the context window around that chunk

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
