Stop letting agents grep your repo blind.

agentmako — local-first MCP server for Claude Code, Codex CLI, Cursor, and Cline

agentmako is a local-first MCP server for AI coding agents — Claude Code, Codex CLI, Cursor, Cline, and any other MCP client. It indexes the repo, tracks diagnostics, snapshots your Postgres or Supabase schema, and returns typed context packets — so your agent stops rediscovering everything from scratch on every turn.

Read the docs →
local-first · no hosted service node ≥ 20 85 typed tools apache-2.0
~/projects/your-app — agentmako
how it works

Index. Ask. Verify. Edit.

Mako sits between your coding agent and your repo as an MCP server. It doesn't write code — it returns the context the model would otherwise invent.

01

Index

Reads the repo. Writes a typed local snapshot.

02

Ask

Your agent calls one tool. Mako returns ranked context.

03

Verify

Stale or contradicted evidence is labeled, not silently served.

04

Edit

The agent edits with cited context. Diagnostics gate the commit.

side-by-side

Vanilla agent vs. mako-backed agent.

Same model, same prompts. The difference is the context layer underneath.

~ vs.diff — same prompt, two agents vanilla / mako
files
greps and guesses
+queries an indexed graph
freshness
assumes the first read is still true
+labels every fact live, stale, or contradicted
memory
findings die with the chat
+reef remembers across runs
location
hosted vector store you can't inspect
+local sqlite, no hosted service
quickstart

Three commands. No hosted service.

Requires Node ≥ 20. Everything else runs locally — index, store, MCP transport.

~ — install agentmako (≈ 60 seconds) node ≥ 20
01
$npm install -g agentmako added agentmako@0.1.0 · 1 binary in $PATH
02
$cd /path/to/your/project $agentmako connect . --no-db indexed 482 files · 6,213 symbols · 38 routes reef snapshot ready · 0 open loops
03
$agentmako doctor config · api service · index · all green
04
$agentmako mcp stdio MCP server ready · listening on agent
agents.md

Teach your agent the playbook.

Tools are only as useful as the agent's choice to call them. Drop our CLAUDE.md / AGENTS.md into your project root so the agent knows when to reach for Mako.

CLAUDE.md · AGENTS.md — preview 306 lines
## Mako MCP Usage

This repo has `mako-ai` registered in `.mcp.json` as:

```json
{
  "mako-ai": {
    "command": "agentmako",
    "args": ["mcp"]
  }
}
```

In Claude Code, Mako tools usually appear as `mcp__mako-ai__<toolName>`. The examples below use the bare tool name for readability.

### Operating Model

Mako is a deterministic project context engine, not a replacement for normal coding discipline. Use it to narrow the work: relevant files, symbols, routes, schema objects, findings, freshness, and risks. Then use normal reads, edits, tests, and shell commands to implement and verify.

Prefer Mako before broad grep/file walking when the question is about project structure, cross-file impact, database usage, routing, auth, or known findings. Prefer `live_text_search` or shell `rg` when you need exact current disk text after edits.

Mako has two evidence modes:

- Indexed/Reef evidence: fast and structured, but tied to the last index or persisted fact snapshot.
- Live evidence: current filesystem or live database. Use this when line numbers, edited files, or recently created files matter.

Do not treat answer stability as freshness. A stable indexed answer can still be stale relative to disk. Check `project_index_status`, per-evidence freshness fields, or `live_text_search` before relying on exact lines after edits.

drops into your project root as CLAUDE.md or AGENTS.md
common questions

Quick answers about MCP, Mako, and your agent.

The most-asked questions from devs first wiring up an MCP server. Full bank lives at the agentmako FAQ.

What is an MCP server?

An open standard from Anthropic that lets AI coding agents call external tools over a stdio interface. An MCP server exposes tools — search, schema, diagnostics — that any compliant client (Claude Code, Codex CLI, Cursor, Cline) can call.

More on MCP →

Why does my agent rediscover the codebase every prompt?

It has no memory across turns. Each prompt it greps and re-reads files it touched 30 seconds ago. Mako indexes the repo once and serves typed context packets on demand.

What is a context packet? →

Is it free? Does it send my code anywhere?

Free, Apache-2.0, zero telemetry. Everything runs locally; data sits in .mako-ai/ under each project. Outbound traffic only when you wire a model provider or connect Postgres / Supabase.

Privacy policy →

How is this different from a vector RAG database?

RAG fuzzy-matches text chunks. Mako stores a typed graph — files, symbols, routes, schema, RLS — and does deterministic lookups. Lower tokens, higher accuracy when fresh, and freshness itself is labeled.

What is the Reef Engine? →

How do I get my agent to actually use Mako?

Tools are only as useful as the agent's choice to call them. Drop the CLAUDE.md / AGENTS.md template into your project root — it tells the agent when to reach for which Mako tool. Without it, agents default to grep.

Read the full FAQ →