Skip to content
MCP server

Code Index

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.6
Listing updated
5 days ago

About Code Index

Code Index is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add code-index -- uvx mcp-code-index

Add to claude_desktop_config.json

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "code-index": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "code-index": {
      "command": "uvx",
      "args": [
        "mcp-code-index"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

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

Pricing

Open source

Code Index FAQ

Is Code Index free?

Yes. Code Index is open source, so you can use and self-host it for free.

How do I add Code Index to Claude Code?

Run this command in your terminal: claude mcp add code-index -- uvx mcp-code-index

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers