# agentguard

> agentguard is an open-source MCP server. MCP policy proxy: spend caps, approvals for destructive tools, kill switch, dry-run, audit log. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/agentwares/agentguard/tree/HEAD/apps/agentguard-cli
- **MCP Registry name:** io.github.agentwares/agentguard
- **Listing updated:** 2026-11-13

## About

MCP policy proxy: spend caps, approvals for destructive tools, kill switch, dry-run, audit log.

## Install

### Claude Code (Terminal)

```sh
claude mcp add agentguard -- npx -y @agentwares/agentguard
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentwares/agentguard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentwares/agentguard"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "agentguard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentwares/agentguard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentwares/agentguard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentwares/agentguard"
      ]
    }
  }
}
```

## FAQ

### Is agentguard free?

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

### How do I add agentguard to Claude Code?

Run this command in your terminal: claude mcp add agentguard -- npx -y @agentwares/agentguard

---
Source: https://ai-powered.com/mcp/agentguard-5
