# Zabbix API MCP [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/shigechika/zapi-mcp  
**GitHub Stars:** 0  
**Views:** 14  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/zabbix-api-mcp

## Description
MCP server for the Zabbix API — daily brief, problems, hosts, items

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "zabbix-api-mcp": {
    "command": "uvx",
    "args": ["zapi-mcp"],
    "env": {
      "ZABBIX_URL": "",
      "ZABBIX_API_TOKEN": "",
      "ZABBIX_USER": "",
      "ZABBIX_PASSWORD": "",
      "ZABBIX_CATEGORIES_INI": "",
      "ZABBIX_BRIEF_RECENT_HOURS": "",
      "ZABBIX_BRIEF_PROBLEM_LIMIT": "",
      "ZABBIX_READ_ONLY": ""
    }
  }
}
```

**Requires environment variables:** `ZABBIX_URL`, `ZABBIX_API_TOKEN`, `ZABBIX_USER`, `ZABBIX_PASSWORD`, `ZABBIX_CATEGORIES_INI`, `ZABBIX_BRIEF_RECENT_HOURS`, `ZABBIX_BRIEF_PROBLEM_LIMIT`, `ZABBIX_READ_ONLY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Zabbix API MCP MCP server does

Zabbix API MCP exposes Zabbix monitoring data and selected operational actions through MCP tools. Its main workflow is `daily_brief`, which combines active Warning-and-higher problems with hosts in maintenance and optional category sections. Other tools support focused investigation: listing problems, finding hosts by role, tag, or group, reading current item values, and reviewing maintenance windows.

Two tools can change Zabbix state: `acknowledge_problem` adds an acknowledgement message without closing the problem, and `set_maintenance` opens an idempotent maintenance window. The server can hide both write tools entirely in read-only mode, making it suitable for investigation-focused assistants.

## How it works

The server communicates with the Zabbix API using a base URL and either an API token or a username and password. It appends `/api_jsonrpc.php` when the configured URL does not already include that endpoint. Authentication supports the `user` and `auth` style used by Zabbix 6.0 LTS and the `username` plus Bearer authorization approach used by later API versions.

`daily_brief` groups problems by severity and orders them newest first. Recent problems are shown individually, while older active problems are folded into a count based on the configured recent-hours window. The output reports the true total when a fetch limit applies. It also includes active maintenance and windows beginning later the same day, helping distinguish planned work from new incidents.

## Setup and configuration

Install the package with either `uv pip install zapi-mcp` or `pip install zapi-mcp`. The repository can also be installed from source with `uv sync` or `pip install -e .`. It runs as a standard MCP process and can be configured in Claude Desktop, Claude Code, or Codex.

Set `ZABBIX_URL` and authenticate with either `ZABBIX_API_TOKEN` or both `ZABBIX_USER` and `ZABBIX_PASSWORD`. A token takes precedence over a leftover username, but supplying a token together with both username and password is invalid. `ZABBIX_CATEGORIES_INI` optionally points to an INI file defining site-specific daily-brief categories.

`ZABBIX_BRIEF_RECENT_HOURS` controls the recent-problem window and defaults to 24 hours. `ZABBIX_BRIEF_PROBLEM_LIMIT` caps the number of problems fetched for a brief. Set `ZABBIX_READ_ONLY` to `true`, `1`, `yes`, or `on` to prevent the write tools from being registered.

## Tools and capabilities

- `health_check` reports server and Zabbix connectivity, authentication status, detected API version, and configured brief categories.
- `daily_brief` summarizes active problems, maintenance coverage, and configured category results.
- `get_problems` filters active problems by severity and tag, includes age and event IDs, and can include disabled entities.
- `get_hosts` filters hosts by role, tag, or group and returns addresses and tags.
- `get_host_items` reads current item values for a selected host.
- `get_maintenance_windows` lists active, upcoming, or expired maintenance windows.
- `acknowledge_problem` and `set_maintenance` provide the two available state-changing actions.

Category sections can report item values above a threshold or active problems matching host tags. Exact item-key matching and substring matching are supported.

## Limitations and notes

The Zabbix API user needs read access to queried host groups. Acknowledge permission is required for `acknowledge_problem`, maintenance-write permission for `set_maintenance`, and maintenance-read permission for maintenance-related queries and the brief's maintenance section. The server does not close problems when acknowledging them. Maintenance selection uses either a `location` tag or an exact host name, not both. Expired and future maintenance windows outside the current day's scope require `get_maintenance_windows`.

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

