mcpbeat Sign in

Code Index MCP Server

by achreftlili Your server? Claim it
local only

Code Index runs on your own machine — the client starts it, so there is no endpoint to ping. 213 installs a week from pypi. Last commit 14 May 2026.

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

Installs per day peak 138 · avg 40 · -20% w/w
a month agotoday
213
Installs / week
pypi · mcp-code-index
1
Stars
3 open issues
14 May 2026
Last commit
0 releases in 90 days
MIT
License
Python

What the code does

We read the source, 4 h ago · rules 3dff92dd89df

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add code-index -- uvx mcp-code-index
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "code-index": {
      "args": [
        "mcp-code-index"
      ],
      "command": "uvx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.code-index]
command = "uvx"
args = ["mcp-code-index"]
.cursor/mcp.json
{
  "mcpServers": {
    "code-index": {
      "args": [
        "mcp-code-index"
      ],
      "command": "uvx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "code-index": {
      "args": [
        "mcp-code-index"
      ],
      "command": "uvx"
    }
  }
}

This one needs environment variables set before it will start: 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.). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Code Index

same job, measured the same way
Code Context
by infino-ai

Local code search for AI coding agents: hybrid search and SQL aggregation over an in-repo index.

93 installs/wk local only
CoderSwap MCP Server
by njlnaet

Build searchable AI research knowledge bases with hybrid vector search directly in Claude Desktop.

26 installs/wk local only
Claudex
by kunwar-shah

Persistent memory + FTS5 search MCP server for Claude Code conversation history.

84 installs/wk local only
Ailist MCP
by hifriendbot

MCP server for AiList — search and discover Ai projects from Claude Code

35 installs/wk local only
Melchizedek
by louis49

Persistent memory for Claude Code — offline, single-file, hybrid search.

42 installs/wk local only
Memory Fts
by kurovu146

Long-term memory for Claude Code with SQLite FTS5 search and BM25 ranking

33 installs/wk local only
Vector DB MCP
by kroq86

Assembly-accelerated DuckDB MCP server for code search, indexing, and symbol lookup.

local only
Zendesk MCP
by michaelrice

Zendesk MCP server for Claude Code and other MCP clients

222 installs/wk local only

Code Index — questions

Answers built from our own checks of this server.

Why is there no uptime for Code Index?
Code Index runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package mcp-code-index was installed 213 times last week.
How do I connect Code Index?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls mcp-code-index straight from pypi; nothing to host, nothing to sign up for.
How many people use Code Index?
The pypi package mcp-code-index was installed 213 times in the last week. Week over week that is -20%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Code Index open source?
Yes — it is published under the MIT licence, written in Python, 1 stars on GitHub and 3 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.