
How to add AiDex to Claude Desktop
Persistent code index + memory, semantic search & live telemetry for AI coding agents — 50x less context than grep. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 · 37★ · stdio · no auth
Claude Desktop config for AiDex
npm install -g aidex-mcp{
"mcpServers": {
"aidex": {
"command": "aidex",
"args": []
}
}
}Setup steps
- 1Open Claude Desktop → Settings → Developer → Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the AiDex config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm AiDex's tools appear under the 🔌 tools menu.
Before you start
- Node.js >= 18
- An MCP-compatible client (Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, or VS Code Copilot)
- Optional: an LLM API key (Anthropic / OpenAI / OpenRouter / Ollama / HuggingFace) only if you enable the optional LLM reranking/translation layer
What AiDex can do in Claude Desktop
aidex_initIndex a project (creates .aidex/); pass embeddings:true to enable semantic search.
aidex_querySearch identifiers by term with mode exact/contains/starts_with and optional time filtering.
aidex_searchHybrid / semantic / exact retrieval over embedded code, docs and workspace items.
aidex_settingsConfigure embeddings, LLM provider/model and the llm_send_code privacy switch (Settings tab in Viewer).
aidex_signatureGet the classes + methods of a single file without reading it.
aidex_signaturesGet signatures for multiple files via a glob pattern.
aidex_updateRe-index a single changed file (incremental).
aidex_removeRemove a deleted file from the index.
Security
Local-first: works fully offline with pure embeddings; the index lives in your project at .aidex/index.db (SQLite). The optional LLM layer (Anthropic / OpenAI / OpenRouter / Ollama / HuggingFace) is opt-in and requires an API key configured in Settings — never required for the MCP connection itself. Privacy switch `llm_send_code` defaults to OFF, so only your literal query and metadata (paths, names, anchors) are sent to the LLM; code bodies stay local. Auto-setup (run on `npm install -g`) detects installed AI clients and registers AiDex, and writes usage instructions into client config files (e.g. ~/.claude/CLAUDE.md); skip it with AIDEX_NO_SETUP=1. The Log Hub / Debug Dashboard / Viewer open local HTTP servers (ports 3333/3334/3335) that accept unauthenticated POSTs from any local program.
AiDex + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the AiDex config there under the "mcpServers" key and restart the client.
Is AiDex safe to use with Claude Desktop?
Local-first: works fully offline with pure embeddings; the index lives in your project at .aidex/index.db (SQLite). The optional LLM layer (Anthropic / OpenAI / OpenRouter / Ollama / HuggingFace) is opt-in and requires an API key configured in Settings — never required for the MCP connection itself. Privacy switch `llm_send_code` defaults to OFF, so only your literal query and metadata (paths, names, anchors) are sent to the LLM; code bodies stay local. Auto-setup (run on `npm install -g`) detects installed AI clients and registers AiDex, and writes usage instructions into client config files (e.g. ~/.claude/CLAUDE.md); skip it with AIDEX_NO_SETUP=1. The Log Hub / Debug Dashboard / Viewer open local HTTP servers (ports 3333/3334/3335) that accept unauthenticated POSTs from any local program.
Does AiDex require an LLM API key or send my code to the cloud?
No. It is local-first and works fully offline with pure local embeddings. The LLM layer (Anthropic / OpenAI / OpenRouter / Ollama / HuggingFace) is opt-in. Even when enabled, the llm_send_code privacy switch defaults to OFF, so only your literal query and metadata are sent — code bodies stay local.
Which AI clients and languages are supported?
Any MCP-compatible client, with documented setup for Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI and VS Code Copilot. It parses 12 languages: C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby and HCL/Terraform.
Where is the index stored and does it persist between sessions?
Each project keeps its own .aidex/index.db (SQLite with WAL mode) as the single source of truth; a global registry lives at ~/.aidex/global.db. The index persists indefinitely and survives sessions, with incremental single-file updates after changes.