# opsgate

> opsgate is an open-source MCP server for cloud and infrastructure. Kubernetes MCP server where every change needs a passkey approval from your phone. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI
- **Website:** https://gkdis6.github.io/opsgate/
- **Repository:** https://github.com/gkdis6/opsgate
- **MCP Registry name:** io.github.gkdis6/opsgate
- **Categories:** cloud and infrastructure, security
- **Listing updated:** 2026-11-14

## About

The catalogue of changes is small on purpose: restart, scale, image restore and replacing a pod its controller recreates. Nothing that deletes data becomes an approval card. There is no shell tool and no Kubernetes Secrets tool, and providers, write actions and allowlists are all off until you enable them.

Alerts come from an opsgate watch process that follows the Kubernetes API and notifies Discord, webhooks or email, and can place the alert in the approval inbox with a phone notification. Before running, the server plans again and stops if anything changed since you approved, then reports whether the service recovered.

The README says it is not 1.0 yet, third-party security review is pending, and notes, the host provider and the analyzer are experimental. It is written in Go and runs as a container image.

## Features

- **Approval cards:** Each change shows the exact plan, who suggested it and whether it can be undone.
- **Passkey approval:** Approve from a phone or computer with a passkey.
- **Re-plan before running:** Stops if the cluster changed since approval.
- **Alert watching:** Sends alerts to Discord, webhooks or email.
- **No shell, no Secrets tool:** Only purpose-built tools exist.

## Good for

- Restart a failing deployment from your phone during an outage
- Let an AI propose a fix but keep a human gate
- Scale a service after an alert
- Keep runbooks as Markdown notes for assistants

## Install

### Claude Code (Terminal)

```sh
claude mcp add opsgate -- docker run -i --rm ghcr.io/gkdis6/opsgate:v0.8.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/gkdis6/opsgate:v0.8.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/gkdis6/opsgate:v0.8.0"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "opsgate": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/gkdis6/opsgate:v0.8.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/gkdis6/opsgate:v0.8.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "opsgate": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/gkdis6/opsgate:v0.8.0"
      ]
    }
  }
}
```

## FAQ

### Can the AI run any command?

No. There is no shell tool, and only restart, scale, image restore and pod replacement are offered.

### What is it written in?

Go, shipped as a container image.

### Is it production ready?

The README says it is not 1.0 yet and that a third-party security review is pending.

### Which AI clients work?

Claude, ChatGPT, Claude Code, Cursor and others that speak MCP.

### Is opsgate free?

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

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

Run this command in your terminal: claude mcp add opsgate -- docker run -i --rm ghcr.io/gkdis6/opsgate:v0.8.0

### What are the best alternatives to opsgate?

The closest alternatives to opsgate are REA, Agent Roast, Midplane, Leash and Tinplate Edge AI Safety, Security & EU Compliance.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.
- [SecureCloud](https://ai-powered.com/mcp/securecloud): SecureCloud is a free MCP server for security.
- [Eikino](https://ai-powered.com/mcp/eikino): Eikino is a freemium MCP server for security.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.

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