
Zabbix MCP
io.github.mhajder由 GitHub 帳號 mhajder 發布v0.8.0更新於 Nov 7, 2026
用於Zabbix監控和自動化的MCP伺服器
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
MCP server for Zabbix monitoring and automation
概覽
Zabbix 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Zabbix MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Zabbix MCP Server
Let AI agents query and manage Zabbix monitoring through the Model Context Protocol
Zabbix MCP Server is a Python-based Model Context Protocol (MCP) server designed to provide advanced, programmable access to Zabbix monitoring data and management features. It exposes a modern API for querying, automating, and integrating Zabbix resources such as hosts, templates, triggers, items, problems, events, users, proxies, maintenance periods, and more. The server supports both read and write operations, robust security features, and is suitable for integration with AI assistants, automation tools, dashboards, and custom monitoring workflows.
✨ Features
Core Features
- Query Zabbix hosts, templates, items, triggers, and host groups with flexible filtering
- Retrieve problems, events, and alerts with severity filtering
- Access history and trend data for monitored items
- Monitor trigger states and problem severity
- Manage maintenance periods and scheduled downtimes
- Retrieve user macros and configuration data
- Get SLA and service information
Management Operations
- Create, update, and delete hosts, templates, and host groups (if enabled)
- Manage triggers, items, and discovery rules
- Configure maintenance periods and user macros
- Execute scripts on monitored hosts
- Acknowledge events and close problems
- Create and manage users and proxies
- Support for bulk operations on hosts and templates
Advanced Capabilities
- Rate limiting and API security features
- Read-only mode to restrict all write operations for safe monitoring
- Optional tool-search transform for large tool catalogs
- Bearer token authentication for HTTP transport
- Comprehensive logging and audit trails
- SSL/TLS support and configurable timeouts
- Multiple transport options (STDIO, SSE, HTTP)
- Optional Sentry integration for error tracking
🚀 Installation
Prerequisites
- Python 3.11 to 3.15
- Access to a Zabbix server. Versions 6.0 to 7.4 are supported - that is the range
the
zabbix-utilsclient accepts, and it refuses to connect outside it unlessZABBIX_SKIP_VERSION_CHECK=trueis set - Valid Zabbix API token or user credentials with appropriate permissions
Quick Install from PyPI
The easiest way to get started is to install from PyPI:
Remember to configure the environment variables for your Zabbix instance before running the server:
Install from Source
- Clone the repository:
- Install dependencies:
- Configure environment variables:
- Run the server:
Using Docker
A Docker image is available on GitHub Packages for easy deployment. It runs the
HTTP Streamable transport on port 8000 (/mcp).
Open WebUI
Open WebUI 0.6.31 and later connect to the image directly; the separate MCPO
image (ghcr.io/mhajder/zabbix-mcpo) is no longer published. In Open WebUI,
go to Admin Settings > Integrations > External Tool Servers, add a connection
of type MCP (Streamable HTTP) with the URL http://<host>:8000/mcp, and set
Bearer authentication to your MCP_HTTP_BEARER_TOKEN.
Development Setup
For development with additional tools:
🔧 Configuration
Environment Variables
🧰 Available Tools
API Information
api_version: Get Zabbix API version information
Host Management
host_get: List hosts with optional filtering by groups, templates, proxies, and search criteriahost_create: Create a new host with interfaces and template linkinghost_update: Update host properties (name, status, description)host_delete: Delete hosts by ID
Host Group Management
hostgroup_get: List host groups with optional filteringhostgroup_create: Create a new host grouphostgroup_update: Update an existing host group's properties (name)hostgroup_delete: Delete host groups
Template Management
template_get: List templates with optional filteringtemplate_create: Create a new templatetemplate_update: Update template properties (name, description)template_delete: Delete templates
Item Management
item_get: List items with optional filtering by hosts, groups, templatesitem_create: Create a new item on a hostitem_update: Update item properties (name, delay, units, description, status)item_delete: Delete items
Trigger Management
trigger_get: List triggers with severity and state filteringtrigger_create: Create a new trigger with expressiontrigger_update: Update trigger properties (description, expression, priority, status, comments)trigger_delete: Delete triggers
Problem & Event Management
problem_get: Get current problems with severity and time filteringevent_get: Get events with time range filteringevent_acknowledge: Acknowledge events with optional messages
History & Trends
history_get: Get historical data for itemstrend_get: Get trend data for items
User Management
user_get: List users with optional filteringuser_create: Create a new useruser_update: Update user properties (username, name, surname, password, role)user_delete: Delete users
Proxy Management
proxy_get: List proxies with optional filteringproxy_create: Create a new proxyproxy_update: Update proxy properties (name, operating mode, description)proxy_delete: Delete proxies
Maintenance Management
maintenance_get: List maintenance periodsmaintenance_create: Create a new maintenance periodmaintenance_update: Update maintenance period properties (name, times, description)maintenance_delete: Delete maintenance periods
Action & Media
action_get: List actions (triggers, autoregistration, etc.)mediatype_get: List media types
Graph & Discovery
graph_get: List graphs with optional filteringdiscoveryrule_get: List LLD discovery rulesdrule_get: List network discovery rulesitemprototype_get: Get item prototypes from discovery rules
SLA & Services
sla_get: List SLAsservice_get: List services
Scripts
script_get: List scriptsscript_execute: Execute a script on a host
User Macros
usermacro_get: List user macros (host and global)usermacro_create: Create a host macrousermacro_delete: Delete host macros
Configuration Management
configuration_export: Export Zabbix configurations to JSON or XMLconfiguration_import: Import Zabbix configurations from JSON or XML
🔒 Security & Safety Features
Read-Only Mode
The server supports a read-only mode that disables all write operations for safe monitoring:
Tag-Based Tool Filtering
You can disable specific categories of tools by setting disabled tags:
Tool Search for Large Toolsets
FastMCP tool search can reduce prompt size for servers with many tools.
When enabled, list_tools returns two synthetic tools:
search_tools: Finds matching tools and returns their full schemascall_tool: Executes any discovered tool by name
Enable it with:
bm25 supports natural language queries, while regex uses a regex
pattern input for deterministic matching.
Tool search respects existing visibility controls (read-only mode and disabled tags).
Rate Limiting
The server supports rate limiting to control API usage and prevent abuse. If enabled, requests are limited per client using a sliding window algorithm.
Enable rate limiting by setting the following environment variables in your .env file:
If RATE_LIMIT_ENABLED is set to true, the server will apply rate limiting middleware. Adjust RATE_LIMIT_MAX_REQUESTS and RATE_LIMIT_WINDOW_MINUTES as needed for your environment.
Sentry Error Tracking & Monitoring (Optional)
The server optionally supports Sentry for error tracking, performance monitoring, and debugging. Sentry integration is completely optional and only initialized if configured.
Installation
To enable Sentry monitoring, install the optional dependency:
Configuration
Enable Sentry by setting the SENTRY_DSN environment variable in your .env file:
Features
When enabled, Sentry automatically captures:
- Exceptions & Errors: All unhandled exceptions with full context
- Performance Metrics: Request/response times and traces
- MCP Integration: Detailed MCP server activity and interactions
- Logs & Breadcrumbs: Application logs and event trails for debugging
- Context Data: Environment, client info, and request parameters
Getting a Sentry DSN
- Create a free account at sentry.io
- Create a new Python project
- Copy your DSN from the project settings
- Set it in your
.envfile
Disabling Sentry
Sentry is completely optional. If you don't set SENTRY_DSN, the server will run normally without any Sentry integration, and no monitoring data will be collected.
SSL/TLS Configuration
The server supports SSL certificate verification and custom timeout settings:
Transport Configuration
The server supports multiple transport mechanisms for the MCP protocol:
STDIO Transport (Default)
The default transport uses standard input/output for communication. This is ideal for local usage and integration with tools that communicate via stdin/stdout:
HTTP SSE Transport (Server-Sent Events)
For network-based deployments, you can use HTTP with Server-Sent Events. This allows the MCP server to be accessed over HTTP with real-time streaming:
When using SSE transport with a bearer token, clients must include the token in their requests:
HTTP Streamable Transport
The HTTP Streamable transport provides HTTP-based communication with request/response streaming. This is ideal for web integrations and tools that need HTTP endpoints:
When using streamable transport with a bearer token:
Note: The HTTP transport requires proper JSON-RPC formatting with jsonrpc and id fields. The server may also require session initialization for some operations.
Health Endpoint
Both HTTP transports (sse and http) serve GET /health, which answers 200 ok
when the server is handling requests. It needs no bearer token and does not
contact Zabbix, so a Zabbix outage does not mark the MCP server unhealthy.
The Docker image's HEALTHCHECK uses it:
For more information on FastMCP transports, see the FastMCP documentation.
🤝 Contributing
Contributions are welcome. See CONTRIBUTING.md for the dev setup, checks and commit message format, and use the issue templates for bugs and feature requests.
Found a security problem? Please report it privately as described in SECURITY.md.
📜 License
MIT License - see LICENSE for details.
來源:README.md,提交 a7ea3b5
工具
0版本歷史
4- v0.8.0最新Nov 7, 2026
- v0.7.1Oct 23, 2026
- v0.7.0Oct 19, 2026
- v0.6.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分