Anyindex MCP — AI skill for Claude Code
Local MCP server for semantic code search.
How to install Anyindex MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open officialalexeev/anyindex-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Anyindex MCP does
Local MCP server for semantic code search. AST-aware chunking with tree-sitter, offline ONNX embeddings, hybrid vector + BM25 (RRF) ranking, one SQLite file. No API keys or cloud. Semantic code search for Claude Code, Cursor, opencode and AI coding agents.
Alternatives in AI
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Azure OpenAI .net — GPT-4, embeddings, DALL-E, and Whisper client 1.8k ★
README
anyindex-mcp
[](LICENSE) [](https://nodejs.org)
Fully local MCP server for indexing a codebase and answering semantic search queries about it. No external API calls, no telemetry, no server process to run.
- AST-aware chunking via tree-sitter — chunks follow function and class boundaries, never cut mid-statement
- Offline embeddings via ONNX in-process; after the first download the model works with no network
- Hybrid search — vector + BM25 fused with RRF
- One SQLite file in the project, plus an FTS5 index
- Works on Windows without Visual Studio Build Tools — see Platform
Quickstart
Wire it into a client — nothing to install, see [Client configuration](#client-configuration):
npx --package anyindex-mcp anyindex-mcp-server
Build the index once from your project, so the first search has something to read:
npx --package anyindex-mcp anyindex-mcp reindex --root /path/to/project
npx --package anyindex-mcp anyindex-mcp search --root /path/to/project "user authentication flow"
After a global `npm install -g anyindex-mcp` the `npx --package …` prefix drops away and the commands are just `anyindex-mcp reindex` and `anyindex-mcp search`.
A second `reindex` only touches changed files. To keep the index fresh while you edit, pass `--watch` to the **server**, not to the CLI:
npx --package anyindex-mcp anyindex-mcp-server --watch
To work on anyindex-mcp itself, from a checkout:
npm install
npm run build
npm run probe # environment check, prints ms/chunk
Requirements
Node `^22.19.0 || >=24.0.0`. Node 23.x does not qualify at any patch level.
Embedding dominates the wall clock: plan against ~1 s/chunk on 4 cores, not the optimistic `probe` figure. If a run stalls, it is memory pressure — free RAM and retry. Measured numbers
Related Skills
Semble Rs
Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp
Local Memory MCP
Persistent local memory for Claude, Cursor & Codex. 21 MCP tools, hybrid retrieval (BM25 + vector RRF), bi-tem
Reporecall
Local codebase memory for Claude Code. Tree-sitter AST indexing (22 languages), hybrid keyword + vector search
Diogenes Context Code Solver MCP
15 TDQS 5.0/5.0 deterministic AI agent & developer tools: AST context skeleton pruner, BPE token budget planne
Brain CLI
Persistent memory for AI agents and personal knowledge management. Single-file Python CLI: hybrid semantic + k
Kb Index
Hybrid (vector + BM25) search over many markdown repos in one SQLite file, served over MCP for coding agents:
Related Agents
Python RAG Backend Engineer
Production-grade Python RAG backend engineer specializing in ChromaDB vector storage, sentence-transformers em
Data Pipeline Engineer
Data pipeline specialist who generates embeddings, implements chunking strategies, manages vector indexes, and
Engineering RAG Pipeline Engineer
Production RAG specialist focused on chunking strategy, retrieval quality, hybrid search, re-ranking, and eval