Skip to content
MCP server

codeindex

Code indexing server that answers symbol, caller and blast-radius questions for agents

Runs locally

codeindex is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, macOS, Linux
Runs
Locally
Version
0.6.11
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add codeindex -- npx -y @munhq/codeindex

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "codeindex": {
      "command": "npx",
      "args": [
        "-y",
        "@munhq/codeindex"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "codeindex": {
      "command": "npx",
      "args": [
        "-y",
        "@munhq/codeindex"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "codeindex": {
      "command": "npx",
      "args": [
        "-y",
        "@munhq/codeindex"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "codeindex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@munhq/codeindex"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add codeindex -- npx -y @munhq/codeindex

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.codeindex]
command = "npx"
args = ["-y", "@munhq/codeindex"]

Codex setup guide

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

{
  "mcpServers": {
    "codeindex": {
      "command": "npx",
      "args": [
        "-y",
        "@munhq/codeindex"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user codeindex npx -- -y @munhq/codeindex

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "codeindex": {
          "command": "npx",
          "args": [
            "-y",
            "@munhq/codeindex"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

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

Configuration

  • CODEINDEX_WORKSPACEDirectory to index. Defaults to the enclosing project root of wherever the client starts the server, which is the right answer for every editor and agent that launches it inside a repository. Set it only when the server runs somewhere other than the code.
  • CODEINDEX_NO_DAEMONSet to 1 to keep the index inside this server process. By default every session on one repository shares a single background daemon that parses and watches the tree once, and each session is a thin relay onto it. Turn that off for a sandbox with no writable runtime directory.
  • CODEINDEX_DAEMON_IDLE_SECSSeconds with no session attached before the shared daemon exits and returns its memory. Default 900. Set 0 to keep it resident.

About codeindex

Instead of letting an agent read whole files, codeindex parses the repository once with tree-sitter and keeps a trigram text index, a word index and a dependency graph. Questions such as where a symbol is defined, who calls it or what breaks if a file changes come back in a few hundred tokens.

Sessions on the same repository share one background daemon that parses and watches the tree once, so extra agents attach as thin relays. The README measured a drop from 87 MB to 7 MB per session on a 720-file project, against one shared 77 MB daemon.

A single plan_change call bundles definitions, call sites, the file's architectural role, hardcoded literals and the transitive blast radius. An analyze tool adds 22 further checks, from security patterns and dead code to circular dependencies and duplicated functions.

Tools this server provides (16)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 14 of 16 tools read data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

statusName suggests: reads
Index stats: file and symbol counts, indexing state and watcher status.
searchName suggests: reads
Trigram-accelerated full-text search across indexed files.
find_symbolName suggests: reads
Find symbol definitions by name.
find_wordName suggests: reads
Exact identifier lookup in the word index.
find_callersName suggests: reads
Call sites of a symbol with the enclosing function.
get_outlineName suggests: reads
Structural outline of a file.
get_treeName suggests: reads
Directory tree with file metadata.
get_importsName suggests: reads
Files a given file imports.
get_imported_byName suggests: reads
Reverse dependencies of a file.
get_change_impactName suggests: reads
Transitive blast radius of changing a file.
plan_change
Refactor plan for a symbol or file.
get_hot_filesName suggests: reads
Recently changed files by recency.
read_fileName suggests: reads
Read file contents with an optional line range.
read_symbolName suggests: reads
Read only a symbol's source.
index_workspace
Index or re-index a project directory.
analyzeName suggests: reads
Run one of 22 code analyses.

What it does

Structural queries
Find symbol definitions, callers, imports and reverse dependencies without reading entire files.
Change planning
One call returns definitions, call sites, file role and the transitive blast radius of an edit.
Shared daemon
All sessions on one repository reuse a single index and file watcher.
22 analyses
Run checks for dead code, cycles, clones, coupling, security patterns and database schema drift.
40+ languages
Parses source with tree-sitter across more than forty languages.
Read-only Docker option
Run in a container with the workspace mounted read-only.

Good for

  • Plan a refactor by listing every caller of a function
  • Check what a file change could break before editing
  • Cut token use when an agent explores a large repository
  • Find dead code or circular dependencies in a codebase
  • Give several agent sessions one shared view of a repo

codeindex FAQ

How many tools does codeindex expose?

The README lists 16 MCP tools, including status, search, find_symbol, find_callers, get_change_impact, plan_change and analyze.

Does codeindex need an API key?

No. The README describes it as needing no key or config; with Node 18 or newer, one npx command registers it.

Which directory does codeindex index?

By default the enclosing project root where the client starts it. Set CODEINDEX_WORKSPACE to point it elsewhere.

Can I run codeindex in Docker?

Yes. The README gives a docker run command that mounts the workspace read-only.

How do I add codeindex to Claude Code?

Run this command in your terminal: claude mcp add codeindex -- npx -y @munhq/codeindex

What are the best alternatives to codeindex?

The closest alternatives to codeindex are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers