# Aptu Coder

> Aptu Coder is an open-source MCP server for developer tools. Tree-sitter code structure analysis and editing tools for AI coding agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, CLI, Self-hosted
- **Repository:** https://github.com/clouatre-labs/aptu-coder
- **MCP Registry name:** io.github.clouatre-labs/aptu-coder
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

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

## Install

### Claude Desktop (Claude Desktop → Settings → Extensions)

```text
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.

## Tools

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_directory` (name suggests: reads): Directory tree with line, function and class counts; respects .gitignore.
- `analyze_file` (name suggests: reads): Functions, classes and imports with signatures and line ranges.
- `analyze_module` (name suggests: reads): Lightweight function and import index.
- `edit_overwrite` (name suggests: changes): Create or overwrite a file, creating parent directories.
- `edit_replace` (name suggests: changes): Replace a unique exact text block, with optional batch edits and stale-edit protection.
- `exec_command` (name suggests: changes): Run a shell command with capped, filtered output and an exit code.
- `search_code` (name suggests: reads): Structural code search by pattern or by symbol, with cursor pagination.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/aptu-coder
