Aptu Coder MCP Server

MCP server for code structure analysis using tree-sitter.

Local serverstdioPython

What is the Aptu Coder MCP server?

If you already use Aptu Coder, the aptu coder mcp server is the piece that lets your assistant work with it directly. MCP server for code structure analysis using tree-sitter.

What the server does

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.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • 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
  • 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

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

Where it fits

Among the file and storage access 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. Aptu Coder'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.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Aptu Coder.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
summaryboolean
cursorstring
page_sizeinteger
analyze_directoryDirectory tree with LOC, function, and class counts; respects .gitignore
analyze_fileFunctions, classes, and imports with signatures and line ranges; returns graceful fallback (line count, file head, no AST) for unsupported extensions
analyze_moduleLightweight function and import index (~75% smaller than analyze_file); returns graceful fallback (empty index with note) for unsupported extensions
analyze_symbolCall graph for a named symbol across a directory; callers, callees, call depth
edit_overwriteCreate or overwrite a file; creates parent directories
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; CRLF normalized before matching; returns occurrences_replaced
exec_commandRun 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

Example prompts to try

  • Use Aptu Coder to summary.
  • Use Aptu Coder to cursor.
  • Use Aptu Coder to page size.

Frequently asked questions

It connects Aptu Coder to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (summary, cursor, page_size, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Aptu Coder directly.