# docdex

Local-first documentation indexer and search daemon for codebases. Gives AI assistants ranked results, code structure awareness, and persistent project memory without uploading code to cloud storage.

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

## What it does

Docdex runs as a background daemon and indexes your repository once. It builds a dependency graph using AST analysis, ranks search results by intent, and stores project knowledge locally. When an assistant asks a question via MCP, the server returns relevant context instead of literal string matches.

Supports Python, JavaScript, TypeScript, Rust, Go, Java, C++, and more. Install once via npm; it auto-configures for Claude Desktop, Cursor, Codex, Windsurf, and other editors. Also tracks conversation history, agent preferences, and project notes entirely on disk.

Requires Node.js >= 18. On Windows, install Microsoft Visual C++ Redistributable 2015-2022 (x64) first, or the daemon will fail to start.

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

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add docdex -- npx -y docdex
```

### Codex

**Platform CLI**
```bash
codex mcp add docdex -- npx -y docdex
```

### Cursor

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

### GitHub Copilot

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

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add docdex npx -y docdex
```

## When to use it
- Search large repositories by intent and get ranked results, not raw string matches
- Let assistants understand code dependencies without uploading your project to a vector store
- Keep architecture decisions and project facts in one searchable place
- Index past conversations to find relevant context from earlier sessions

## Example prompts
- Walk me through how auth works in this codebase and show me potential gaps
- Find all callers of `addressGenerator` and tell me what would break if I renamed it
- Show every place we call `fetch` and explain why most lack error handling

## 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
