← Index

Code Index

io.github.achreftlili/code-index·v0.1.1·Databases
Quality Score
85
/100

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

§01  Install
Claude Desktop (uvx)
{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ],
      "env": {
        "VOYAGE_API_KEY": "<your-voyage_api_key>",
        "CODE_INDEX_EMBEDDER": "<code_index_embedder>",
        "CODE_INDEX_EMBED_MODEL": "<code_index_embed_model>",
        "CODE_INDEX_EMBED_DIM": "<code_index_embed_dim>",
        "CODE_INDEX_DB": "<code_index_db>",
        "OLLAMA_URL": "<ollama_url>"
      }
    }
  }
}
§02  Environment variables
VOYAGE_API_KEY
secret

Voyage embeddings API key. Required when CODE_INDEX_EMBEDDER is unset or set to 'voyage' (the default backend).

CODE_INDEX_EMBEDDER

Embedder backend: 'voyage' (default) or 'ollama'. Set to 'ollama' to use a local Ollama server instead of Voyage.

CODE_INDEX_EMBED_MODEL

Embedding model name. Defaults to 'voyage-code-3' for Voyage. Must match the embedder's available models.

CODE_INDEX_EMBED_DIM

Embedding dimension. Defaults to 1024 (matches voyage-code-3). 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.

OLLAMA_URL

Ollama server URL when CODE_INDEX_EMBEDDER=ollama. Defaults to http://localhost:11434.

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
15
installability
25
documentation
15
stability
5
§04  Alternatives in Databases