Skip to main content

Code Index

io.github.achreftlili/code-index

v1.0.6Updated May 14, 2026stdio · PyPI

SQLite-backed hybrid (vector + FTS) code search index for Claude Code over MCP.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add code-index -- uvx mcp-code-index==1.0.6

Configuration

6 settings.

  • CODE_INDEX_EMBEDDER
    Env var· optional
    Embedder backend. Only 'jina' (local jina-embeddings-v2-base-code via sentence-transformers) is supported; the variable exists for future expansion.
  • CODE_INDEX_EMBED_MODEL
    Env var· optional
    HuggingFace model id. Defaults to 'jinaai/jina-embeddings-v2-base-code'. Override only if you know the model is dim-compatible.
  • CODE_INDEX_EMBED_DIM
    Env var· optional
    Embedding dimension. Defaults to 768 (matches jina-embeddings-v2-base-code). Must match the model's output dim.
  • CODE_INDEX_DB
    Env var· optional
    Path to the SQLite index database. Defaults to .claude/index.db relative to the working directory.
  • CODE_INDEX_EMBED_BATCH
    Env var· optional
    Encode batch size (default 32). Lower (e.g. 8 or 4) to reduce peak memory if the GPU OOMs on large files.
  • CODE_INDEX_EMBED_DEVICE
    Env var· optional
    Torch device override: 'cpu', 'mps', or 'cuda'. Unset = auto-detect. Set 'cpu' to avoid Apple-Silicon MPS out-of-memory errors.

Listed in the official MCP Registry since May 14, 2026. Mirrored daily; last checked Nov 26, 2026.