# Werbot

> Werbot is an open-source MCP server for security. Open-source gateway that authorizes and records AI agent and human commands on servers. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, Web, API
- **Repository:** https://github.com/werbot/werbot
- **MCP Registry name:** io.github.werbot/werbot
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-27

## About

Werbot sits between people or AI agents and the servers and databases they reach. Every command is checked against policy before it runs, risky commands can wait for an approver, and each session is recorded in a hash-chained, signed log. Users never receive a raw password, since access goes through short-lived certificates tied to their own account.

AI agents such as Claude Code, Codex and Cursor connect through a local MCP server command. They act as a run of the user's account under a read-only baseline, with no SSH key or password of their own, and an organization can limit or stop agents with locks and a kill switch.

The project is aimed at platform and security teams who want audited, just-in-time access to infrastructure for both staff and automated tools. It is in pre-release (v0.x), so breaking changes are possible between versions.

## Features

- **Per-command policy checks:** Each exec command is sorted into risk classes and can be denied, sent for approval or limited by folder rules.
- **Just-in-time access requests:** Users request time-limited access to a resource, and approval policies decide who signs off.
- **Recorded and verifiable sessions:** Sessions are recorded and can be replayed in the browser, with a check that the recording has not been altered.
- **Agent run controls:** Agents run as the owner's account with limits, timelines and a lock that ends their activity.
- **Passwordless resource access:** Users connect with short-lived SSH certificates, so the gateway never hands out a password.
- **Single sign-on and MFA:** OpenID Connect single sign-on, TOTP, passkeys and recovery codes are supported.

## Good for

- Letting an AI coding agent run diagnostic commands on a server without sharing credentials
- Requiring approval before risky commands run against production hosts
- Giving contractors time-limited SSH or database access that is logged
- Reviewing an audit trail of who ran which command on which machine

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add werbot --env WERBOT_SERVER='<WERBOT_SERVER>' -- docker run -i --rm -e WERBOT_SERVER ghcr.io/werbot/werbot:v0.2.0
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "werbot": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add werbot --env WERBOT_SERVER='<WERBOT_SERVER>' -- docker run -i --rm -e WERBOT_SERVER ghcr.io/werbot/werbot:v0.2.0
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.werbot]
command = "docker"
args = ["run", "-i", "--rm", "-e", "WERBOT_SERVER", "ghcr.io/werbot/werbot:v0.2.0"]
env = { WERBOT_SERVER = "<WERBOT_SERVER>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e WERBOT_SERVER='<WERBOT_SERVER>' werbot docker -- run -i --rm -e WERBOT_SERVER ghcr.io/werbot/werbot:v0.2.0

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "werbot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "WERBOT_SERVER",
        "ghcr.io/werbot/werbot:v0.2.0"
      ],
      "env": {
        "WERBOT_SERVER": "<WERBOT_SERVER>"
      }
    }
  }
}
```

## FAQ

### Is Werbot open source?

The core is licensed under AGPL-3.0-only, while the SDK, protocol definitions and web UI are Apache-2.0.

### How do AI agents connect to Werbot?

Agents such as Claude Code, Codex and Cursor connect through the werbot mcp command, running as a run of the user's account.

### What is the install method?

A Docker Compose stack can be started from the documentation, and a binary with systemd is also available.

### Is Werbot free?

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

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

Run this command in your terminal: claude mcp add werbot --env WERBOT_SERVER='<WERBOT_SERVER>' -- docker run -i --rm -e WERBOT_SERVER ghcr.io/werbot/werbot:v0.2.0

### What are the best alternatives to Werbot?

The closest alternatives to Werbot are vaultgate, Orbiter Dev, agent-custody, CyberAgents AI Security Firewall and Agence.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [vaultgate](https://ai-powered.com/mcp/vaultgate): vaultgate is an open-source MCP server for security.
- [Orbiter Dev](https://ai-powered.com/mcp/orbiter-dev): Orbiter Dev is a freemium MCP server for security.
- [agent-custody](https://ai-powered.com/mcp/agent-custody): agent-custody is a freemium MCP server for security.
- [CyberAgents AI Security Firewall](https://ai-powered.com/mcp/cyberagents-ai-security-firewall): CyberAgents AI Security Firewall is a freemium MCP server for security.
- [Agence](https://ai-powered.com/mcp/agence): Agence is an open-source MCP server for security.
- [Sanctuary](https://ai-powered.com/mcp/sanctuary): Sanctuary is an open-source MCP server for security.
- [Occasio](https://ai-powered.com/mcp/occasio): Occasio is an open-source MCP server for security.
- [armslength](https://ai-powered.com/mcp/armslength): armslength is a free MCP server for communication.

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