Skip to main content
Glama
@nks-hub/zabbix-mcp

@nks-hub/zabbix-mcp

by nks-hub

@nks-hub/zabbix-mcp

Build Status npm version Node.js TypeScript MCP SDK License: MIT

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: Bearer header.

Installation

Run it with npx without installing:

npx -y @nks-hub/zabbix-mcp

Or install globally:

npm install -g @nks-hub/zabbix-mcp

From source

git clone https://github.com/nks-hub/zabbix-mcp.git
cd zabbix-mcp
npm install && npm run build

Configuration

Add to your ~/.claude/settings.json or project .claude/settings.json:

{
  "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-mcp

Username + 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

ZABBIX_API_TOKEN

Recommended for production

Username/password

ZABBIX_USERNAME, ZABBIX_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.php

  • https://monitor.example.com/zabbix

  • https://monitor.example.com

The server normalizes it to the API endpoint.

Tools (11)

System

Tool

Description

zabbix_health

Connectivity smoke test for the configured Zabbix API

Hosts

Tool

Description

zabbix_list_host_groups

Discover host groups

zabbix_list_hosts

List monitored hosts with filtering

zabbix_get_host

Full host detail including interfaces, groups, macros, and inventory

Problems and events

Tool

Description

zabbix_list_problems

Current/recent problem events with time, severity, and ack filters

zabbix_list_events

Trigger event timeline/history

zabbix_acknowledge_event

Acknowledge, annotate, close, suppress, or change event severity

Triggers

Tool

Description

zabbix_list_triggers

List triggers by host/group/problem state

zabbix_get_trigger

Full trigger detail with hosts, items, tags, and dependencies

Items and metrics

Tool

Description

zabbix_list_items

Discover item IDs, keys, state, and last value

zabbix_get_item_history

Fetch raw metric history for a specific item

Common workflows

1. Daily incident analysis

  1. zabbix_list_host_groups

  2. zabbix_list_hosts

  3. zabbix_list_problems with since

  4. zabbix_get_trigger or zabbix_get_host

  5. zabbix_list_items + zabbix_get_item_history

  1. zabbix_list_problems

  2. zabbix_acknowledge_event with acknowledge=true and message

3. Validate a suspicious metric spike

  1. zabbix_list_items

  2. inspect value_type

  3. zabbix_get_item_history

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Type check / build check
npm run check

# Package preview
npm pack

Live smoke tests

Token-based:

ZABBIX_URL="https://monitor.example.com/api_jsonrpc.php" \
ZABBIX_API_TOKEN="your-token" \
node test-live.mjs

Login-based:

ZABBIX_URL="https://monitor.example.com/api_jsonrpc.php" \
ZABBIX_USERNAME="Admin" \
ZABBIX_PASSWORD="your-password" \
node test-login.mjs

Contributing

Contributions are welcome! For larger changes, open an issue first.

  1. Fork the repository

  2. Create your feature branch (git checkout -b feature/amazing-feature)

  3. Commit your changes (git commit -m 'feat: description')

  4. Push to the branch (git push origin feature/amazing-feature)

  5. Open a Pull Request

Support

License

MIT License β€” see LICENSE for details.


Available Tools

11 tools
zabbix_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 DetailA
Read-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 HistoryA
Read-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 DetailA
Read-onlyIdempotent

Get full detail for a single Zabbix trigger including hosts, items, tags, dependencies, and discovery data.

Inputs: triggerId (required). Returns: data

zabbix_healthZabbix HealthA
Read-onlyIdempotent

Connectivity check for Zabbix API. Returns API version and current server time.

Inputs: no named parameters. Returns: status, version, latestEvent

zabbix_list_eventsList EventsA
Read-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 GroupsA
Read-onlyIdempotent

List Zabbix host groups with optional name search. Supports pagination.

Inputs: page, search, pageSize. Returns: data, query, lastSeen, pagination

zabbix_list_hostsList HostsB
Read-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 ItemsA
Read-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 ProblemsA
Read-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 TriggersB
Read-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

    A3.7/5.0

    Scored across 11 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • A
      license
      B
      quality
      A
      maintenance
      Official 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.
      84
      255
      AGPL 3.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Exposes Zabbix monitoring capabilities as callable tools for AI agents and MCP-compatible clients.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Zabbix 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+.
      15
      Apache 2.0