Skip to content
MCP server

Container Host AIops

Governed AI-ops for Docker, Portainer and Podman hosts with RCA and guarded writes

Runs locally

Container Host AIops is an open-source MCP server for cloud and infrastructure. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI
Runs
Locally
What it can do
Can delete data (1 tool)
Version
0.14.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add container-host-aiops -- uvx container-host-aiops

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

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "container-host-aiops": {
      "command": "uvx",
      "args": [
        "container-host-aiops"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "container-host-aiops": {
      "command": "uvx",
      "args": [
        "container-host-aiops"
      ]
    }
  }
}

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "container-host-aiops": {
      "command": "uvx",
      "args": [
        "container-host-aiops"
      ]
    }
  }
}

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "container-host-aiops": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "container-host-aiops"
      ]
    }
  }
}

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add container-host-aiops -- uvx container-host-aiops

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.container-host-aiops]
command = "uvx"
args = ["container-host-aiops"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "container-host-aiops": {
      "command": "uvx",
      "args": [
        "container-host-aiops"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user container-host-aiops uvx -- container-host-aiops

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "container-host-aiops": {
          "command": "uvx",
          "args": [
            "container-host-aiops"
          ]
        }
      }
    }

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Container Host AIops

Aimed at single container hosts rather than orchestrators, it reaches Docker over a local unix socket or TCP, Portainer through its API key, and Podman through its rootful or rootless service socket. A local socket needs no secret, since file permissions are the boundary. The README says it was exercised against a live Docker Engine 27.5.1 daemon, while the Portainer and Podman paths are covered by mocks only.

Three flagship analyses do the diagnosis. restart_loop_rca flags crash-looping containers and maps exit codes such as 137, 143, 139 and 127 to a likely cause with a log tail. resource_pressure_analysis compares CPU and memory use to configured limits and marks containers near (80% or more) or over. image_and_volume_bloat totals dangling images, volumes and build cache into prune candidates.

The tool has 38 tools, 29 of them reads. Writes include stop, start, restart, update limits, remove and prune, each with a dry_run preview that lists what would go. It records every call in an audit database and captures before-state, with an undo for stop and start and for limit changes. It does not decide whether a write is allowed; the account or socket permissions do. The author states it is not affiliated with Docker or Portainer.

Tools this server provides (17)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 17 tools deletes data and 3 change data; 9 names don't say.

From the server's own tool labels and tool names; not verified by us.

restart_loop_rca
Flags crash-looping containers and maps exit codes to causes
resource_pressure_analysis
Compares CPU and memory use with limits
image_and_volume_bloat
Totals dangling images, volumes and build cache
list_containersName suggests: reads
Lists containers
inspect_containerName suggests: reads
Inspects one container
container_logs
Reads container logs
container_stats
Reads container stats
list_compose_stacksName suggests: reads
Rolls up Compose stacks with health
list_podsName suggests: reads
Lists Podman pods
remove_containerName suggests: deletes
Removes a container
prune_images
Prunes images
prune_volumes
Prunes volumes
recreate_stack
Recreates a Portainer stack
restart_container
Restarts a container
stop_containerName suggests: changes
Stops a container
start_containerName suggests: changes
Starts a container
update_containerName suggests: changes
Updates container limits

What it does

Restart-loop RCA
Maps container exit codes to likely causes and shows a log tail.
Resource pressure
Flags containers near or over CPU and memory limits with a recommendation.
Bloat analysis
Totals dangling images, volumes and build cache with reclaimable bytes.
Three platforms
Docker, Portainer and Podman through one set of tools.
Dry-run previews
Write tools preview what a prune or removal would affect.
Audit and undo
Every call is logged and reversible writes record an inverse.

Good for

  • Find out why a container keeps restarting
  • Spot containers close to their memory limit
  • Reclaim disk from dangling images and volumes
  • Roll up Compose stacks and their health
  • Restart or stop a container with an audit record

Pricing

Open source

MIT licensed

Container Host AIops FAQ

Which platforms does Container Host AIops support?

Docker Engine, Portainer and Podman, selected by a per-target `platform` field.

How many tools are there?

38: 29 reads and 9 writes.

Is Portainer tested live?

The README says only Docker was exercised against a live daemon; Portainer and Podman have mock tests.

Does Container Host AIops need a secret for Docker?

Not for a local socket; Portainer uses an API token stored in an encrypted file.

Which writes are irreversible?

`remove_container`, `prune_images`, `prune_volumes` and `recreate_stack` capture before-state but have no undo.

Is Container Host AIops free?

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

How do I add Container Host AIops to Claude Code?

Run this command in your terminal: claude mcp add container-host-aiops -- uvx container-host-aiops

What are the best alternatives to Container Host AIops?

The closest alternatives to Container Host AIops are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

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

How AIPoweredBot checks servers