SuperAPIAI Directory

zabbix-mcp-server

github.com · AI developer platforms

Zabbix MCP Server is a server that exposes the complete Zabbix API as MCP tools, enabling MCP-compatible AI assistants such as ChatGPT, Claude, VS Code Copilot, and JetBrains AI to directly query hosts, check problems, manage templates, acknowledge events, and more. It provides 241 tools covering all 68 Zabbix API groups, plus 14 extension tools (such as host status summary, graph rendering, anomaly detection, capacity forecasting, PDF report generation, etc.). The service runs as a standalone HTTP service and supports multiple servers, multi-token authentication, OAuth 2.1, tool filtering, read-only mode, rate limiting, health checks, and usage statistics, and provides an admin portal and systemd/Docker deployment options.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Zabbix MCP Server is a standalone HTTP service based on the Model Context Protocol (MCP), used to expose the complete API of the Zabbix monitoring system to AI assistants. MCP is an open standard that allows clients such as ChatGPT, Claude, VS Code Copilot, JetBrains AI, and Codex to call external tools. Through this service, AI assistants can query hosts, check problems, manage templates, acknowledge events, and perform other Zabbix operations.

Main capabilities:

  • Full API coverage: provides 241 tools covering all 68 Zabbix API groups, including hosts, problems, triggers, templates, users, dashboards, and more.
  • Extension tools (14): provide pre-joined views (such as host_status_get, hostgroup_overview_get, infrastructure_summary_get, item_history_summary_get, problem_active_get) that combine multiple raw API calls into a single round trip; they also include graph_render (PNG export), anomaly_detect (z-score analysis), capacity_forecast (linear regression), item_threshold_search (filter items by lastvalue threshold), report_generate (PDF report), action_prepare / action_confirm (two-step write approval), health_check (server diagnostics), and zabbix_raw_api_call (admin escape hatch for unwrapped methods).
  • Admin portal: port 9090 provides a full web UI for managing tokens, users, servers, templates, settings, and audit logs; supports dark/light mode; provides a click-through Client MCP Wizard (beta) that generates copy-paste-ready configuration snippets for 14 AI clients.
  • Multi-token authentication: named tokens support scopes, IP restrictions, server binding, and expiration times; can be managed via the admin portal, CLI (generate-token), or config.toml.
  • Multi-serverSupport: connect multiple Zabbix instances (production, staging, etc.), each instance using an independent token.
  • Transport: supports Streamable HTTP (recommended) and SSE (suitable for clients such as n8n that lack session management).
  • Tool filtering: restrict exposed tools by category (monitoring, alerts, users, extensions, etc.) or individual API prefix, to reduce the tool catalog and stay within LLM context limits.
  • Compact output mode: Get methods return only key fields by default, reducing response token consumption; the LLM can request extend to get full details.
  • LLM-friendly normalization: symbolic enum names, automatic default filling, preprocessing cleanup, timestamp conversion and local time rendering (<field>_local sibling fields and per-call timezone description).
  • Single configuration file: one TOML file, no scattered environment variables.
  • Read-only mode: per-server and per-token write protection to prevent accidental changes.
  • Honest tool hints: each tool describes whether it reads, only adds, overwrites, or deletes, and whether repetition is harmless (MCP tool annotations), so clients can ask before making the correct call.
  • No silent wrong answers: parameters that do not exist for a method or tool are rejected and indicate where the value should go; Zabbix flags set to false are not sent; log reads with limits return the latest lines.
  • Rate limiting: per-client call budget (default 300/minute), protecting Zabbix from flooding attacks.
  • Configuration without restart: changes saved in the portal or after editing config.toml and running systemctl reload are applied to the running server without dropping clients; the few settings that require a restart are explicitly listed.
  • Zabbix server health: background checks each configured Zabbix server (reachability, credentials, response time, API token expiration), displayed on the dashboard, /health (for tokens), and /health/ready (readiness probe).
  • Usage statistics: count requests, failures, duration, and trends by MCP token and tool, available in the portal and CSV.
  • Automatic reconnect: transparent re-authentication when a session expires; reads whose answers are lost are asked again, writes are never sent twice.
  • Production ready: systemd service, logrotate, Docker support, security hardening.
  • Generic fallback: zabbixThe _raw_api_call tool is used for any API method that is not explicitly defined.

Usage:

  • Installation: sudo ./deploy/install.sh is provided for production (creates a dedicated system user zabbix-mcp, Python virtual environment, installs dependencies, copies configuration, installs the systemd service, sets up logrotate); a root-free user-mode installation script is also provided, for macOS (LaunchAgent) and Linux (systemd --user).
  • Configuration: edit /etc/zabbix-mcp/config.toml and fill in the Zabbix URL and API token (api_token). Tokens are created in the Zabbix frontend under Users → API tokens, inherit the permissions of the owning user, and a dedicated least-privilege user is recommended.
  • Authentication: MCP clients must include Authorization: Bearer <token> in the request header; a multi-token system (v1.16+) and OAuth 2.1 (v1.28+, for clients that automatically discover authentication, such as ChatGPT custom apps and Claude Desktop remote) are supported.
  • Multiple servers: define multiple [zabbix.<name>] entries in config.toml; tools select one via the server parameter, defaulting to the first; the AI assistant can map them automatically based on natural language.
  • Upgrading: the update command in v1.15+ handles git sync, package reinstallation, systemd reload, verification and service restart, while preserving config.toml, admin portal users, audit logs, etc.
  • PDF reports: install weasyprint, jinja2 and system libraries using the --with-reporting flag when updating.

Use cases:

  • Let an AI assistant query and manage Zabbix monitoring data via natural language.
  • Multi-tenant or MSP environments, achieving isolation by binding tokens to servers.
  • Operations teams that need auditing and fine-grained permission control.
  • Quickly generate infrastructure summaries, anomaly detection and capacity forecasting reports.

Limitations:

  • Requires a Linux server (Python 3.10+) and network access to the Zabbix server.
  • Zabbix 5.0 and 5.2 have no API tokens and only support explicitly enabled legacy username/password login (legacy_auth), which carries security risks and is best-effort support, not in the test matrix; upgrading Zabbix is recommended.
  • When no token is configured, the server accepts unauthenticated connections, which is safe only when bound to 127.0.0.1; authentication must be configured when exposed to the network.
  • Some settings changes require a service restart.
  • A large number of tools may exceed the LLM context limit, so tool filtering is needed.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools