# Marlowe CI / Guard

> Marlowe CI / Guard is an open-source MCP server for developer tools. Guardrails for AI coding agents and pull requests, with host-enforced hooks and security. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, VS Code, Self-hosted, Linux, macOS, Windows
- **Website:** https://zerotheorylabs.com/marlowe-ci
- **Repository:** https://github.com/zerotheory-labs/marlowe-ci
- **MCP Registry name:** io.github.zerotheory-labs/marlowe-ci
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

Marlowe CI / Guard sits between an AI coding agent and the files, shell and network it can reach. In Claude Code it installs PreToolUse, PostToolUse and Stop hooks that deny reads of credential paths, block cloud metadata SSRF and risky shell pipes, mask secrets in edits, and ask before force pushes or live Shirudo commands.

The same engine runs as a read-only MCP server for Cursor, VS Code, Codex CLI and Windsurf, and as a GitHub Action that scans pull request diffs, uploads SARIF v2.1.0 to Code Scanning and posts a sticky verdict comment. Every check ends in one of three verdicts: Holds up, Fails, or Can't tell, so unknown results are never reported as a pass.

It suits developers who let coding agents edit code and run commands and want those actions bounded, and teams that want diff-scoped security gates in CI. The npm package is free for personal, academic and research use under PolyForm Noncommercial, and commercial use requires a separate license.

## Features

- **Claude Code hook enforcement:** Pre, post and stop hooks check file paths, URLs and shell commands before and after each agent action.
- **Secret masking on edits:** Detected secret values are masked before the result is returned to the agent so it can correct itself.
- **Diff-scoped GitHub Action:** Scans pull request changes and reports Holds up, Fails or Can't tell with SARIF upload to Code Scanning.
- **Read-only MCP security tools:** Thirteen tools cover diff and OSV scans, HTTP and TLS recon, DFIR log triage and Shirudo attestation audits.
- **Trojan Source and injection checks:** Flags bidi override characters, indirect prompt injection in context files and npm postinstall changes.
- **Offline git pre-commit hook:** Runs the scanner locally on staged changes without requiring an LLM key.

## Good for

- Stop a coding agent from reading .env files or calling cloud metadata endpoints during a session
- Gate pull requests on hardcoded secrets, reachable injection sinks and disabled TLS verification
- Triage access logs or incident artifacts for indicators of compromise from an MCP client
- Audit eBPF upatch manifests and TPM 2.0 attestation evidence for Shirudo deployments

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add marlowe-ci -- npx -y @zerotheory-labs/marlowe-ci
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add marlowe-ci -- npx -y @zerotheory-labs/marlowe-ci
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.marlowe-ci]
command = "npx"
args = ["-y", "@zerotheory-labs/marlowe-ci"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user marlowe-ci npx -- -y @zerotheory-labs/marlowe-ci

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "marlowe-ci": {
      "command": "npx",
      "args": [
        "-y",
        "@zerotheory-labs/marlowe-ci"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 13 tools read data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `marlowe_scan_diff`: Diff-scoped security scan
- `marlowe_scan_workspace`: Workspace security scan
- `marlowe_audit_dependencies`: Dependency CVE audit via OSV
- `marlowe_doctor`: Checks local security CLI availability
- `marlowe_check_scope` (name suggests: reads): Checks a target against the ScopeGate scope
- `marlowe_inspect_http` (name suggests: reads): HTTP inspection for an in-scope target
- `marlowe_inspect_tls` (name suggests: reads): TLS inspection for an in-scope target
- `marlowe_dns_recon`: DNS reconnaissance for an in-scope target
- `marlowe_triage_artifact`: DFIR artifact triage
- `marlowe_analyze_logs` (name suggests: reads): DFIR log analysis
- `marlowe_extract_iocs`: IOC extraction from artifacts
- `marlowe_shirudo_audit`: Shirudo eBPF and Beefile audit
- `marlowe_shirudo_verify_attestation`: Shirudo TPM 2.0 attestation verification

## FAQ

### Which clients can use the MCP server?

It speaks stdio JSON-RPC and is set up for Claude Code, Cursor, VS Code, Codex CLI, Windsurf and Antigravity.

### Does Marlowe CI / Guard need an LLM API key?

No. The checks run as local static analysis with no LLM key required.

### What license applies?

PolyForm Noncommercial 1.0.0, free for personal, academic and research use. Commercial or internal business CI/CD use needs a commercial license.

### What does Can't tell mean?

It means the evidence is incomplete, such as unverified local sinks or suppression directives, so the result is not rounded up to a pass.

### Is Marlowe CI / Guard free?

Yes. Marlowe CI / Guard is open source, so you can use and self-host it for free.

### How do I add Marlowe CI / Guard to Claude Code?

Run this command in your terminal: claude mcp add marlowe-ci -- npx -y @zerotheory-labs/marlowe-ci

### What are the best alternatives to Marlowe CI / Guard?

The closest alternatives to Marlowe CI / Guard are MCP Security Guard, vetcode, Ci Guard MCP, GuardGit MCP and Swarm.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Security Guard](https://ai-powered.com/mcp/mcp-security-guard): MCP Security Guard is an open-source MCP server for security.
- [vetcode](https://ai-powered.com/mcp/vetcode): vetcode is an open-source MCP server for security.
- [Ci Guard MCP](https://ai-powered.com/mcp/ci-guard-mcp): Ci Guard MCP is an open-source MCP server for developer tools.
- [GuardGit MCP](https://ai-powered.com/mcp/guardgit-mcp): GuardGit MCP is an open-source MCP server for developer tools.
- [Swarm](https://ai-powered.com/mcp/swarm-2): Swarm is a freemium MCP server for security.
- [GuardianShield](https://ai-powered.com/mcp/guardianshield): GuardianShield is an open-source MCP server for security.
- [mcp-guard](https://ai-powered.com/mcp/mcp-guard): mcp-guard is a free MCP server for security.
- [Guard](https://ai-powered.com/mcp/guard): Guard is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/marlowe-ci-guard
