VZ

vfcastr/zabbix-mcp

开发工具

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

6 stars 4 forks 质量 57 趋势 14

Model Context Protocol (MCP) server implementation for Zabbix 7.0 LTS

概览

Model Context Protocol (MCP) server implementation for Zabbix 7.0 LTS Features • Prerequisites • Quick Start • Configuration • Tools A Model Context Protocol (MCP) server implementation for . Provides comprehensive integration with Zabbix for managing hosts, items, triggers, templates, maintenance, problems, events, user macros, LLD rules, proxies, user management, and more. : We recommend running via Docker as it is the most tested deployment method. The MCP server is intended for local use only. If using HTTP transport, configure MCP_ALLOWED_ORIGINS to restrict access to trusted origins.

README

以下为原文 README 节选,完整内容请查看原文。

Zabbix MCP Server

Model Context Protocol (MCP) server implementation for Zabbix 7.0 LTS

Features • Prerequisites • Quick Start • Configuration • Tools


A Model Context Protocol (MCP) server implementation for Zabbix 7.0 LTS. Provides comprehensive integration with Zabbix for managing hosts, items, triggers, templates, maintenance, problems, events, user macros, LLD rules, proxies, user management, and more.

🐳 Recommended: We recommend running via Docker as it is the most tested deployment method.

Security Note: The MCP server is intended for local use only. If using HTTP transport, configure MCP_ALLOWED_ORIGINS to restrict access to trusted origins.

🚀 Features

  • 79 MCP Tools covering the full Zabbix API
  • Host, Item, Trigger, and Template Management
  • Host Groups, Template Groups, and Proxy Groups
  • Problem and Event Management with acknowledgement
  • User, User Group, and User Role Management
  • User Macro Management (Host and Global)
  • Low-Level Discovery (LLD) Rules and Prototypes
  • Proxy Management
  • Audit Log Access
  • Built-in Zabbix API Documentation Search
  • Stdio and HTTP transports
  • Session-based Zabbix client with structured logging

📋 Prerequisites

  • Docker (recommended)
  • Go 1.24+ (if building from source)
  • Zabbix 7.0 LTS server
  • Valid Zabbix API Token

⚡ Quick Start

Build the Docker Image

docker build -t zabbix-mcp:latest .

Run in HTTP Mode

docker run -p 8080:8080 --rm \
    -e ZABBIX_URL='http://your-zabbix-server/api_jsonrpc.php' \
    -e ZABBIX_TOKEN='your-api-token' \
    -e TRANSPORT_MODE='http' \
    zabbix-mcp:latest

Run in Stdio Mode

docker run -i --rm \
    -e ZABBIX_URL='http://your-zabbix-server/api_jsonrpc.php' \
    -e ZABBIX_TOKEN='your-api-token' \
    zabbix-mcp:latest

⚙️ Configuration

MCP Client Configuration

Configuration examples are provided in the repository for popular MCP clients:

Claude Code (claude.json)

{
    "mcpServers": {
        "Zabbix": {
            "type": "http",
            "url": "YOUR-ZABBIX-MCP-SERVER-URL/mcp",
在 GitHub 查看完整 README

安装

docker run -p 8080:8080 --rm \
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Zabbix": { "type": "http", "url": "YOUR-ZABBIX-MCP-SERVER-URL/mcp", "headers": { "X-Zabbix-URL": "YOUR-ZABBIX-URL", "X-Zabbix-Token": "YOUR-ZABBIX-TOKEN" } } } }