MCP server for the Zabbix API โ daily brief, problems, hosts, items
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | ๆฅๆฌ่ช
MCP (Model Context Protocol) server for the Zabbix API.
Built for network operations: a single daily_brief call summarizes active
problems plus site-specific categories (DHCP pool usage, SNAT session usage,
core-network problems, โฆ), and individual tools query problems, hosts, and item
values. Organization-specific tags live in a config file, not the code, so the
server stays generic.
Version-adaptive auth: works against Zabbix 6.0 LTS (user + auth field) and
forward-compatible with 6.4 / 7.0 (username + Authorization: Bearer).
Documentation: https://shigechika.github.io/zapi-mcp/
| Tool | Description |
|---|---|
health_check | Server version, Zabbix connectivity/auth, detected API version, and configured daily_brief categories โ call at session start or after a timeout |
daily_brief | Morning patrol: active problems (Warning+), hosts currently in maintenance, plus one section per configured category |
get_problems | Active problems by severity and tag, newest-first with age; header shows the true total (showing N of TOTAL when capped); output includes eventid |
get_hosts | List hosts filtered by role/tag/group, with IP and tags |
get_host_items | Current item values for a host (server-side host filter) |
acknowledge_problem | Acknowledge problems and add a message (does not close them) |
set_maintenance | Open an idempotent Zabbix maintenance window, selecting hosts by location tag or by exact host name (exactly one of the two) |
get_maintenance_windows | List maintenance windows (Active/Upcoming/Expired) โ cross-check before treating another tool's alert as a new incident |
Or from source:
Set the following environment variables:
| Variable | Description | Default |
|---|---|---|
ZABBIX_URL | Zabbix base URL (e.g. https://zabbix.example.com); /api_jsonrpc.php is appended if absent | required |
ZABBIX_USER | Zabbix API user | required |
ZABBIX_PASSWORD | Zabbix API password | required |
ZABBIX_CATEGORIES_INI | Path to a categories INI file for daily_brief (optional) | โ |
ZABBIX_BRIEF_RECENT_HOURS | daily_brief "recent" window in hours; problems older than this are folded to a count | 24 |
ZABBIX_BRIEF_PROBLEM_LIMIT | Max active problems daily_brief fetches per call before counting the rest | 1000 |
The API user needs read permission for the host groups you query, plus
acknowledge permission if you use acknowledge_problem, maintenance-write
permission if you use set_maintenance, and maintenance-read permission
(usually included by default) for get_maintenance_windows and the
daily_brief "In Maintenance" section.
daily_briefProblems are grouped by severity and listed newest-first, each annotated with
its age (e.g. 3h ago). Problems older than the recent window
(ZABBIX_BRIEF_RECENT_HOURS, default 24h) are folded to a single
โฆ and N older (stale; oldest โฆ) line โ so a backlog of alerts that Zabbix
keeps active because their recovery is never auto-confirmed (ICMP ping down, RDP
down, โฆ) doesn't bury what just happened. Section headers carry the true total
and show showing N of TOTAL when the fetch is capped, never a silent truncation.
daily_briefRight after Active Problems, daily_brief lists hosts covered by a
maintenance window that's active now, plus any window starting later today โ
so a planned outage isn't mistaken for a new incident by whatever else is
watching those hosts. The ## In Maintenance section is omitted entirely
when there's nothing to show (no news is no maintenance). Windows starting
tomorrow or later, and expired windows, aren't included here; call
get_maintenance_windows (optionally with include_expired=True) for the
full picture.
daily_brief (optional)daily_brief always lists active problems. To add site-specific sections โ
DHCP pool exhaustion, SNAT session usage, core-network problems โ point
ZABBIX_CATEGORIES_INI at an INI file. Each [section] is one category:
tag (required): host tag identifying the category. With tag_value, the tag
must equal it (Equal); without, any host carrying the tag matches (Exists).item_key / item_key_search: when either is set, the section reports current
item values sorted high-to-low. item_key matches the key exactly; use
item_key_search for keys that embed an id (e.g. .usage catches
pool.node0.usage). When neither is set, it reports active problems for the tag.threshold: optional; values at or above it are flagged.See categories.ini.example. When the variable is
unset or the file is missing, daily_brief reports active problems only.
Two tools change state. Everything else only reads.
| Tool | Zabbix API call |
|---|---|
acknowledge_problem | event.acknowledge |
set_maintenance | maintenance.create |
acknowledge_problem needs acknowledge permission on the API user;
set_maintenance needs maintenance-write permission. Leave either off and
the server stays read-only for that one tool: the call fails against the
Zabbix API and every other tool keeps working, so an API user can be handed
to Claude for investigation without granting it any ability to change Zabbix
configuration. Grant the permission only when acknowledging alerts or opening
maintenance windows from Claude is part of the job.
This repository doubles as a single-plugin marketplace, so Claude Code can install the server for you:
The plugin launches uvx zapi-mcp and reads the same environment variables
described in Configuration; export them before starting
Claude Code. ZABBIX_CATEGORIES_INI may stay unset.
uvx must be on the PATH of the process that runs Claude Code โ a login
shell usually has it, but a GUI-launched app may not; install
uv system-wide if the plugin fails to start.
Add to .mcp.json:
Add to claude_desktop_config.json:
--check exit codes: 0 success, 1 config error, 2 auth/connection error.
--brief exit codes: 0 success, 1 a section failed (auth, the active-problems
fetch, or category loading โ see the embedded Error: line in the output).
pytest checks logic against fixtures; it cannot tell you that a tool has
stopped returning real data. scripts/smoke_test.py runs every registered
tool against the configured Zabbix and fails on empty, malformed or error
answers:
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/zabbix-api-mcp)<a href="https://allmcps.com/mcp/zabbix-api-mcp"><img src="https://allmcps.com/api/badge/zabbix-api-mcp?style=directory" alt="Zabbix API MCP on AllMCPs" /></a>