Zabbix AI CLI logo

Zabbix AI CLI

Task-focused Zabbix triage and controlled write operations for MCP clients, with CLI access, bounded output, and audit-ready approvals.

Install Zabbix AI CLI

Run the project’s own setup commands, in order.

Setup steps from the project

Zabbix AI CLI installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Sign in
    zabbix-ai-cli-mcp login
    
  2. 2. Start the server
    zabbix-ai-cli-mcp mcp
    
  3. 3. Install
    curl -fsSLO "$BASE/$ARCHIVE" && curl -fsSLO "$BASE/checksums.txt"
    
  4. 4. Start the server
    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. 5. Install
    $Version = (Invoke-RestMethod https://api.github.com/repos/stufently/zabbix-ai-cli-mcp/releases/latest).tag_name.TrimStart('v')
    
  6. 6. Install
    $Arch = if ($env:PROCESSOR_ARCHITECTURE -eq 'ARM64') { 'arm64' } else { 'amd64' }
    

Overview

Zabbix AI CLI MCP server is a Go binary that combines a command-line client with an MCP server for Zabbix 6.4 and newer. It exposes task-oriented operations for current problems, host investigation, alerts, metrics, unreachable hosts, maintenance, media channels, and discovery-rule policies instead of passing raw API methods directly to an agent. MCP connections use stdio or streamable HTTP, and the program executes requests without contacting a language model. Use it when an SRE or DevOps workflow needs bounded Zabbix data and controlled changes, including approval plans and audit logging.

Use cases

  • Triage active Zabbix problems during an incident
  • Investigate silent or unreachable hosts
  • Explain why a Zabbix alert was not delivered
  • Review recent metrics with correctly selected history data
  • Plan and audit maintenance or alerting changes

Key features

  • Task-oriented Zabbix problem and host investigation
  • Alert delivery analysis and notification resolution
  • Metric history selection with units and aggregates
  • Maintenance and media-type management
  • Approval plans, scopes, and audit logging
  • Stdio and streamable HTTP MCP transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 82d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit14d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Zabbix AI CLI works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Zabbix AI CLI

Zabbix AI CLI is an MCP server that connects AI agents and command-line users to Zabbix 6.4 or newer. Its main tools investigate problems and hosts, explain alert delivery, retrieve metrics and history, manage maintenance, and control selected write operations through plans, approvals, and audit logging.

Install a prebuilt archive for Linux, macOS, or Windows, verify the download with checksums.txt, and place the binary on PATH. Start it with the mcp command and provide ZABBIX_AI_CLI_MCP_URL and ZABBIX_AI_CLI_MCP_TOKEN.

Yes, Zabbix AI CLI works with Cursor through its MCP configuration. Configure Cursor to launch the binary with the mcp argument, and provide the Zabbix URL and bearer API token through the environment.

Set allow_write to false or start the MCP process with --read-only. With writes disabled, changes become plans that a person must apply with the approve command; the read-only flag blocks both write paths.

Zabbix AI CLI requires Zabbix 6.4 or newer. It uses bearer-token authentication, which is available in Zabbix 6.4; earlier versions expect tokens in the request body and are not supported.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewZabbix AI CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/zabbix-ai-cli?style=directory)](https://allmcps.com/mcp/zabbix-ai-cli)
HTML Embed
<a href="https://allmcps.com/mcp/zabbix-ai-cli"><img src="https://allmcps.com/api/badge/zabbix-ai-cli?style=directory" alt="Zabbix AI CLI on AllMCPs" /></a>