Skip to content
mikerecognex avatar

Mcp Codebase Index

mikerecognex/mcp-codebase-index

Structural code navigation for AI assistants: functions, classes, imports, and dependency chains without full-file reads.

CCM score
62 of 100
GitHub stars
63
tools
18
transport
STDIO
last updated
Feb 17, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Reads structure with get_project_summary, list_files, get_functions, get_classes, and get_imports, plus full bodies via get_function_source and get_class_source
  • Traces relationships with find_symbol, get_dependencies, get_dependents, get_change_impact, and get_call_chain; search uses search_codebase with regex
  • Runs locally over stdio with zero runtime dependencies, parsing Python via ast and TypeScript, Go, Rust, and C# by regex
  • Designed for large codebases where an assistant should locate and inspect code without reading whole files

Tools

18 tools

Public tool metadata for what this MCP can expose to an agent.

get_project_summaryFile count, packages, top classes/functions

File count, packages, top classes/functions

No parameter schema in public metadata yet.

list_filesList indexed files with optional glob filter

List indexed files with optional glob filter

No parameter schema in public metadata yet.

get_structure_summaryStructure of a file or the whole project

Structure of a file or the whole project

No parameter schema in public metadata yet.

get_functionsList functions with name, lines, params

List functions with name, lines, params

No parameter schema in public metadata yet.

get_classesList classes with name, lines, methods, bases

List classes with name, lines, methods, bases

No parameter schema in public metadata yet.

get_importsList imports with module, names, line

List imports with module, names, line

No parameter schema in public metadata yet.

get_function_sourceFull source of a function/method

Full source of a function/method

No parameter schema in public metadata yet.

get_class_sourceFull source of a class

Full source of a class

No parameter schema in public metadata yet.

find_symbolFind where a symbol is defined (file, line, type)

Find where a symbol is defined (file, line, type)

No parameter schema in public metadata yet.

get_dependenciesWhat a symbol calls/uses

What a symbol calls/uses

No parameter schema in public metadata yet.

get_dependentsWhat calls/uses a symbol

What calls/uses a symbol

No parameter schema in public metadata yet.

get_change_impactDirect + transitive dependents

Direct + transitive dependents

No parameter schema in public metadata yet.

get_call_chainShortest dependency path (BFS)

Shortest dependency path (BFS)

No parameter schema in public metadata yet.

get_file_dependenciesFiles imported by a given file

Files imported by a given file

No parameter schema in public metadata yet.

get_file_dependentsFiles that import from a given file

Files that import from a given file

No parameter schema in public metadata yet.

search_codebaseRegex search across all files (max 100 results)

Regex search across all files (max 100 results)

No parameter schema in public metadata yet.

reindexForce full re-index (rarely needed — incremental updates happen automatically in git repos)

Force full re-index (rarely needed — incremental updates happen automatically in git repos)

No parameter schema in public metadata yet.

get_usage_statsSession efficiency stats: tool calls, characters returned vs total source, estimated token savings

Session efficiency stats: tool calls, characters returned vs total source, estimated token savings

No parameter schema in public metadata yet.

Readme

mcp-codebase-index

PyPI version CI Python 3.11+ License: AGPL-3.0 MCP Zero Dependencies

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, Rust, and C#. Requires Python 3.11+.

What It Does


View the full README on GitHub

Details

Repository
github.com/mikerecognex/mcp-codebase-index
Category
Developer Tools
Package
mcp-codebase-index
Transport
STDIO
Registry
MCP registry, active

Questions

What does the mcp-codebase-index MCP server let an agent do?

It indexes a codebase into structural metadata such as functions, classes, imports and dependency graphs, so an agent can navigate code without reading whole files. It exposes 18 query tools, including find_symbol, get_change_impact, get_call_chain and search_codebase. In git repositories the index updates automatically before each query.

Which languages does the mcp-codebase-index server support?

Python is parsed with the ast module for full analysis. TypeScript and JavaScript, Go, Rust and C# are handled with regex-based parsing, and Markdown and text files get section detection. Other file types only receive line counts.

How do I install the mcp-codebase-index MCP server?

Install it with pip install "mcp-codebase-index[mcp]", which includes the MCP server dependency. Then run it with PROJECT_ROOT set to the directory you want indexed. PROJECT_ROOT is a required environment variable and the server communicates over stdio.

Which category is mcp-codebase-index in, and what sets it apart from other servers there?

It is listed in Developer Tools on Claude Marketplaces, alongside Front-End Checklist, Context7, Chrome DevTools MCP, Codebase Memory and Mcp Server Filesystem. It stands out for its persistent disk cache, which reloads the index on restart and avoids a full rebuild after small changes.

Similar to Mcp Codebase Index

More Developer Tools