Skip to content
MCP server

Aptu Coder

Tree-sitter code structure analysis and editing tools for AI coding agents

Runs locally

Aptu Coder is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
macOS, Linux, CLI
Runs
Locally
What it can do
Can change data (3 tools)
Version
0.47.0
Listing updated

Similar MCP servers

Install

In Claude Desktop → Settings → Extensions

https://github.com/clouatre-labs/aptu-coder/releases/download/v0.47.0/aptu-coder-0.47.0-aarch64-apple-darwin.mcpb

Download the bundle and open it with Claude Desktop, or drag it onto Settings → Extensions and click Install. This server is only published as a Claude Desktop bundle.

Claude Desktop setup guide

Using several servers? Build one config file with the MCP config generator.

About Aptu Coder

Instead of indexing a codebase into a cloud vector store, this server parses it on your own machine with tree-sitter and serves the resulting symbol tables over MCP. Nothing leaves the device, and lookups are exact rather than similarity-based.

The README reports up to 59% fewer tokens in a paired Django comprehension benchmark on Claude Code. It also publishes a later 20-session benchmark that found no measurable answer-quality gain over bash and ripgrep in agentic coding loops, and suggests it for grounding multi-agent workflows and for non-agentic consumers such as IDE assistants and CI jobs.

Parsed results are cached on disk by blake3 content hash, so they stay correct when files change concurrently. It covers 18 languages, from Rust, Go and Python to Fortran, Astro and TOML, and a Rust library API (analyze_str) is available for callers that hold source text without a file path.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 of 7 tools change data.

From the server's own tool labels and tool names; not verified by us.

analyze_directoryName suggests: reads
Directory tree with line, function and class counts; respects .gitignore.
analyze_fileName suggests: reads
Functions, classes and imports with signatures and line ranges.
analyze_moduleName suggests: reads
Lightweight function and import index.
edit_overwriteName suggests: changes
Create or overwrite a file, creating parent directories.
edit_replaceName suggests: changes
Replace a unique exact text block, with optional batch edits and stale-edit protection.
exec_commandName suggests: changes
Run a shell command with capped, filtered output and an exit code.
search_codeName suggests: reads
Structural code search by pattern or by symbol, with cursor pagination.

What it does

Directory and file analysis
Returns directory trees with line, function and class counts, plus functions, classes and imports with signatures and line ranges.
Structural code search
Finds definitions, callers and implementors, or matches metavariable patterns in Rust, Go, Python and TypeScript.
Atomic file edits
Replaces unique text blocks, with batch edits applied together and an optional content hash to reject stale changes.
Local on-disk cache
Keys cached results by blake3 content hash so concurrent writes do not produce stale answers.
Paginated output
Uses cursors and a summary mode that kicks in above 50K characters to keep results inside the context window.
Stdio or HTTP
Runs as a client-spawned process by default, or as a shared Streamable HTTP daemon.

Good for

  • Give a coding agent a structural map of an unfamiliar repository
  • Find every caller or implementor of a function before refactoring
  • Run symbol lookups in a CI job without sending code to a cloud service
  • Ground subagents in a multi-agent workflow with accurate code facts
  • Apply guarded, hash-checked edits from an agent

Pricing

Open source

Aptu Coder FAQ

Does my source code leave my machine?

The README says the codebase is parsed on-device with tree-sitter and served locally over MCP, so no source code leaves the machine.

Which languages does Aptu Coder support?

Eighteen, including Rust, Go, Python, Java, Kotlin, C/C++, C#, TypeScript, TSX, JavaScript, Fortran, Astro, HTML, CSS, JSON, TOML, YAML and Markdown.

How do I install Aptu Coder?

Via Homebrew (`brew install clouatre-labs/tap/aptu-coder`), `cargo binstall aptu-coder`, `cargo install aptu-coder`, or by building from source.

Does Aptu Coder beat plain shell search for agents?

Not in every setting. The README reports big token savings on single comprehension tasks but no measurable answer-quality gain over bash and ripgrep in agentic coding loops.

Is Aptu Coder free?

Yes. Aptu Coder is open source, so you can use and self-host it for free.

What are the best alternatives to Aptu Coder?

The closest alternatives to Aptu Coder are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers