LZ

leroylim/zabbix-mcp-server-nodejs

分析与监控

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 11 forks 质量 68 趋势 21MIT

一个用于与Zabbix监测系统相融合的综合性模式背景协议(MCP)服务器. 这个服务器通过标准化接口提供完整的Zabbix API功能,可以.

概览

一个用于与Zabbix监测系统相融合的综合性模式背景协议(MCP)服务器. 这个服务器通过一个标准化的接口提供完整的Zabbix API功能,能够无缝的监控,警示,和基础设施管理与a. - API Token(Zabbix 5.4+)和用户名/口语支持 -- -- 专业的现代API,没有遗留的行李 -- -- 19个类别的综合监测管理 -- -- 所有主要API端点 -- -- 包括地图、仪表板、代理和服务 -- -- 与Zod型安全 -- -- 明确区分关切 -- -- 强有力的错误处理和记录 - API Token (推荐) + 用户名/ Password - 涵盖所有 Zabbix 功能 - 用于颗粒控制 - 有 Zod schema 验证 - 有 API 和工具层 - 包括商务服务和 SLA 监控 : 生产环境、CI/CD、自动化系统 -QQ (没有密码曝光) - 需要QQ (直接令牌使用) - QQ (Zabbix UI中的控件管理) - .

概述(AI 翻译)

一个用于与Zabbix监测系统相融合的综合性模式背景协议(MCP)服务器. 该服务器通过标准化接口提供完整的Zabbix API功能,能够以现代认证和清洁,专业接口进行无缝监测,提醒,和基础设施管理.

□ * * * * 特点

  • QQ现代认证** - API Token(Zabbix 5.4+)和用户名/密码支持
  • 干净接口** - 专业的、现代的、没有遗留行李的API
  • 90+ API 综合监测管理工具
  • ** 完成Zabbix集成** 与所有主要API终点
  • 企业-高级功能 包括地图、仪表板、代理和服务
  • ** 具有Zod型安全性的综合Schema验证**
  • ** 模块结构**,将关切明确分开
  • ** 生产准备** 处理和记录大量错误

□□□□□□□□快来相接.

  • QQ 双重认证** - API Token(建议) + 用户名/名词
  • 19 工具类别,涵盖所有Zabbix功能
  • 90+ 用于颗粒控制的单个工具
  • **100%的 " 安全型 " ** ,并附有Zod计划验证

本页由 AI 翻译,技术细节请以原文为准。

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
在 GitHub 查看完整 README

安装

docker run -d \
新手?先看 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" } } } }