原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Zabbix API MCP

作者:shigechika版本 0.14.0i★ –i在你的电脑上运行
注册名称io.github.shigechika/zapi-mcp

安装

概览

作者提供的说明(英文原文)

MCP server for the Zabbix API — daily brief, problems, hosts, items

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "zapi": {
      "command": "uvx",
      "args": [
        "zapi-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add zapi -- uvx zapi-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "zapi": {
      "command": "uvx",
      "args": [
        "zapi-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "zapi": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "zapi-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 shigechika 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32661 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32661 个服务器的 65% 更新
  • 基础检查结果等于或优于此分类中其他 32661 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Zabbix API MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.14.0)于20天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Claude Checkpoint MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Claude Checkpoint MCP

作者:daniel-munoz

MCP server that checkpoints Claude Code session context to survive crashes and token limits

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

zapi-mcp

English | 日本語

MCP (Model Context Protocol) server for the Zabbix API.

Built for network operations: a single daily_brief call summarizes active problems plus site-specific categories (DHCP pool usage, SNAT session usage, core-network problems, …), and individual tools query problems, hosts, and item values. Organization-specific tags live in a config file, not the code, so the server stays generic.

Version-adaptive auth: works against Zabbix 6.0 LTS (user + auth field) and forward-compatible with 6.4 / 7.0 (username + Authorization: Bearer).

Documentation: https://shigechika.github.io/zapi-mcp/

Features

ToolDescription
health_checkServer version, Zabbix connectivity/auth, detected API version, and configured daily_brief categories — call at session start or after a timeout
daily_briefMorning patrol: active problems (Warning+), hosts currently in maintenance, plus one section per configured category
get_problemsActive problems by severity and tag, newest-first with age; header shows the true total (showing N of TOTAL when capped); problems on disabled triggers, hosts or items are hidden as in the Zabbix frontend (include_disabled=True lists them); output includes eventid
get_hostsList hosts filtered by role/tag/group, with IP and tags
get_host_itemsCurrent item values for a host (server-side host filter)
acknowledge_problemAcknowledge problems and add a message (does not close them)
set_maintenanceOpen an idempotent Zabbix maintenance window, selecting hosts by location tag or by exact host name (exactly one of the two)
get_maintenance_windowsList maintenance windows (Active/Upcoming/Expired) — cross-check before treating another tool's alert as a new incident

Setup

# uv

uv pip install zapi-mcp

pip

pip install zapi-mcp

Or from source:

git clone https://github.com/shigechika/zapi-mcp.git

cd zapi-mcp

uv

uv sync

pip

pip install -e .

Configuration

Set the following environment variables:

VariableDescriptionDefault
ZABBIX_URLZabbix base URL (e.g. https://zabbix.example.com); /api_jsonrpc.php is appended if absent*required*
ZABBIX_API_TOKENZabbix API token (Zabbix 5.4+), used instead of ZABBIX_USER/ZABBIX_PASSWORD*one of the two*
ZABBIX_USERZabbix API user*one of the two*
ZABBIX_PASSWORDZabbix API password*one of the two*
ZABBIX_CATEGORIES_INIPath to a categories INI file for daily_brief (optional)—
ZABBIX_BRIEF_RECENT_HOURSdaily_brief "recent" window in hours; problems older than this are folded to a count24
ZABBIX_BRIEF_PROBLEM_LIMITMax active problems daily_brief fetches per call before counting the rest1000
ZABBIX_READ_ONLYtrue (or 1/yes/on) keeps acknowledge_problem and set_maintenance from being registered, so the model never sees them. Any other non-false value is also treated as read-only and reported by health_checkunset (write tools on)

The API user needs read permission for the host groups you query, plus acknowledge permission if you use acknowledge_problem, maintenance-write permission if you use set_maintenance, and maintenance-read permission (usually included by default) for get_maintenance_windows and the daily_brief "In Maintenance" section.

Authenticate with either ZABBIX_API_TOKEN or ZABBIX_USER + ZABBIX_PASSWORD. When a token is set, a leftover ZABBIX_USER is ignored; a token together with both ZABBIX_USER and ZABBIX_PASSWORD is a configuration error. A token needs no login and keeps a password out of the client configuration; it can be given an expiry and revoked on its own on Zabbix's API tokens page.

Active problems in daily_brief

Problems are grouped by severity and listed newest-first, each annotated with its age (e.g. 3h ago). Problems older than the recent window (ZABBIX_BRIEF_RECENT_HOURS, default 24h) are folded to a single … and N older (stale; oldest …) line — so a backlog of alerts that Zabbix keeps active because their recovery is never auto-confirmed (ICMP ping down, RDP down, …) doesn't bury what just happened. Section headers carry the true total and show showing N of TOTAL when the fetch is capped, never a silent truncation.

Maintenance windows in daily_brief

Right after Active Problems, daily_brief lists hosts covered by a maintenance window that's active now, plus any window starting later today — so a planned outage isn't mistaken for a new incident by whatever else is watching those hosts. The ## In Maintenance section is omitted entirely when there's nothing to show (no news is no maintenance). Windows starting tomorrow or later, and expired windows, aren't included here; call get_maintenance_windows (optionally with include_expired=True) for the full picture.

Categories for daily_brief (optional)

daily_brief always lists active problems. To add site-specific sections — DHCP pool exhaustion, SNAT session usage, core-network problems — point ZABBIX_CATEGORIES_INI at an INI file. Each [section] is one category:

[dhcp]

name = DHCP Pool Usage

Zabbix host tag identifying the group

tag = dhcp-pool-usage

report current values for this exact item key

item_key = usage

flag values >= this

threshold = 80

[snat] name = SNAT Session Pool tag = snat-pool-usage

substring match (catches pool.node0.usage etc.)

item_key_search = .usage threshold = 80

[core] name = Core Network tag = role

the tag must equal this value

tag_value = main

no item key -> report active problems instead

  • tag (required): host tag identifying the category. With tag_value, the tag must equal it (Equal); without, any host carrying the tag matches (Exists).
  • item_key / item_key_search: when either is set, the section reports current item values sorted high-to-low. item_key matches the key exactly; use item_key_search for keys that embed an id (e.g. .usage catches pool.node0.usage). When neither is set, it reports active problems for the tag.
  • threshold: optional; values at or above it are flagged.

See categories.ini.example. When the variable is unset or the file is missing, daily_brief reports active problems only.

Write operations

Two tools change state. Everything else only reads.

ToolZabbix API call
acknowledge_problemevent.acknowledge
set_maintenancemaintenance.create

acknowledge_problem needs acknowledge permission on the API user; set_maintenance needs maintenance-write permission. Leave either off and the server stays read-only for that one tool: the call fails against the Zabbix API and every other tool keeps working, so an API user can be handed to an AI assistant for investigation without granting it any ability to change Zabbix configuration. Grant the permission only when acknowledging alerts or opening maintenance windows through the assistant is part of the job.

To keep the write tools away from the model altogether, set ZABBIX_READ_ONLY=true: the two tools are not registered, so a client never sees them, and they refuse to run if called anyway. This lets one Zabbix user serve both a read-only and a write-enabled MCP client. Every tool also carries MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint), so a client can tell read and write tools apart.

Usage

Claude Code (plugin)

This repository doubles as a single-plugin marketplace, so Claude Code can install the server for you:

/plugin marketplace add shigechika/zapi-mcp

/plugin install zapi-mcp@zapi-mcp

The plugin launches uvx zapi-mcp and reads the same environment variables described in Configuration; export them before starting Claude Code. ZABBIX_CATEGORIES_INI may stay unset.

uvx must be on the PATH of the process that runs Claude Code — a login shell usually has it, but a GUI-launched app may not; install uv system-wide if the plugin fails to start.

Claude Code (manual)

Add to .mcp.json:

{

"mcpServers": { "zapi-mcp": { "type": "stdio", "command": "zapi-mcp", "env": { "ZABBIX_URL": "https://zabbix.example.com", "ZABBIX_USER": "api-user", "ZABBIX_PASSWORD": "", "ZABBIX_CATEGORIES_INI": "/path/to/categories.ini" } } } }

Claude Desktop

Add to claude_desktop_config.json:

{

"mcpServers": { "zapi-mcp": { "command": "zapi-mcp", "env": { "ZABBIX_URL": "https://zabbix.example.com", "ZABBIX_USER": "api-user", "ZABBIX_PASSWORD": "" } } } }

Codex
codex mcp add zapi-mcp \

--env ZABBIX_URL=https://zabbix.example.com \ --env ZABBIX_USER=api-user \ --env ZABBIX_PASSWORD=your-password \ --env ZABBIX_CATEGORIES_INI=/path/to/categories.ini \ -- zapi-mcp

Any other MCP client that launches stdio servers works the same way: give it zapi-mcp as the command and set the ZABBIX_* variables in its environment.

Direct Execution
export ZABBIX_URL=https://zabbix.example.com

export ZABBIX_USER=api-user export ZABBIX_PASSWORD=your-password

or, instead of the user and password: export ZABBIX_API_TOKEN=your-token

zapi-mcp

CLI Options
zapi-mcp --version   # Print version and exit

zapi-mcp --check # Verify environment variables and authentication, then exit zapi-mcp --brief # Print the daily_brief to stdout and exit (handy for cron) zapi-mcp # Start MCP server (STDIO, default)

--check exit codes: 0 success, 1 config error, 2 auth/connection error.

--brief exit codes: 0 success, 1 a section failed (auth, the active-problems fetch, or category loading — see the embedded Error: line in the output).

Development

git clone https://github.com/shigechika/zapi-mcp.git

cd zapi-mcp

uv

uv sync --dev uv run pytest -v uv run ruff check .

pip

python3 -m venv .venv .venv/bin/pip install -e . && .venv/bin/pip install pytest pytest-cov respx ruff .venv/bin/pytest -v .venv/bin/ruff check .

Live smoke test

pytest checks logic against fixtures; it cannot tell you that a tool has stopped returning real data. scripts/smoke_test.py runs every registered tool against the configured Zabbix and fails on empty, malformed or error answers:

# needs the same ZABBIX_* environment variables as the server

uv run python scripts/smoke_test.py uv run python scripts/smoke_test.py --only get_problems --traceback

  • Read-only. acknowledge_problem and set_maintenance are skipped by name — an acknowledgement is visible to every operator and cannot be quietly undone, and set_maintenance opens a real maintenance window that suppresses alerts — and a test enforces that. The report prints tool names and statuses only, never payloads; server-authored error text is redacted too, since Zabbix quotes the host it was asked about. --traceback still shows the full text on the operator's own terminal.
  • Arguments that would identify real hosts, groups or tag values are discovered at run time, never written into scripts/smoke_probes.py. Two tests enforce that: one refuses those parameters as literals, the other bans anything address-shaped (mail address, URL, hostname, IPv4, IPv6) anywhere in the file.
  • An empty answer is a real observation here — a monitoring system with nothing wrong is the goal — so probes assert the envelope the tool must produce rather than a row count.
  • CI enforces the cheap half: a tool registered without a probe spec fails the build (tests/test_smoke_probes.py), so adding a

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx