MCP.so
Sign In

Code Analyze MCP Server

@clouatre-labs

Basic information

Category

Developer Tools

Last updated

License

Apache-2.0

Author

clouatre-labs

About Code Analyze MCP Server

aptu-coder: MCP server for AST analysis, call graphs, and code structure (tree-sitter)

Code Analyze MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Code Analyze MCP Server tools

10

boolean

string

integer

Directory tree with LOC, function, and class counts; respects `.gitignore`

Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions

Lightweight function and import index (~75% smaller than `analyze_file`); returns graceful fallback (empty index with note) for unsupported extensions

Call graph for a named symbol across a directory; callers, callees, call depth

Create or overwrite a file; creates parent directories

Replace a unique exact text block; errors if zero or multiple matches; empty `new_text` deletes the block; CRLF normalized before matching

Run a shell command; returns stdout, stderr, exit code; output capped and filtered; optional `timeout_secs` (kill on expiry) and `drain_timeout_secs` (post-exit drain window); heredoc rejected before spawn (file-write pattern, stdin-consuming flag, stdin parameter conflict, or missing closing delimiter)

Overview

What is code-analyze-mcp?

code-analyze-mcp is a standalone Model Context Protocol server that analyzes code structure using tree-sitter. It provides AI agents with directory structure, symbol definitions, and call graphs without reading raw files, supporting 18 programming languages.

How to use code-analyze-mcp?

Install via Homebrew (brew install clouatre-labs/tap/aptu-coder), cargo-binstall, or cargo install aptu-coder. Configure your MCP client with either streamable HTTP (recommended for multi-agent setups) or stdio transport. The server exposes tools such as analyze_directory, analyze_file, analyze_symbol, edit_overwrite, edit_replace, and exec_command.

Key features of code-analyze-mcp

  • Offloads mechanical code analysis, reducing token usage and costs
  • Supports 18 languages including Python, Rust, TypeScript, and C++
  • Provides paginated outputs for large codebases
  • Includes built-in output filters for common CLI tools
  • OpenSSF Silver certified for security best practices
  • Offers two transport modes: streamable HTTP and stdio

Use cases of code-analyze-mcp

  • AI agents exploring unfamiliar codebases via directory trees and call graphs
  • Reducing token consumption during large refactoring or auditing tasks
  • Tracing symbol dependencies across multi-language projects
  • Replacing raw file scanning with structured structural context
  • Performing targeted file edits and shell command execution within MCP

Frequently asked questions

1

What languages does code-analyze-mcp support?

It supports 18 languages: Astro, C/C++, C#, CSS, Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, Markdown, Python, Rust, TOML, TSX, TypeScript, and YAML.

2

How do I install code-analyze-mcp?

Install via Homebrew (`brew install clouatre-labs/tap/aptu-coder`), `cargo binstall aptu-coder` (no Rust toolchain required), or `cargo install aptu-coder` (requires Rust).

3

How do I configure code-analyze-mcp with an MCP client?

Use streamable HTTP for multi-agent setups (e.g., `brew services start aptu-coder` then add `streamable_http` configuration) or stdio for single-client use (e.g., `claude mcp add --transport stdio aptu-coder -- aptu-coder`).

4

Does code-analyze-mcp provide benchmarks showing cost savings?

Yes. Benchmarks against Django (Python) and OpenFAST (Fortran) show 14%–68% fewer tokens and 21%–68% cheaper runs compared to native tool workflows.

5

What runtime dependencies are required?

The server is a standalone binary; no external runtime is needed beyond the operating system. For `cargo install`, the Rust toolchain is required; Homebrew and cargo-binstall do not require it.

Comments

More Developer Tools MCP servers