Code Index

MCP

by achreftlili · v1.0.6

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

mcplocal

MCP configuration

stdio

Command

uvx mcp-code-index==1.0.6

Environment

  • CODE_INDEX_EMBEDDER

    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

    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

    Embedding dimension. Defaults to 768 (matches jina-embeddings-v2-base-code). Must match the model's output dim.

  • CODE_INDEX_DB

    Path to the SQLite index database. Defaults to .claude/index.db relative to the working directory.

  • CODE_INDEX_EMBED_BATCH

    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

    Torch device override: 'cpu', 'mps', or 'cuda'. Unset = auto-detect. Set 'cpu' to avoid Apple-Silicon MPS out-of-memory errors.

Install in one click with Zurek

Browse here, install from the native macOS app — pick targets, fill env vars, and write configs safely.