# MartinLoop MCP [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Keesan12/martin-loop  
**GitHub Stars:** 262  
**npm Downloads (last month):** 1902  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/martinloop-mcp

## Description
Governed MCP server for AI coding agents with budgets, verifier gates, and inspectable runs.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "martinloop-mcp": {
    "command": "npx",
    "args": ["-y","@martinloop/mcp"],
    "env": {
      "MARTIN_API_TOKEN": "",
      "MARTIN_TELEMETRY_ENDPOINT": ""
    }
  }
}
```

**Requires environment variables:** `MARTIN_API_TOKEN`, `MARTIN_TELEMETRY_ENDPOINT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MartinLoop MCP does

MartinLoop MCP places a governed execution layer around coding-agent work. The coding agent remains responsible for writing code, while MartinLoop manages the surrounding job definition, readiness checks, limits, verification, recovery information, and final handoff.

A run can include an objective, a verifier command, a spending ceiling, an iteration cap, and permitted or denied edit scope. Outcomes are explicit: a run can be marked `VERIFIED`, `STOPPED`, or `NEEDS REVIEW`, with supporting receipts and inspectable run history.

The MCP package is installed as `@martinloop/mcp@latest`. MartinLoop also provides a command-line workflow for starting the product, selecting an engine, running governed jobs, inspecting dossiers, and validating stored run integrity.

## How it works

MartinLoop organizes work through a lifecycle of definition, preflight, control, verification, recovery, proof, and analysis. Before agent work begins, preflight checks readiness and required workflow evidence. During execution, configured budgets, attempt counts, path boundaries, policy, and stop conditions constrain the run.

Completion depends on fresh verifier evidence associated with the active run and workspace. A passing result confirms only what the configured checks establish; it is not a general guarantee that the code is defect-free or ready to merge.

Run data is kept local by default. Dossiers, receipts, failure classifications, cost information, and run history provide material for reviewing the result or deciding whether to retry, repair, roll back, or involve a person.

## Setup and configuration

Node.js 20 or newer is required. The quick-start path uses `npx -y martin-loop@latest start`, or the package can be installed globally with `npm install -g martin-loop@latest`. The demo workflow creates a disposable workspace, installs its dependencies, and runs a task with a verifier, budget, and iteration limit.

Use `martin enable --engine codex` to select a supported worker before running a governed job. The engine can also be `claude` or `gemini` when those runtimes are intended. MCP setup uses `@martinloop/mcp@latest` in a supported host, or `martin mcp print-config` to generate host configuration.

Optional hosted synchronization uses `MARTIN_API_TOKEN` and `MARTIN_TELEMETRY_ENDPOINT`. The commands `martin sync status` and `martin sync flush` control sending preserved evidence to a dashboard.

## Tools and capabilities

- Define objectives, verifiers, budgets, iteration limits, and edit boundaries.
- Run preflight checks before spending agent budget.
- Enforce spend, attempt, path, policy, and stop-condition controls.
- Execute configured verification and bind evidence to a run and workspace.
- Preserve recovery and rollback evidence for retries or handoffs.
- Inspect dossiers, receipts, history, failure classes, and run integrity.
- Audit local Claude Code session history for retry-loop cost and verifier failures.

## Limitations and notes

MartinLoop does not replace Git, GitHub, CI, security scanners, observability platforms, code review, or the underlying coding agent. Verification covers only the commands configured for a run. The system is model-agnostic, but worker support depends on the execution path being publicly released and validated.

The audit command reads Claude Code session history locally. Network access can be disabled with `--offline`; a public pricing lookup is otherwise used for the cost analysis. Hosted synchronization is optional rather than part of the local-first execution path.

_Full upstream README: https://allmcps.com/mcp/martinloop-mcp/readme_

