Martin Loop
MCP server by Keesan12 Community
MartinLoop wraps coding agents in a governed run with budgets, iteration caps, verifier checks, recovery evidence and a clear outcome. It is for developers who want to give agents larger software jobs without watching every step. It is distributed as an npm package with an MCP server.
Install Martin Loop
Built from the published package, never by AI.
claude mcp add martin-loop -- npx -y @martinloop/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"martin-loop": {
"args": [
"-y",
"@martinloop/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"martin-loop": {
"args": [
"-y",
"@martinloop/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"martin-loop": {
"args": [
"-y",
"@martinloop/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add martin-loop -- npx -y @martinloop/mcp{
"mcpServers": {
"martin-loop": {
"args": [
"-y",
"@martinloop/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add martin-loop npx -y @martinloop/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the martin-loop block.
About
MartinLoop is a control layer around coding agents such as Codex, Claude Code and Gemini. You define an objective, a verifier command, a budget and an iteration cap, and it keeps the run within those limits. It checks readiness before spend, enforces path boundaries and stop conditions, and runs configured verification. Each run ends with a VERIFIED, STOPPED or NEEDS REVIEW outcome and receipts.
The package is published on npm as martin-loop and includes an MCP server, @martinloop/mcp, for supported hosts. It also offers an audit command that reads local Claude Code session history to measure spend in fix-and-retry loops. MartinLoop is aimed at developers who want to give coding agents real work without babysitting every step. It does not replace Git, CI, code review or the coding agent itself.
Written from the project's README and checked against it.
What you need
- npm and npx for the install commands
- A supported coding-agent runtime such as Codex, Claude Code or Gemini
- Optional: MARTIN_API_TOKEN and MARTIN_TELEMETRY_ENDPOINT for hosted sync
Try asking
- Run this coding task with a $2 budget and npm test as the verifier.
- Audit how much spend went into my fix-and-retry loops.
- Show the receipt and dossier for my latest governed run.
Good to know
- A configured verifier proves only the checks it runs. VERIFIED does not mean the code is bug-free.
- Governed work is local-first. Hosted dashboard sync is optional.
- Without --model, the authenticated host runtime chooses its own default model.
- Live Swarm runs need an approved qualification, a positive budget and a clean repository baseline.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Running coding agents on bounded software jobs
- Measuring fix-and-retry spend in Claude Code
- Producing verified handoffs for agent-written changes
Alternatives to Martin Loop
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Martin Loop: common questions
Does MartinLoop guarantee that agent-written code is bug-free?
No. The source says VERIFIED is not a claim that the code is bug-free or safe to merge, and a configured verifier only proves the checks it runs.
Does MartinLoop need a hosted account to work?
No. Governed work is local-first, and hosted dashboard sync is optional and configured with MARTIN_API_TOKEN and MARTIN_TELEMETRY_ENDPOINT.
Which coding agents does MartinLoop support?
The source names codex, claude and gemini as runtimes that can be saved with the enable command. It says a worker is only fully supported once its execution path has been publicly released and validated.
How do I install Martin Loop?
In Claude Code run claude mcp add martin-loop -- npx -y @martinloop/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Martin Loop the official server?
Martin Loop is a community project by Keesan12, not verified by a company domain.
Is Martin Loop free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Martin Loop safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Martin Loop?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Martin Loop work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
