LZ

leroylim/zabbix-mcp-server-nodejs

Analytics & monitoring

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

15 stars 11 forks Качество 68 Тренд 21MIT

A comprehensive Model Context Protocol (MCP) server for integrating with Zabbix monitoring systems. This server provides complete Zabbix API functionality through a standardized interface, enabling...

Обзор

A comprehensive Model Context Protocol (MCP) server for integrating with Zabbix monitoring systems. This server provides complete Zabbix API functionality through a standardized interface, enabling seamless monitoring, alerting, and infrastructure management with and a . - - API Token (Zabbix 5.4+) and Username/Password support - - Professional, modern API without legacy baggage - across 19 categories for comprehensive monitoring management - with all major API endpoints - including maps, dashboards, proxies, and services - with Zod type safety - with clean separation of concerns - with robust error handling and logging - - API Token (recommended) + Username/Password - covering all Zabbix functionality - for granular control - with Zod schema validation - with API and tools layers - including business services and SLA monitoring : Production environments, CI/CD, automated systems - ✅ (no password exposure) - ✅ required (direct token usage) - ✅ (token management in Zabbix UI) - ✅...

README

Показан фрагмент оригинального README. Открыть оригинал.

Zabbix MCP Server

A comprehensive Model Context Protocol (MCP) server for integrating with Zabbix monitoring systems. This server provides complete Zabbix API functionality through a standardized interface, enabling seamless monitoring, alerting, and infrastructure management with modern authentication and a clean, professional interface.

🚀 Features

  • 🔐 Modern Authentication - API Token (Zabbix 5.4+) and Username/Password support
  • 🧹 Clean Interface - Professional, modern API without legacy baggage
  • 90+ API Tools across 19 categories for comprehensive monitoring management
  • Complete Zabbix Integration with all major API endpoints
  • Enterprise-Grade Functionality including maps, dashboards, proxies, and services
  • Comprehensive Schema Validation with Zod type safety
  • Modular Architecture with clean separation of concerns
  • Production Ready with robust error handling and logging

📊 Quick Stats

  • 🔑 Dual Authentication - API Token (recommended) + Username/Password
  • 19 Tool Categories covering all Zabbix functionality
  • 90+ Individual Tools for granular control
  • 100% Type Safe with Zod schema validation
  • Modular Design with API and tools layers
  • Enterprise Features including business services and SLA monitoring

🔐 Authentication Methods

🎫 API Token Authentication (Recommended)

Best for: Production environments, CI/CD, automated systems

ZABBIX_API_URL=https://your-zabbix-server/api_jsonrpc.php
ZABBIX_API_TOKEN=your_api_token_here

Benefits:

  • ✅ More secure (no password exposure)
  • ✅ No login/logout required (direct token usage)
  • ✅ Easy revocation (token management in Zabbix UI)
  • ✅ Long-lived (configurable expiration)
  • ✅ Audit-friendly (token usage tracking)

🔐 Username/Password Authentication (Traditional)

Best for: Development, testing, legacy systems

ZABBIX_API_URL=https://your-zabbix-server/api_jsonrpc.php
ZABBIX_USERNAME=Admin
ZABBIX_PASSWORD=your_password

Features:

  • ✅ Session-based authentication with auto-refresh
  • ✅ Automatic login/logout handling
  • ✅ Compatible with all Zabbix versions
  • ✅ Familiar authentication flow

🏗️ Tool Categories Overview

🔐 Authentication & Core (3 tools)

  • Session management and API authentication
  • User login/logout functionality
  • API version information

🖥️ Infrastructure Management

  • Hosts (3 tools) - Host discovery, creation, and management
  • Host Groups (4 tools) - Logical host organization and grouping
  • Proxies (4 tools) - Distributed monitoring with active/passive proxies
  • Items (5 tools) - Data collection configuration and monitoring
  • Triggers (4 tools) - Alert condition definition and management

📊 Monitoring & Alerting

  • Problems (2 tools) - Active issue tracking and resolution
  • History (3 tools) - Historical data retrieval and analysis
Открыть полный README на GitHub

Установка

docker run -d \
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "zabbix-mcp": { "command": "node", "args": [ "/path/to/your/zabbix-mcp-server/src/index.js" ], "env": { "ZABBIX_API_URL": "https://your-zabbix-server/api_jsonrpc.php", "ZABBIX_API_TOKEN": "your_api_token_here" } } } }