MCP Servers / development / mcp-codebase-index

mcp-codebase-index

JSON →
httpnone53development

Structural codebase indexer with 17 query tools. 87% token reduction. Zero dependencies.

Install
How to run this server
[ { "cmd": "pip install \"mcp-codebase-index[mcp]\"", "imports": [] } ]
server path: mcp-codebase-index
Tools
What this server exposes
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
get_call_chain
Shortest dependency path (BFS)
get_file_dependencies
Files imported by a given file
get_file_dependents
Files that import from a given file
search_codebase
Regex search across all files (max 100 results)
reindex
Force full re-index (rarely needed — incremental updates happen automatically in git repos)
get_usage_stats
Session efficiency stats: tool calls, characters returned vs total source, estimated token savings
Configuration
Environment & auth
authnone
Resources
mcp-codebase-index — MCP Server · libregistry