Code Index MCP Server
by achreftliliio.github.achreftlili/code-indexv1.0.6
SQLite-backed hybrid (vector + FTS) code search index for Claude Code over MCP.
context tax
queued
security
queued
cold start
queued
freshness
Slowing5mo ago
Install Code Index MCP server
Install in Claude Code
claude mcp add code-index-achreftlili -- uvx mcp-code-indexInstall in Cursor
{
"mcpServers": {
"code-index-achreftlili": {
"command": "uvx",
"args": [
"mcp-code-index"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"code-index-achreftlili": {
"command": "uvx",
"args": [
"mcp-code-index"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"code-index-achreftlili": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-code-index"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"code-index-achreftlili": {
"command": "uvx",
"args": [
"mcp-code-index"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| 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. |
Freshness
Slowing — last maintenance signal 5mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-05-14 · 5mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-05-14 · 5mo ago · official registry · v1.0.6
FAQ
›How do I install the Code Index MCP server in Claude Code?
Run: claude mcp add code-index-achreftlili -- uvx mcp-code-index. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Code Index require an API key?
No required environment variables are declared in its published metadata.
›Can I use Code Index as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Code Index in the official MCP registry?
Yes, as io.github.achreftlili/code-index.
Alternatives to Code Index
Other database MCP servers.