MCP Codebase Index MCP Server

A structural codebase indexer with an [MCP](https://modelcontextprotocol.io) server for AI-assisted development. Zero runtime dependencies — uses

Remote serverstreamable-httpPython

What is the MCP Codebase Index MCP server?

MCP Codebase Index MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. A structural codebase indexer with an MCP server for AI-assisted development. Zero runtime dependencies — uses Python's ast module for Python analysis and regex-based parsing for TypeScript/JS, Go.

What the assistant can call

Once MCP Codebase Index is connected, these are the calls the assistant has available:

  • get_project_summary — File count, packages, top classes/functions
  • list_files — List indexed files with optional glob filter
  • get_structure_summary — Structure of a file or the whole project
  • get_functions — List functions with name, lines, params
  • get_classes — List classes with name, lines, methods, bases
  • get_imports — List imports with module, names, line
  • get_function_source — Full source of a function/method
  • get_class_source — Full source of a class
  • find_symbol — Find where a symbol is defined (file, line, type)
  • get_dependencies — What a symbol calls/uses
  • get_dependents — What calls/uses a symbol
  • get_change_impact — Direct + transitive dependents

Configuration and credentials

You will need one environment variable: PROJECT_ROOT. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Codebase Index's toolset — get_project_summary, list_files, get_structure_summary and 11 more — is a fair guide to whether it matches your workflow. It is maintained by mikerecognex; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP Codebase Index's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MCP Codebase Index.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp codebase index mcp server does with a few real requests.

Available tools

ToolWhat it does
get_project_summaryFile count, packages, top classes/functions
list_filesList indexed files with optional glob filter
get_structure_summaryStructure of a file or the whole project
get_functionsList functions with name, lines, params
get_classesList classes with name, lines, methods, bases
get_importsList imports with module, names, line
get_function_sourceFull source of a function/method
get_class_sourceFull source of a class
find_symbolFind where a symbol is defined (file, line, type)
get_dependenciesWhat a symbol calls/uses
get_dependentsWhat calls/uses a symbol
get_change_impactDirect + transitive dependents
get_call_chainShortest dependency path (BFS)
get_file_dependenciesFiles imported by a given file

How to install the MCP Codebase Index MCP server

{
  "mcpServers": {
    "codebase-index": {
      "command": "uvx",
      "args": ["openclaw-mcp-adapter"],
      "env": {
        "PROJECT_ROOT": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
PROJECT_ROOTConfiguration value read at startup.Optional

Example prompts to try

  • Use MCP Codebase Index to get project summary.
  • Use MCP Codebase Index to list files.
  • Use MCP Codebase Index to get structure summary.

Frequently asked questions

It connects MCP Codebase Index to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (get_project_summary, list_files, get_structure_summary, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Codebase Index directly.