MartinLoop MCP logo

MartinLoop MCP

Governs coding-agent runs with budgets, verification gates, recovery evidence, and inspectable outcomes.

Install MartinLoop MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "martinloop-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@martinloop/mcp"
      ],
      "env": {
        "MARTIN_API_TOKEN": "YOUR_VALUE_HERE",
        "MARTIN_TELEMETRY_ENDPOINT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

MartinLoop MCP connects coding-agent workflows to bounded runs with explicit objectives, budgets, iteration limits, verification, and completion states. It keeps execution records locally, producing receipts and dossiers that developers can inspect after a run. Reach for it when coding agents need to work with less supervision while remaining constrained by scope, spend, stop conditions, and verifier evidence. Optional hosted synchronization can send preserved evidence to a dashboard.

Use cases

  • Run bounded coding tasks with explicit spending and iteration limits
  • Require test or verifier evidence before accepting agent work
  • Inspect failed runs and preserve recovery information
  • Audit Claude Code retry-loop costs from local session history

Key features

  • Budget and iteration ceilings
  • Verifier-gated completion
  • Edit-scope and stop-condition controls
  • Run receipts and dossiers
  • Recovery and rollback evidence
  • Optional hosted evidence synchronization

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.

34/38 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @martinloop/mcp (npm)

Adoption & maintenance

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

GitHub stars262Stargazers on the source repository.
npm downloads1.9kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How MartinLoop MCP works

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.

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 MartinLoop MCP

MartinLoop MCP is an MCP server that connects supported coding-agent runtimes to governed software runs. Its main capabilities include defining objectives, enforcing budgets and iteration limits, running verifier checks, preserving recovery evidence, and producing inspectable receipts and outcomes such as VERIFIED, STOPPED, or NEEDS REVIEW.

Install `@martinloop/mcp@latest` in a supported MCP host, or generate host configuration with `martin mcp print-config`. The broader MartinLoop CLI requires Node.js 20 or newer and can be started with `npx -y martin-loop@latest start`.

Run `martin run` with an objective, verifier, budget, and iteration cap. For example, use `--verify`, `--budget-usd`, and `--max-iterations`; select a worker first with `martin enable --engine codex`, `claude`, or `gemini` when needed.

MartinLoop runs the configured verifier and binds fresh evidence to the active run and workspace. A `VERIFIED` outcome confirms only the checks that verifier performed; it does not guarantee bug-free code or automatic merge safety.

Yes, optional hosted synchronization uses `MARTIN_API_TOKEN` and `MARTIN_TELEMETRY_ENDPOINT`. Use `martin sync status` and `martin sync flush` to manage sending preserved local evidence to the dashboard.

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 PreviewMartinLoop MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/martinloop-mcp?style=directory)](https://allmcps.com/mcp/martinloop-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/martinloop-mcp"><img src="https://allmcps.com/api/badge/martinloop-mcp?style=directory" alt="MartinLoop MCP on AllMCPs" /></a>