# AgentGuard

> AgentGuard is an open-source MCP server. Local spend caps, kill-switch blocking and Ed25519-signed receipts for AI agent tool calls. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://agentguard.run
- **Repository:** https://github.com/merchantguard/agentguard-mcp
- **MCP Registry name:** io.github.MerchantGuard/agentguard
- **Listing updated:** 2026-11-13

## About

Local spend caps, kill-switch blocking and Ed25519-signed receipts for AI agent tool calls.

## Install

### Claude Code (Terminal)

```sh
claude mcp add agentguard --env AGENTGUARD_LICENSE_KEY='<AGENTGUARD_LICENSE_KEY>' -- npx -y @agentguard-run/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentguard-run/mcp"
      ],
      "env": {
        "AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentguard-run/mcp"
      ],
      "env": {
        "AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "agentguard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentguard-run/mcp"
      ],
      "env": {
        "AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentguard-run/mcp"
      ],
      "env": {
        "AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard": {
      "command": "npx",
      "args": [
        "-y",
        "@agentguard-run/mcp"
      ],
      "env": {
        "AGENTGUARD_LICENSE_KEY": "<AGENTGUARD_LICENSE_KEY>"
      }
    }
  }
}
```

## 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 --env AGENTGUARD_LICENSE_KEY='<AGENTGUARD_LICENSE_KEY>' -- npx -y @agentguard-run/mcp

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