
AiDex
Persistent code index + memory, semantic search & live telemetry for AI coding agents — 50x less context than grep.
Add to your client
Copy the config for your MCP client and paste it into its config file.
npm install -g aidex-mcpPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"aidex": {
"command": "aidex",
"args": []
}
}
}Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf
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
About AiDex
AiDex bundles 33 tools in one stdio MCP server to give AI coding agents persistent memory, fast/precise code search, and live telemetry. It indexes your project once with Tree-sitter into a portable SQLite database (.aidex/index.db), then answers 'where is X defined?' or 'what methods does this file have?' in ~50 tokens instead of the 2,000+ a grep+read loop costs. Beyond search it adds a task backlog with scheduled/recurring tasks, cross-session notes, cross-project and global search, shared AI guidelines, screenshots optimized for LLM context, a universal HTTP Log Hub with a hardware-monitor-style Debug Dashboard, a Control API that lets the AI drive any HTTP-capable app, and an interactive browser Viewer. v2.0 added local-embedding semantic search with an optional, privacy-gated LLM layer.
Tools & capabilities (31)
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.
aidex_statusShow index statistics for a project.
aidex_summaryProject overview: entry points and language breakdown.
aidex_treeFile tree with statistics.
aidex_describeAdd documentation to the project summary.
aidex_filesList project files by type (code/config/doc/asset/test/other/dir), with time filtering.
aidex_linkLink another indexed project as a dependency.
aidex_unlinkRemove a linked project.
aidex_linksList linked projects.
aidex_scanFind indexed projects within a directory tree.
aidex_global_initScan a directory tree and register all indexed projects in the global DB (optionally auto-index).
aidex_global_querySearch identifiers across ALL registered projects.
aidex_global_signaturesSearch methods/types by name across all projects (filter by kind).
aidex_global_statusList all registered projects with stats.
aidex_global_refreshUpdate stats and remove stale projects from the global DB.
aidex_global_guidelineStore/retrieve persistent AI guidelines and coding conventions (key-value, global).
aidex_sessionStart a session, detect external changes, auto-reindex, and check scheduled tasks across all projects.
aidex_noteRead/write/append/clear session notes with searchable archived history and summaries.
aidex_taskCreate/read/update/delete tasks with priority, tags, summaries, history log, due dates and recurring intervals.
aidex_tasksList and filter tasks by status, priority or tag.
aidex_logUniversal HTTP log receiver — start the Log Hub, query logs, live-stream in the Viewer.
aidex_screenshotCross-platform screen capture (fullscreen/window/region/rect) with scale + color reduction to save up to 95% tokens.
aidex_windowsList open windows for screenshot targeting.
aidex_viewerOpen/close an interactive browser UI with file tree, signatures, tasks, logs and live reload.
When to use it
- Replace grep/glob for code navigation so the AI burns ~50 tokens per search instead of 2,000+, keeping context for real work
- Give an AI assistant persistent memory across sessions via notes, a task backlog, and scheduled/recurring reminders
- Run exact, semantic, or hybrid search over code, docs and workspace — find a function by concept even without knowing its name
- Search every repo at once ('Have I ever written a transparent window?') and store shared coding conventions/review checklists
- Stream live logs from any program over HTTP and let the AI watch (and even drive, via the Control API) your running app
Security notes
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 FAQ
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.
How do I install and register it?
Run `npm install -g aidex-mcp`; auto-setup detects your installed AI clients and registers AiDex (skip with AIDEX_NO_SETUP=1). Or register manually by adding an mcpServers entry with command "aidex" (both `aidex` and `aidex-mcp` work as commands).
Alternatives to AiDex
Compare all alternatives →Microsoft's official browser-automation MCP using Playwright's accessibility tree (no vision model).
Up-to-date, version-specific library documentation injected into your coding agent.
Code intelligence engine that indexes repos into a persistent knowledge graph for AI coding agents.