能力标签
Zabbix MCP
🔌
MCP工具

Zabbix MCP

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:zabbix-mcp
⭐ 7 Stars 🍴 6 Forks 💻 Python 📄 MIT 🏷 AI 7.5分
7.5AI 综合评分
mcpzabbixmonitoringpython
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,Zabbix MCP 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

Zabbix MCP 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 Zabbix MCP,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。Zabbix MCP 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 Zabbix MCP 评为 AI 评分 7.5 分,属于同类工具中的优质选择。

📋 工具概览

轻量级Python MCP服务器,提供Zabbix JSON接口

Zabbix MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 7
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.5 分
工具类型
MCP工具
Forks
6

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

轻量级Python MCP服务器,提供Zabbix JSON接口

Zabbix MCP 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/mhajder/zabbix-mcp

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "zabbix-mcp": {
      "command": "npx",
      "args": ["-y", "zabbix-mcp"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 Zabbix MCP 执行以下任务...
Claude: [自动调用 Zabbix MCP MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "zabbix_mcp": {
      "command": "npx",
      "args": ["-y", "zabbix-mcp"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 79/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

Zabbix MCP Server

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

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

Security & Safety Features

Prerequisites

  • Python 3.11 to 3.14
  • Access to a Zabbix server (5.4+)
  • Valid Zabbix API token or user credentials with appropriate permissions

Clone and install with development dependencies

git clone https://github.com/mhajder/zabbix-mcp.git cd zabbix-mcp uv sync --group dev

Installation

Quick Install from PyPI

The easiest way to get started is to install from PyPI:

```sh

Install from Source

  1. Clone the repository:
git clone https://github.com/mhajder/zabbix-mcp.git
cd zabbix-mcp
  1. Install dependencies:

```sh

Or using the installed script

zabbix-mcp ```

Using Docker

Docker images are available on GitHub Packages for easy deployment.

```sh

Development Setup

For development with additional tools:

```sh

Setup prek hooks

uv run prek install ```

MCPO image for usage with Open WebUI

docker pull ghcr.io/mhajder/zabbix-mcpo:latest ```

Example: DISABLED_TAGS=host,user,maintenance

DISABLED_TAGS=

SENTRY_TRACES_SAMPLE_RATE=1.0

SENTRY_PROFILE_SESSION_SAMPLE_RATE=1.0

Create environment configuration

export ZABBIX_URL=https://zabbix.example.com/api_jsonrpc.php export ZABBIX_TOKEN=your-zabbix-api-token ```

Edit .env with your Zabbix URL and credentials


4. Run the server:
sh

Configuration

Environment Variables

```env

SSL Configuration

ZABBIX_VERIFY_SSL=true ZABBIX_TIMEOUT=30 ZABBIX_SKIP_VERSION_CHECK=false

Logging Configuration

LOG_LEVEL=INFO

Tool Search Transform (Optional)

Sentry Error Tracking (Optional)

Optional Sentry configuration

SENTRY_ENVIRONMENT=production

MCP Transport Configuration

HTTP Transport Settings (used when MCP_TRANSPORT=sse or MCP_TRANSPORT=http)

Optional bearer token for authentication (leave empty for no auth)

MCP_HTTP_BEARER_TOKEN= ```

Configuration Management

  • configuration_export: Export Zabbix configurations to JSON or XML
  • configuration_import: Import Zabbix configurations from JSON or XML

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:

```sh

Optional: Performance monitoring sample rate (0.0-1.0, default: 1.0)

SENTRY_TRACES_SAMPLE_RATE=1.0

Optional: Include personally identifiable information (default: true)

SENTRY_SEND_DEFAULT_PII=true

Optional: Environment name (e.g., "production", "staging")

SENTRY_ENVIRONMENT=production

Optional: Release version (auto-detected from package if not set)

SENTRY_RELEASE=1.2.3

Optional: Profiling - continuous profiling sample rate (0.0-1.0, default: 1.0)

SENTRY_PROFILE_SESSION_SAMPLE_RATE=1.0

Optional: Profiling - lifecycle mode for profiling (default: "trace")

Options: "all", "continuation", "trace"

SENTRY_PROFILE_LIFECYCLE=trace

Optional: Enable log capture as breadcrumbs and events (default: true)

SENTRY_ENABLE_LOGS=true ```

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

  1. Create a free account at sentry.io
  2. Create a new Python project
  3. Copy your DSN from the project settings
  4. Set it in your .env file

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:

ZABBIX_VERIFY_SSL=true    # Enable SSL certificate verification
ZABBIX_TIMEOUT=30         # Connection timeout in seconds

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:

MCP_TRANSPORT=stdio

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:

MCP_TRANSPORT=sse
MCP_HTTP_HOST=0.0.0.0        # Bind to all interfaces (or specific IP)
MCP_HTTP_PORT=8000           # Port to listen on
MCP_HTTP_BEARER_TOKEN=your-secret-token  # Optional authentication token

When using SSE transport with a bearer token, clients must include the token in their requests:

curl -H "Authorization: Bearer your-secret-token" http://localhost:8000/sse

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:

MCP_TRANSPORT=http
MCP_HTTP_HOST=0.0.0.0        # Bind to all interfaces (or specific IP)
MCP_HTTP_PORT=8000           # Port to listen on
MCP_HTTP_BEARER_TOKEN=your-secret-token  # Optional authentication token

When using streamable transport with a bearer token:

curl -H "Authorization: Bearer your-secret-token" \
     -H "Accept: application/json, text/event-stream" \
     -H "Content-Type: application/json" \
     -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
     http://localhost:8000/mcp

Note: The HTTP transport requires proper JSON-RPC formatting with jsonrpc and id fields. The server may also require session initialization for some operations.

For more information on FastMCP transports, see the FastMCP documentation.

API Token (preferred for Zabbix 5.4+)

ZABBIX_TOKEN=your-api-token

Host to bind the HTTP server (default: 0.0.0.0 for all interfaces)

MCP_HTTP_HOST=0.0.0.0

API Information

  • api_version: Get Zabbix API version information
🇨🇳 中文文档镜像 AI 翻译 2026-06-02
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

Zabbix MCP Server 是一个基于 Python 开发的 Model Context Protocol (MCP) 服务端,旨在为开发者提供一种高度可编程的方式来访问 Zabbix 监控数据及管理功能。通过暴露现代化的 API,该服务能够实现对 Zabbix 资源(如 hosts、templates、triggers、items、problems、events、users、proxies 及维护周期等)的查询、自动化操作与深度集成,支持读写多种模式,是连接 AI 模型与 Zabbix 监控生态的理想桥梁。

⚡ 功能介绍

本项目提供强大的核心功能与高级特性。核心功能涵盖了对 Zabbix 资源(如主机、模板、触发器、事件、告警等)的灵活过滤查询,并支持获取历史趋势数据、监控触发器状态及管理维护周期。高级特性方面,系统内置了 API 安全防护与速率限制(Rate limiting),支持 Read-only 只读模式以确保监控安全,并提供 Bearer token 认证、SSL/TLS 支持以及多种传输协议(STDIO、SSE、HTTP)。此外,还可选配 Sentry 错误追踪与工具搜索转换功能,以应对大规模工具集场景。

📋 环境依赖

在部署前,请确保您的环境满足以下要求:系统需安装 Python 3.11 至 3.14 版本;必须能够访问 Zabbix Server(版本需为 5.4 及以上);并且您需要准备好有效的 Zabbix API token 或具备相应权限的用户凭据。建议使用 uv 工具进行开发依赖的管理与同步。

🛠 安装步骤(Docker/pip/源码)

您可以根据使用场景选择不同的安装方式:若需快速部署,推荐直接通过 PyPI 进行安装;若需进行二次开发,请先从 GitHub 克隆仓库,并使用 `uv sync --group dev` 命令安装开发依赖;此外,为了方便在 Open WebUI 等环境中快速集成,我们也提供了预构建的 Docker 镜像 `ghcr.io/mhajder/zabbix-mcpo:latest`,实现开箱即用。

🚀 使用教程

对于希望在 Open WebUI 中集成 Zabbix 能力的用户,推荐使用 Docker 方式运行。您可以通过 `docker pull` 获取官方镜像,并通过设置环境变量(如 `DISABLED_TAGS`)来灵活控制需要禁用的功能模块,从而实现精细化的功能裁剪与资源控制。

⚙️ 配置说明(含 MCP / env)

项目通过环境变量进行配置管理。您需要创建 `.env` 文件或在运行前通过 `export` 命令设置关键参数,包括 `ZABBIX_URL`(指向 Zabbix API 的 JSON-RPC 地址)和 `ZABBIX_TOKEN`(您的 Zabbix API 凭据)。对于 HTTP 服务,可以通过 `MCP_HTTP_HOST` 配置绑定地址,确保服务在指定的网络环境下安全运行。

🔌 API 说明

本项目主要通过 Zabbix API 进行交互。对于 Zabbix 5.4+ 版本,推荐使用 `ZABBIX_TOKEN` 进行身份验证。API 接口设计遵循标准协议,并提供如 `api_version` 等基础信息查询接口,方便开发者实时获取 Zabbix API 的版本状态,确保集成过程中的兼容性。

🎯 aiskill88 AI 点评 A 级 2026-05-28

轻量级MCP服务器,易于集成

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
zabbix-mcp 中文教程zabbix-mcp 安装报错怎么办zabbix-mcp MCP 配置zabbix-mcp 与同类工具对比zabbix-mcp 最佳实践zabbix-mcp 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

zabbix-mcp 是一款Python开发的AI辅助工具。开源MCP工具:Zabbix MCP Server - a lightweight Python MCP server that exposes the Zabbix JSON。⭐7 · Python 主要应用场景包括:监控系统集成。
💡 AI Skill Hub 点评

AI Skill Hub 点评:Zabbix MCP 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ MIT 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 Zabbix MCP
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 zabbix-mcp
原始描述 开源MCP工具:Zabbix MCP Server - a lightweight Python MCP server that exposes the Zabbix JSON。⭐7 · Python
Topics mcpzabbixmonitoringpython
GitHub https://github.com/mhajder/zabbix-mcp
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/mhajder/zabbix-mcp

收录时间:2026-05-28 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。