
Code Analyze MCP
Gives Claude structural views of codebases across 11 languages using tree-sitter. The `analyze_directory` tool maps LOC and symbol counts, `analyze_file` extracts functions and classes with line ranges, and `analyze_symbol` traces call graphs without dumping raw source. Benchmarks show 42–68% cost savings on real migration tasks by keeping file contents out of context until you need them. Also includes `edit_replace` for exact-match rewrites and `exec_command` with auto-truncation. Works over stdio or streamable HTTP. The HTTP transport matters if you're running goose or multi-agent setups where each delegate would otherwise spin up its own isolated server instance.
- GitHub stars
- 5
- tools
- 8
- transport
- STDIO
- last updated
- Apr 18, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
analyze_directoryDirectory tree with LOC, function, and class counts; respects .gitignore; file paths in the output are relative to the working directory
Directory tree with LOC, function, and class counts; respects .gitignore; file paths in the output are relative to the working directory
No parameter schema in public metadata yet.
analyze_fileFunctions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions
Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions
No parameter schema in public metadata yet.
analyze_moduleLightweight function and import index (~75% smaller than analyze_file); returns graceful fallback (empty index with note) for unsupported extensions
Lightweight function and import index (~75% smaller than analyze_file); returns graceful fallback (empty index with note) for unsupported extensions
No parameter schema in public metadata yet.
analyze_symbolCall graph for a named symbol across a directory; callers, callees, call depth
Call graph for a named symbol across a directory; callers, callees, call depth
No parameter schema in public metadata yet.
edit_overwriteCreate or overwrite a file; creates parent directories
Create or overwrite a file; creates parent directories
No parameter schema in public metadata yet.
edit_replaceReplace a unique exact text block or all non-overlapping occurrences (replace_all=true); errors if zero or multiple matches; empty new_text deletes the block
Replace a unique exact text block or all non-overlapping occurrences (replace_all=true); errors if zero or multiple matches; empty new_text deletes the block
No parameter schema in public metadata yet.
exec_commandRun a shell command; returns stdout, stderr, exit code; output capped and filtered; the command is killed when the request is cancelled
Run a shell command; returns stdout, stderr, exit code; output capped and filtered; the command is killed when the request is cancelled
No parameter schema in public metadata yet.
verify_anchorsBatch-verify path:line[:symbol] anchors against a workspace root: file exists, 1-based line within range, and optional word-boundary symbol match within a plus or minus 2 line window
Batch-verify path:line[:symbol] anchors against a workspace root: file exists, 1-based line within range, and optional word-boundary symbol match within a plus or minus 2 line window
No parameter schema in public metadata yet.
Sponsors
Readme
aptu-coder
A Model Context Protocol (MCP) code-intelligence server that gives AI coding agents pre-parsed symbol tables and structural code search instead of raw file bytes, cutting token usage by up to 59% in the cited benchmark conditions (see Benchmarks). OpenSSF silver certified: fewer than 1% of open source projects reach this level.
Details
- Repository
- github.com/clouatre-labs/code-analyze-mcp
- Package
https://github.com/clouatre-labs/code-analyze-mcp/releases/download/v0.6.0/code-analyze-mcp-0.6.0-aarch64-apple-darwin.mcpb- Transport
- STDIO
- Registry
- MCP registry, active