# Laguarde

A self-hosted server that keeps your team's engineering rules and checks agent actions against them. Useful when an agent should ask before touching anything risky.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 1
- Author: FuturPanda
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/FuturPanda/laguarde
- Updated: 2026-07-26
- HTML: https://affpapa.org/en/nevibecode/mcp/laguarde

## What it does

Laguarde is a policy control plane you run yourself. Agents talk to it over standard MCP; people use the dashboard and the REST API. It keeps a registry of projects and Git origins, and writes every decision to SQLite plus Markdown evidence files.

Policies come in four flavours: code rules, general guardrails, project setup recipes, and PR review guidelines. An action gets one of four verdicts: `allowed`, `limited`, `approval`, or `forbidden`. Anything that matches no rule lands on `limited`, so it cannot slip through unnoticed. Dependency changes, migrations, deletions, and authentication work go to a human for sign-off.

Local install needs Node.js 24 or newer. The first start creates `~/.laguarde/laguarde.db`, seeds global policy, and adds ten policies; point `LAGUARDE_DATA_DIR`, or the narrower `LAGUARDE_DB_PATH` and `LAGUARDE_EVIDENCE_DIR`, elsewhere if you want the data in another place. Here is the catch: MCP makes policies visible and decisions auditable, yet an uncooperative agent can still call tools outside Laguarde. Hard enforcement only arrives once those decisions feed an execution hook, a command proxy, a sandbox, or a CI gate.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add laguarde -- npx -y laguarde-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add laguarde -- npx -y laguarde-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "laguarde": {
            "command": "npx",
            "args": [
                "-y",
                "laguarde-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "laguarde": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "laguarde-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add laguarde npx -y laguarde-mcp
```

## When to use it
- keep one set of code rules across several repositories
- preview an agent's intent before it touches dependencies
- hold file deletions until a human approves
- keep revision IDs for every policy change
- queue repeated developer corrections for review

## Example prompts
- Connect Laguarde to this project and load its policy bundle
- Ask Laguarde whether updating dependencies is allowed in this repo
- Record this action in Laguarde and show me the verdict

## Similar
- [cli-policy-audit](https://affpapa.org/en/nevibecode/skills/cli-policy-audit.md) — skill · 952 installs
- [MCP Hangar](https://affpapa.org/en/nevibecode/mcp/mcp-hangar.md) — MCP server · ★ 18
- [Warmplane](https://affpapa.org/en/nevibecode/mcp/warmplane.md) — MCP server · ★ 5
- [tf-best-practices](https://affpapa.org/en/nevibecode/skills/tf-best-practices.md) — skill · 323 installs
- [Aegis — AI Agent Governance](https://affpapa.org/en/nevibecode/mcp/aegis-ai-agent-governance.md) — MCP server · ★ 18
- [Assay MCP Server](https://affpapa.org/en/nevibecode/mcp/assay-mcp-server.md) — MCP server · ★ 13

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
