npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nks-hub/zabbix-mcp

v0.2.1

Published

MCP server for Zabbix monitoring: hosts, problems, triggers, events, items, and acknowledgements

Downloads

482

Readme

@nks-hub/zabbix-mcp

Build Status npm version License: MIT TypeScript MCP SDK

MCP server for Zabbix monitoring — query hosts, problems, triggers, events, items, and history directly from Claude Code, OpenClaw, or any MCP-compatible client.


Why?

Instead of manually clicking through the Zabbix UI, let your AI assistant inspect monitoring state directly:

  • "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"

Quick Start

Installation

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

Or clone and build:

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:

API token auth (recommended)

{
  "mcpServers": {
    "zabbix": {
      "command": "npx",
      "args": ["-y", "@nks-hub/zabbix-mcp"],
      "env": {
        "ZABBIX_URL": "https://monitor.example.com/api_jsonrpc.php",
        "ZABBIX_API_TOKEN": "your-zabbix-api-token"
      }
    }
  }
}

Username + password auth

{
  "mcpServers": {
    "zabbix": {
      "command": "npx",
      "args": ["-y", "@nks-hub/zabbix-mcp"],
      "env": {
        "ZABBIX_URL": "https://monitor.example.com/api_jsonrpc.php",
        "ZABBIX_USERNAME": "Admin",
        "ZABBIX_PASSWORD": "your-password"
      }
    }
  }
}

Usage

Ask your MCP client anything about Zabbix state. The tools become available automatically.


Features

| Feature | Description | |---------|-------------| | 11 Monitoring Tools | Coverage for host groups, hosts, problems, events, triggers, items, metric history, and acknowledgements | | Flexible Auth | API token (recommended) or username/password login | | Incident-Focused | Optimized for "what broke today?" workflows and infra triage | | History Access | Query raw item history for root-cause analysis | | Operational Actions | Acknowledge events, add messages, suppress, close, or change severity | | Response Truncation | Auto-truncation at 25k chars to avoid context bloat | | Actionable Errors | Clear error messages that help the LLM recover quickly |


Authentication

Supports two authentication methods:

| 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 automatically.


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 & 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 & 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

2. Acknowledge a maintenance-related alert

  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

Requirements

  • Node.js: 18+
  • Zabbix: API-enabled instance (token or user auth)

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.


Links