MCP server for code structure analysis using tree-sitter.
Most developer tooling work still happens through a UI a human drives. Code Analyze MCP MCP server moves it into the conversation instead. MCP server for code structure analysis using tree-sitter.
Standalone MCP server for code structure analysis using tree-sitter. OpenSSF silver certified: fewer than 1% of open source projects reach this level.
aptu-coder is a Model Context Protocol server that gives AI agents precise structural context about a codebase: directory trees, symbol definitions, and call graphs, without reading raw files. It supports 18 languages (see Supported Languages) and integrates with any MCP-compatible orchestrator.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The server publishes 10 tools. What each one is for:
summary — booleancursor — stringpage_size — integeranalyze_directory — Directory tree with LOC, function, and class counts; respects .gitignoreanalyze_file — Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensionsanalyze_module — Lightweight function and import index (~75% smaller than analyze_file); returns graceful fallback (empty index with note) for unsupported extensionsanalyze_symbol — Call graph for a named symbol across a directory; callers, callees, call depthedit_overwrite — Create or overwrite a file; creates parent directoriesedit_replace — Replace a unique exact text block or all non-overlapping occurrences (replace_all=true); errors if zero or multiple matches; empty new_text deletesexec_command — Run a shell command; returns stdout, stderr, exit code; output capped and filtered; optional timeout_secs (kill on expiry) and drain_timeout_secsAmong the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Code Analyze MCP's toolset — summary, cursor, page_size and 7 more — is a fair guide to whether it matches your workflow. It is maintained by clouatre-labs; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Code Analyze MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| summary | boolean |
| cursor | string |
| page_size | integer |
| analyze_directory | Directory tree with LOC, function, and class counts; respects .gitignore |
| analyze_file | Functions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions |
| analyze_module | Lightweight function and import index (~75% smaller than analyze_file); returns graceful fallback (empty index with note) for unsupported extensions |
| analyze_symbol | Call graph for a named symbol across a directory; callers, callees, call depth |
| edit_overwrite | Create or overwrite a file; creates parent directories |
| edit_replace | 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; CRLF normalized before matching; returns occurrences_replaced |
| exec_command | 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 patter |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.