Atlas / MCP servers / mikerecognex / Codebase Index

Codebase IndexBLOCK

mcp/mikerecognex/codebase-index-1

17 MCP query tools for codebase navigation — functions, classes, imports, dependency graphs, change impact. Zero dependencies. 87% token reduction.

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
18 16r · 2w · 0d
Transport
stdio
License
AGPL-3.0
Stars
63
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/mcp-codebase-index/) [](https://github.com/MikeRecognex/mcp-codebase-index/actions/workflows/ci.yml) [](https://www.python.org/downloads/) [](https://www.gnu.org/licenses/agpl-3.0) [](https://modelcontextprotocol.io) []()

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

Indexes codebases by parsing source files into structural metadata -- functions, classes, imports, dependency graphs, and cross-file call chains -- then exposes 18 query tools via the Model Context Protocol, enabling Claude Code and other MCP clients to navigate codebases efficiently without reading entire files.

Automatic incremental re-indexing: In git repositories, the index stays up to date automatically. Before every query, the server checks git diff and git status (~1-2ms). If files changed, only those files are re-parsed and the dependency graph is rebuilt. No need to manually call reindex after edits, branch switches, or pulls.

Persistent disk cache: The index is saved to a pickle cache file (.codebase-index-cache.pkl) after every build. On subsequent server starts, the cache is loaded and validated against the current git HEAD — if the ref matches, startup is instant. If a small number of

Read from source at commit 5f61a0304631OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code (pypi)
claude mcp add mcp-codebase-index -- None mcp-codebase-index==0.2.2
03

Exposed tools (18)

16 read · 2 write · 0 destructive.

ToolRiskDescription
find_symbolreadFind where a symbol (function, method, class) is defined. Returns file path, line range, type, signature, and a source preview (~20 lines).
get_call_chainreadFind the shortest dependency path between two symbols (BFS through the dependency graph).
get_change_impactreadAnalyze the impact of changing a symbol. Returns direct dependents and transitive (cascading) dependents.
get_class_sourcereadGet the full source code of a class by name. Uses the symbol table to locate the file automatically.
get_classesreadList all classes (with name, lines, methods, bases, file). Filter to a specific file or get all project classes.
get_dependenciesreadWhat does this symbol call/use? Returns list of symbols referenced by the named function or class.
get_dependentsreadWhat calls/uses this symbol? Returns list of symbols that reference the named function or class.
get_file_dependencieswriteList files that this file imports from (file-level import graph).
get_file_dependentswriteList files that import from this file (reverse import graph).
get_function_sourcereadGet the full source code of a function or method by name. Uses the symbol table to locate the file automatically.
get_functionsreadList all functions (with name, lines, params, file). Filter to a specific file or get all project functions.
get_importsreadList all imports (with module, names, line). Filter to a specific file or get all project imports.
get_project_summaryreadHigh-level overview of the project: file count, packages, top classes/functions.
get_structure_summaryreadStructure summary for a file (functions, classes, imports, line counts) or the whole project if no file specified.
get_usage_statsreadSession efficiency stats: tool calls, characters returned vs total source, estimated token savings.
list_filesreadList indexed files. Optional glob pattern to filter (e.g.
reindexreadRe-index the entire project. Use after making significant file changes to refresh the structural index.
search_codebasereadRegex search across all indexed files. Returns up to 100 matches with file, line number, and content.
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
declared (1 observation(s))
Dependencies
pinned
Secrets in source
none-found

Findings (1)

HIGHCode injection · code.deserialize · CWE-78, CWE-94, CWE-95
src/mcp_codebase_index/server.py:190
payload = pickle.load(f)
Why it matters. deserialises untrusted bytes into live objects
Fix. use json or yaml.safe_load

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 5f61a0304631full audit observations/trust-audit/mcp-server/mikerecognex__codebase-index-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-075f61a0304631BLOCKD69first audit
06

Questions

What is the Codebase Index MCP server?

17 MCP query tools for codebase navigation — functions, classes, imports, dependency graphs, change impact. Zero dependencies. 87% token reduction.

What tools does Codebase Index expose?

18 in total: 16 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Codebase Index safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.

What credentials does Codebase Index need?

No credential environment variables were found in its source, so it appears to need none.

How does Codebase Index run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-codebase-index.

How current is this page?

The grade is for one exact copy of the source (5f61a0304631), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement