# Safeagent

> Safeagent is an open-source MCP server. Exactly-once execution guard for AI agents. It runs locally on your machine and is started by your AI client.

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

## About

Exactly-once execution guard for AI agents. Prevents duplicate payments and webhooks on retry.

## Install

### Claude Code (Terminal)

```sh
claude mcp add safeagent -- uvx safeagent-exec-guard
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "safeagent": {
      "command": "uvx",
      "args": [
        "safeagent-exec-guard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "safeagent": {
      "command": "uvx",
      "args": [
        "safeagent-exec-guard"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "safeagent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "safeagent-exec-guard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "safeagent": {
      "command": "uvx",
      "args": [
        "safeagent-exec-guard"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "safeagent": {
      "command": "uvx",
      "args": [
        "safeagent-exec-guard"
      ]
    }
  }
}
```

## FAQ

### Is Safeagent free?

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

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

Run this command in your terminal: claude mcp add safeagent -- uvx safeagent-exec-guard

## 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/safeagent
