Aptu Coder logo

Aptu Coder

Local tree-sitter code intelligence over MCP for directory analysis, symbol indexing, call graphs, edits, commands, and anchor checks.

Install Aptu Coder

Run the project’s own setup commands, in order.

Setup steps from the project

Aptu Coder installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew install clouatre-labs/tap/aptu-coder
    
  2. 2. Install
    cargo binstall aptu-coder
    
  3. 3. Install
    cargo install aptu-coder
    
  4. 4. Install
    cargo build --release
    
  5. 5. Start the server
    brew services start aptu-coder
    
  6. 6. Configure
    type: streamable_http
    

Overview

Aptu Coder parses local source code with tree-sitter and exposes compact structural results over MCP instead of requiring agents to inspect every file directly. Its tools cover directory and file analysis, module indexes, symbol call graphs, file edits, shell commands, and verification of path-line-symbol anchors. An on-disk cache keyed by BLAKE3 content hashes reuses analysis across writes, while stdio and streamable HTTP transports support single-client and shared multi-agent setups. Reach for it when an agent needs deterministic code structure or workspace operations across supported languages.

Use cases

  • Map a repository before making code changes
  • Inspect functions, classes, imports, and signatures
  • Trace callers and callees for a symbol
  • Apply guarded text edits with content-hash checks
  • Verify generated path-line-symbol citations

Key features

  • Tree-sitter parsing across 18 language families
  • Directory, file, module, and symbol analysis
  • Cached structural results keyed by BLAKE3 hashes
  • File editing with exact-match and stale-edit safeguards
  • Shell command execution with cancellation and output controls
  • Batch verification of workspace anchors

Tools6

What Aptu Coder lets your agent do. Expand a tool for its parameters.

Self-reported~176 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 67d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars7Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Aptu Coder works

What Aptu Coder does

Aptu Coder is a local MCP code-intelligence server for extracting structure from source trees. It uses tree-sitter to identify functions, classes, imports, signatures, line ranges, and relationships between symbols. Directory analysis includes lines-of-code, function, and class counts, and honors .gitignore rules. The server supports Astro, C and C++, C#, CSS, Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, Markdown, Python, Rust, TOML, TSX, TypeScript, and YAML.

Results are designed to give coding agents concise structural context rather than requiring raw-file inspection for every lookup. Analysis is performed on the local machine, and an on-disk cache keyed by BLAKE3 content hashes allows parsed results to be reused while remaining consistent with file changes.

How it works

The server communicates through MCP using either stdio or streamable HTTP. Stdio is suited to a single client that starts and owns the process. Streamable HTTP allows multiple consumers to share one running instance and is recommended for orchestrators that spawn delegated agents.

analyze_directory reports a relative-path tree with size and symbol counts. analyze_file returns imports, functions, classes, signatures, and source ranges. analyze_module provides a smaller function and import index for cases where a full file analysis is unnecessary. analyze_symbol traces callers, callees, and call depth for a named symbol across a directory.

The analysis tools support compact output and pagination. A summary option can request reduced results, and the server automatically switches to compact output for large responses. Pagination uses a returned cursor; page sizing is controlled by the server.

Setup and configuration

Install the binary with Homebrew, cargo binstall, or cargo install, or build it from source with Cargo. Homebrew can run the HTTP service in the background. The default HTTP endpoint uses port 49200 and the MCP path /mcp; set APTU_CODER_PORT to select another port.

For HTTP clients, register the endpoint as a streamable HTTP MCP server. For stdio clients, configure the command as aptu-coder with no required arguments. A project-level .mcp.json can hold the stdio configuration for sharing with a team.

Tools and capabilities

  • edit_overwrite creates or replaces a file and creates missing parent directories.
  • edit_replace changes an exact text block, optionally replacing all non-overlapping matches. It can delete a block with empty replacement text, normalizes CRLF before matching, and can reject stale edits using an expected BLAKE3 content hash.
  • exec_command runs shell commands and returns filtered, capped stdout, stderr, and exit status. Cancellation terminates the command, and heredoc-based file-writing patterns are rejected before execution.
  • verify_anchors checks path:line or path:line:symbol references against a workspace. It validates file existence, one-based line ranges, and optional symbol matches within a small surrounding window, returning one structured verdict per anchor.
  • Unsupported file extensions receive graceful fallbacks: file analysis returns basic line information and a file head, while module analysis returns an empty index with a note.

Limitations and notes

Aptu Coder requires a local workspace path for its server-side analysis tools. Its structural parsing applies to the listed language and file extensions; unsupported extensions do not produce an AST. edit_replace rejects zero matches and ambiguous matches unless configured for replacement of all matches. The command tool caps and filters output, and its server-owned post-exit drain window defaults to 500 milliseconds.

Benchmark results in the project describe token and cost differences for specific focused comprehension tasks. Those measurements should not be treated as a general improvement over shell search for every agentic coding workflow.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Aptu Coder

Aptu Coder is an MCP server that connects AI coding agents to local source workspaces through tree-sitter analysis and workspace tools. Its main tools inspect directories, files, modules, and symbol call graphs, while also supporting guarded edits, shell commands, and path-line-symbol anchor verification.

Install it with Homebrew, cargo-binstall, or cargo install. Homebrew uses `brew install clouatre-labs/tap/aptu-coder`; cargo-binstall avoids requiring a Rust toolchain, while cargo install and source builds require Rust.

Use either HTTP or stdio configuration. For a running HTTP instance, run `claude mcp add --transport http aptu-coder http://127.0.0.1:49200/mcp`; for a client-managed process, run `claude mcp add --transport stdio aptu-coder -- aptu-coder`.

Aptu Coder works with MCP-compatible clients such as Cursor through its stdio or streamable HTTP transports. Configure the client with the `aptu-coder` executable for stdio or with the server URL ending in `/mcp` for HTTP.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAptu Coder AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aptu-coder?style=directory)](https://allmcps.com/mcp/aptu-coder)
HTML Embed
<a href="https://allmcps.com/mcp/aptu-coder"><img src="https://allmcps.com/api/badge/aptu-coder?style=directory" alt="Aptu Coder on AllMCPs" /></a>