code-indxr
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
code-indxr
100% local, cross-platform MCP server and CLI for hybrid semantic + keyword code search and deterministic repository orientation, powered by Ollama, Tree-sitter, LanceDB, and FastMCP.
Zero source code leaves your machine.
Why Use code-indxr?
Deterministic Repo Orientation (
<20ms): Gives AI coding agents a token-bounded directory tree, detected manifests (pyproject.toml,package.json,Cargo.toml,go.mod,pubspec.yaml, etc.), and class/function symbol outlines before they search.Hybrid RAG Code Search: Combines cosine vector similarity (
nomic-embed-textvia local Ollama) with LanceDB native BM25 full-text search using Reciprocal Rank Fusion (RRF), plus offlinekeywordfallback.Fast Incremental & Resumable Indexing: Respects
.gitignore, lockfiles, and binary files; skips unchanged files viastat+blake2bhashing; checkpoints batches to disk so interrupted CLI or timed-out MCP runs resume cleanly.Multi-Client & Concurrent-Safe: Uses OS-level per-repo file locks (
msvcrt/fcntl) and SQLite WAL mode so multiple IDE MCP servers and terminal CLI runs share one local store safely.
Related MCP server: MCP Codebase RAG Server
Prerequisites
Python
>=3.11Ollama running locally with an embedding model pulled:
ollama pull nomic-embed-textuv(recommended) orpipxto installcode-indxrglobally in an isolated environment:
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh # Or via Homebrew: brew install uvWindows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # Or via winget: winget install --id=astral-sh.uv -e
Restart your terminal after installing so uv is on your PATH.
Quickstart
Install globally with uv or pipx:
# Using uv
uv tool install git+https://github.com/Fast-Kode/code-indxr.git
# Or using pipx
pipx install git+https://github.com/Fast-Kode/code-indxr.gitVerify Ollama, model availability, and local storage:
code-indxr doctorCold-index any repository from your terminal (recommended for large repositories):
code-indxr index /path/to/your/repoQuery from the CLI:
code-indxr map your-repo
code-indxr outline your-repo --path-prefix src/
code-indxr search "refresh JWT token" --repo your-repoMCP Client Setup
Run code-indxr serve over stdio (see examples/mcp/ for copy-paste files).
Google Antigravity
Add to ~/.gemini/config/mcp_config.json (Windows: %USERPROFILE%\.gemini\config\mcp_config.json):
{
"mcpServers": {
"code-indxr": {
"command": "code-indxr",
"args": ["serve"],
"env": {
"CODE_INDXR_OLLAMA_URL": "http://127.0.0.1:11434",
"CODE_INDXR_EMBED_MODEL": "nomic-embed-text"
}
}
}
}Claude Code
claude mcp add --scope user code-indxr -- code-indxr serveVS Code / GitHub Copilot
Add to .vscode/mcp.json (note VS Code uses "servers" and "type": "stdio"):
{
"servers": {
"code-indxr": {
"type": "stdio",
"command": "code-indxr",
"args": ["serve"],
"env": {
"CODE_INDXR_OLLAMA_URL": "http://127.0.0.1:11434",
"CODE_INDXR_EMBED_MODEL": "nomic-embed-text"
}
}
}
}MCP Tools
Tool | Purpose |
| Token-bounded directory tree, manifests, and language counts |
| Deterministic class/function signatures and imports |
| Cross-repo |
| Incremental, batch-resumable indexing ( |
| List indexed repositories and language breakdowns |
| Check index state, schema/model info, and changed files |
| Delete a repository and its indexed chunks |
| Verify Ollama connectivity, model, and store stats |
Default Storage Locations
OS | Default |
Windows |
|
macOS |
|
Linux |
|
Environment Variables
Variable | Default | Description |
| OS default | Directory for |
|
| Local Ollama HTTP base URL |
|
| Ollama embedding model name |
|
| Chunks per |
|
| Max concurrent |
|
| HTTP timeout in seconds for Ollama requests |
|
| Files per disk checkpoint batch |
|
| Soft time budget in seconds for MCP |
|
| Max source file size in bytes (512 KB) |
|
| Max characters per AST/window chunk |
|
| Overlap lines for fallback window chunking |
|
|
|
Contributing & Support
See CONTRIBUTING.md for local dev setup, testing, and PR guidelines.
See SECURITY.md for reporting vulnerabilities and CHANGELOG.md for release history.
Licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your personal library, readable by AI agents: durable snapshots, hybrid search, 46 MCP tools.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Self-hosted AI workspace: semantic RAG document search, long-term memory, and AI chat via MCP.
Cloud or self-hosted knowledge for AI agents: hybrid search, reranking, GraphRAG, scoped MCP tools.
Related MCP Servers
- AlicenseAqualityBmaintenanceNexus-MCP is a local MCP server for coding agents. Hybrid code search and a call graph for 10 languages give the agent the right code in one call, so it reads less. No API key, no telemetry, MIT. * 95% fewer tokens to reach the right file * About 9× faster search than Grep and Read * Live Claude Code runs on 11 repos: cost per task lower on 8 of 11599 PyPIMIT
- FlicenseAqualityDmaintenanceProvides semantic vector search over local codebases via MCP, enabling hybrid search (dense + sparse + RRF) for any MCP client like GitHub Copilot or Claude Desktop.58-
- AlicenseBqualityAmaintenanceLocal repo-intelligence MCP for coding agents: indexes source, symbols, call graphs, git/GitHub history, and source-bound repo memories into local database.4727MIT
- FlicenseNot gradedqualityCmaintenanceProvides a local-first code indexing and search engine for coding agents via MCP, enabling precise codebase queries, symbol lookup, and freshness-aware retrieval.-