# Zabbix AI CLI [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/stufently/zabbix-ai-cli  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zabbix-ai-cli

## Description
Task-shaped Zabbix access for AI agents: problems, host triage, metrics, maintenance windows.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/stufently/zabbix-ai-cli), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Sign in:

```sh
zabbix-ai-cli-mcp login
```

2. Start the server:

```sh
zabbix-ai-cli-mcp mcp
```

3. Install:

```sh
curl -fsSLO "$BASE/$ARCHIVE" && curl -fsSLO "$BASE/checksums.txt"
```

4. Start the server:

```sh
ZABBIX_AI_CLI_MCP_URL=https://zabbix.example.com ZABBIX_AI_CLI_MCP_TOKEN=your-api-token ~/.local/bin/zabbix-ai-cli-mcp mcp
```

5. Install:

```sh
$Version = (Invoke-RestMethod https://api.github.com/repos/stufently/zabbix-ai-cli-mcp/releases/latest).tag_name.TrimStart('v')
```

6. Install:

```sh
$Arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'amd64' }
```

## Documentation

## What Zabbix AI CLI does

Zabbix AI CLI provides task-shaped access to Zabbix for both people at a terminal and AI agents using Model Context Protocol. It is designed for operational questions such as what is currently broken, why a host is not reporting, whether an alert was delivered, and which recent metric values explain an incident.

The binary also handles changes. Maintenance windows can be opened, extended, ended, or removed; media types can be enabled or disabled; and lost-resource behavior for low-level discovery rules can be adjusted. An API-call operation remains available for cases not covered by the task commands, subject to the same controls.

Its output is bounded and follows a stable JSON contract. The commands account for Zabbix API behavior that can otherwise produce incomplete or misleading results, including selecting the appropriate history table for metric types and finding host, interface, event, and maintenance context.

## How it works

The program connects to a Zabbix 6.4-or-newer instance using bearer-token authentication. It does not invoke a language model: the MCP client or agent decides what to request, while this binary performs the operation against Zabbix.

MCP transport is available through stdio or streamable HTTP. The `mcp` command starts the server. A read-only MCP process can be forced with `mcp --read-only`, regardless of the configured write setting.

Read operations execute immediately. Write operations depend on `allow_write`. When writes are disabled, the tool creates a plan and a person applies it separately with `approve <plan-id>`. When enabled, an agent can apply an approved operation through the write path. Plans are checked again against live Zabbix before execution, including parameter integrity, expiry, and preconditions.

Applied changes are appended to an audit log with the selected profile, parameters, affected objects, and whether a person or model initiated the request. HTTP mode requires a bearer token when it can perform writes.

## Setup and configuration

Prebuilt archives are published for Linux, macOS, and Windows on amd64 and arm64. Linux and macOS installation can download the latest release archive, verify it with `checksums.txt`, install the binary in `~/.local/bin`, and start it with:

```bash
ZABBIX_AI_CLI_MCP_URL=https://zabbix.example.com \
ZABBIX_AI_CLI_MCP_TOKEN=your-api-token \
zabbix-ai-cli-mcp mcp
```

The executable must be on `PATH` when a client configuration invokes it by name; otherwise, use its absolute path. The same URL and token can be supplied through the client’s MCP configuration.

Configuration is stored in `~/.config/zabbix-ai-cli-mcp/config.toml`. `allow_write` defaults to true, but setting it to false is recommended when agent-applied changes are not appropriate. Profiles can define a different Zabbix URL and override the write setting. Profile `scopes` restrict what a profile may touch, while `ZABBIX_AI_CLI_MCP_ALLOW_WRITE` can override file settings for container use.

The CLI also supports login and direct commands such as `problems list`, `host investigate server01`, `alert why 757474`, and `maintenance create "ms*" --for 2h`.

## Tools and capabilities

- List active problems, including suppressed problems and the maintenance window hiding each one.
- Investigate a host in one operation, covering state, active problems, recent events, silent or unsupported items, and maintenance.
- Return compact host status rather than the full configuration payload.
- Explain alert delivery using suppression state, delivery attempts, actions, media types, and recipient severity filters.
- Resolve a notification into event, host, and trigger identifiers.
- Find monitored hosts that Zabbix cannot poll and show recorded errors.
- Retrieve latest values and history with the correct history type, human-readable units, and minimum, average, and maximum values.
- Manage maintenance windows, media-type status, and lost low-level-discovery resource policy through plan and approval controls.

## Limitations and notes

Zabbix 6.4 or newer is required because the implementation uses bearer-token authentication. Earlier Zabbix versions use a different token location and are not supported by this authentication model.

Write access is controlled by one setting, but profile scopes, risk checks, plan expiry, and live precondition checks still apply. A read-only server cannot apply changes. Destructive effects, such as history deletion associated with lost-resource policy changes, are identified in the generated plan.

The server is an operational Zabbix interface, not an embedded AI system. An MCP client or agent is responsible for deciding which command to call and how to interpret the returned data.

_Full upstream README: https://allmcps.com/mcp/zabbix-ai-cli/readme_

