# Agent Guardrail

> Agent Guardrail is an open-source MCP server. Deterministic policy firewall for AI agent tool calls - YAML rules, not a fuzzy risk score. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/rudimentall1/agent-guardrail
- **MCP Registry name:** io.github.rudimentall1/agent-guardrail
- **Listing updated:** 2026-11-13

## About

Deterministic policy firewall for AI agent tool calls - YAML rules, not a fuzzy risk score.

## Install

### Claude Code (Terminal)

```sh
claude mcp add agent-guardrail -- uvx guardrail-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "guardrail-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "guardrail-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "agent-guardrail": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "guardrail-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "guardrail-mcp"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "guardrail-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Agent Guardrail free?

Yes. Agent Guardrail is open source, so you can use and self-host it for free.

### How do I add Agent Guardrail to Claude Code?

Run this command in your terminal: claude mcp add agent-guardrail -- uvx guardrail-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/agent-guardrail
