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
- 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 ★
- Empryo — Empryo issue tracker + SoulForge (v2) 1.1k ★
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
Brain CLI
Persistent memory for AI agents and personal knowledge management. Single-file Python CLI: hybrid semantic + k
Pangu
盘古 — AI Agent 多模态记忆系统:Wing→Room→Drawer 分层存储、ONNX 本地嵌入语义检索(SQLite FTS5 + RRF 融合)、艾宾浩斯遗忘曲线与神经激活扩散;提供 REST API +
Ast Outline
ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, o
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
RAG Specialist
GAIA RAG and agentic-retrieval specialist. Use PROACTIVELY for RAG pipeline work, document indexing, embedding