@nks-hub/zabbix-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@nks-hub/zabbix-mcp show active high-severity Zabbix problems from the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@nks-hub/zabbix-mcp
MCP server for Zabbix monitoring: query hosts, problems, triggers, events, items, and history directly from Claude Code, OpenClaw, or any MCP-compatible client.
Questions an AI assistant can answer with it:
"What broke today on our servers?"
"Show me active high-severity problems in the last 24 hours"
"Which host has this trigger and what metric caused it?"
"List all PVE-related alerts and acknowledge the maintenance window"
"Give me item history for this metric before and after the incident"
Features
π οΈ 11 tools - Host groups, hosts, problems, events, triggers, items, metric history and acknowledgements
π Token or login auth - API token or username/password
π¨ Problem queries - Current and recent problems filtered by time (
since), severity and acknowledgementπ Metric history - Raw item history, for example before and after an incident
β Event actions - Acknowledge events, add messages, suppress, close or change severity
βοΈ Response truncation - Responses over 25,000 characters are cut and carry a hint with the number of items returned and how to narrow the query
π¬ Error messages - Timeouts (30 s), HTTP errors and Zabbix RPC errors reach the client with the status or RPC code and message
Related MCP server: Zabbix MCP Server
Requirements
Node.js: 18+
Zabbix: API-enabled instance (token or user auth). Tested against 6.0, 7.0, 7.4 and 8.0. On Zabbix below 6.4 the API token is sent in the request body, since those versions ignore the
Authorization: Bearerheader.
Installation
Run it with npx without installing:
npx -y @nks-hub/zabbix-mcpOr install globally:
npm install -g @nks-hub/zabbix-mcpFrom source
git clone https://github.com/nks-hub/zabbix-mcp.git
cd zabbix-mcp
npm install && npm run buildConfiguration
Add to your ~/.claude/settings.json or project .claude/settings.json:
API token auth (recommended)
{
"mcpServers": {
"zabbix": {
"command": "npx",
"args": ["-y", "@nks-hub/zabbix-mcp"],
"env": {
"ZABBIX_URL": "https://monitor.example.com",
"ZABBIX_API_TOKEN": "your-api-token"
}
}
}
}CLI shorthand
claude mcp add zabbix -e ZABBIX_URL=https://monitor.example.com -e ZABBIX_API_TOKEN=your-token -- npx -y @nks-hub/zabbix-mcpUsername + password auth
{
"mcpServers": {
"zabbix": {
"command": "npx",
"args": ["-y", "@nks-hub/zabbix-mcp"],
"env": {
"ZABBIX_URL": "https://monitor.example.com",
"ZABBIX_USERNAME": "Admin",
"ZABBIX_PASSWORD": "your-password"
}
}
}
}Usage
Once configured, the MCP client sees the tools listed below and calls them when you ask about Zabbix state.
Authentication
Method | Environment variables | Use case |
API token |
| Recommended for production |
Username/password |
| Legacy setups or quick testing |
Both require ZABBIX_URL pointing at your Zabbix instance.
ZABBIX_URL may be provided as any of these forms:
https://monitor.example.com/api_jsonrpc.phphttps://monitor.example.com/zabbixhttps://monitor.example.com
The server normalizes it to the API endpoint.
Tools (11)
System
Tool | Description |
| Connectivity smoke test for the configured Zabbix API |
Hosts
Tool | Description |
| Discover host groups |
| List monitored hosts with filtering |
| Full host detail including interfaces, groups, macros, and inventory |
Problems and events
Tool | Description |
| Current/recent problem events with time, severity, and ack filters |
| Trigger event timeline/history |
| Acknowledge, annotate, close, suppress, or change event severity |
Triggers
Tool | Description |
| List triggers by host/group/problem state |
| Full trigger detail with hosts, items, tags, and dependencies |
Items and metrics
Tool | Description |
| Discover item IDs, keys, state, and last value |
| Fetch raw metric history for a specific item |
Common workflows
1. Daily incident analysis
zabbix_list_host_groupszabbix_list_hostszabbix_list_problemswithsincezabbix_get_triggerorzabbix_get_hostzabbix_list_items+zabbix_get_item_history
2. Acknowledge a maintenance-related alert
zabbix_list_problemszabbix_acknowledge_eventwithacknowledge=trueandmessage
3. Validate a suspicious metric spike
zabbix_list_itemsinspect
value_typezabbix_get_item_history
Links
@nks-hub/rybbit-mcp: analytics MCP server
Development
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Type check / build check
npm run check
# Package preview
npm packLive smoke tests
Token-based:
ZABBIX_URL="https://monitor.example.com/api_jsonrpc.php" \
ZABBIX_API_TOKEN="your-token" \
node test-live.mjsLogin-based:
ZABBIX_URL="https://monitor.example.com/api_jsonrpc.php" \
ZABBIX_USERNAME="Admin" \
ZABBIX_PASSWORD="your-password" \
node test-login.mjsContributing
Contributions are welcome! For larger changes, open an issue first.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'feat: description')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Support
π§ Email: dev@nks-hub.cz
π Bug reports: GitHub Issues
π MCP Protocol: modelcontextprotocol.io
License
MIT License β see LICENSE for details.
Available Tools
11 toolszabbix_acknowledge_eventAcknowledge / Update EventB
Acknowledge a problem event, optionally add a message, change severity, close it manually, suppress it, or unacknowledge it.
Inputs: eventIds (required), close, message, severity, +4 more. Returns: eventids
zabbix_get_hostGet Host DetailARead-onlyIdempotent
Get full host detail by host ID, including groups, interfaces, tags, inventory, and linked items/triggers counts.
Inputs: hostId (required). Returns: data
zabbix_get_item_historyGet Item HistoryARead-onlyIdempotent
Read raw history for a Zabbix item over a time range. Supports pagination. historyType is OPTIONAL β when omitted the server auto-resolves it from the item's value_type via item.get. Pass historyType explicitly only if you need to override (rare).
Inputs: itemId (required), page, till, since, +2 more. Returns: data, query, lastSeen, pagination, +1 more
zabbix_get_triggerGet Trigger DetailARead-onlyIdempotent
Get full detail for a single Zabbix trigger including hosts, items, tags, dependencies, and discovery data.
Inputs: triggerId (required). Returns: data
zabbix_healthZabbix HealthARead-onlyIdempotent
Connectivity check for Zabbix API. Returns API version and current server time.
Inputs: no named parameters. Returns: status, version, latestEvent
zabbix_list_eventsList EventsARead-onlyIdempotent
List trigger events from Zabbix. Supports pagination. Use for timeline/history work when problem.get is too narrow. Sorted DESC by eventid; use lastSeen.eventid as a continuation reference.
Inputs: page, till, since, search, +3 more. Returns: data, query, lastSeen, pagination
zabbix_list_host_groupsList Host GroupsARead-onlyIdempotent
List Zabbix host groups with optional name search. Supports pagination.
Inputs: page, search, pageSize. Returns: data, query, lastSeen, pagination
zabbix_list_hostsList HostsBRead-onlyIdempotent
List monitored Zabbix hosts with optional filtering by group, name, status. Supports pagination.
Inputs: page, search, status, groupIds, +3 more. Returns: data, query, lastSeen, pagination
zabbix_list_itemsList ItemsARead-onlyIdempotent
List Zabbix items by host/group/search. Supports pagination. Useful for metrics discovery before reading history. Returned items include value_type which feeds zabbix_get_item_history.
Inputs: page, search, hostIds, groupIds, +3 more. Returns: data, query, lastSeen, pagination
zabbix_list_problemsList ProblemsARead-onlyIdempotent
List current or historical Zabbix problem events with filters for host, group, severity, acknowledgement, suppression, and time window. Supports pagination. Sorted DESC by eventid (newest first); use lastSeen.eventid from the response as a stable continuation reference.
Inputs: page, till, since, search, +7 more. Returns: data, query, lastSeen, pagination
zabbix_list_triggersList TriggersBRead-onlyIdempotent
List Zabbix triggers with filters for host, group, state, severity. Supports pagination.
Inputs: page, search, hostIds, groupIds, +4 more. Returns: data, query, lastSeen, pagination
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 11 tools
Most tools target distinct resources (hosts, host groups, items, triggers, problems, events) and the descriptions explicitly delimit the fuzzy pairs: list_problems is problem.get, list_events is the broader trigger-event timeline, and list_triggers is the configured trigger inventory. The only real overlap is problems vs. events vs. triggers, and get_trigger vs. list_triggers, which an agent must read carefully to choose correctly.
Every tool uses the same zabbix_ prefix followed by a verb_noun pattern (list_hosts, get_host, acknowledge_event, get_item_history) in snake_case. The lone exception is zabbix_health, a conventional standalone ping-style name that doesn't break the pattern.
Eleven tools is comfortably within the well-scoped range, and each one earns its place: a health check, list/get pairs for the core entities, history retrieval, and a single mutation. No redundancy or bloat.
The read path is essentially complete for an observability workflow (health β groups β hosts β items β history β triggers β problems β events β acknowledge), with pagination throughout. Gaps remain on the write/configuration side (no create/update/delete for hosts, items, or triggers, no templates, maintenance, or user/audit coverage), though these appear intentional for a read-focused server and are partially workable around via filtered list calls.
Maintenance
Related MCP Connectors
Manage uptime monitors and incidents and search logs, metrics and traces from an AI assistant.
Search and read Zammad tickets, customers and organizations; add notes, replies and ticket updates.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Connect AI assistants to Xitoring monitoring: servers, uptime, incidents, metrics, SSL, and alerts.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to monitor and query Zabbix infrastructure through natural language by providing access to current problems, active triggers, and system health status via the Zabbix API.-
- AlicenseBqualityAmaintenanceOfficial initMAX MCP server exposing the Zabbix API to AI assistants for monitoring and managing hosts, problems, templates, dashboards, and multiple Zabbix instances. Includes correlated monitoring views, graphs, anomaly detection, capacity forecasts, and PDF reports, with scoped tokens, read-only modes, OAuth 2.1, and an admin portal. Supports Streamable HTTP, SSE, and stdio.84255AGPL 3.0
- FlicenseNot gradedqualityCmaintenanceExposes Zabbix monitoring capabilities as callable tools for AI agents and MCP-compatible clients.-
- AlicenseAqualityBmaintenanceZabbix MCP server and CLI in one Go binary. 15 task-shaped tools: current problems, host investigation, why an alert did or did not arrive, metrics, maintenance. Zabbix 6.4+.15Apache 2.0