Zabbix MCP Server
developed and maintained by and community
Full Zabbix API access from Claude, Codex, VS Code, JetBrains, and other MCP clients.
Table of Contents
Overview: What is this? · Features
Install: Quick Start · Installation · Upgrade · First-time admin access
Configure: Reference · OAuth 2.1 · Reload without restart · Public URL · TLS / HTTPS · Token Budget
Use: Client Wizard · AI Clients · Prompts · Tools · Parameters · Round trip · Time zones · PDF Reports
Operate: Health check · Usage statistics · Installer CLI · Update notifications · Compatibility · Zabbix 8.0 MCP server · Development · Related Projects · License
What is this?
MCP (Model Context Protocol) is an open standard that lets AI assistants (ChatGPT, Claude, VS Code Copilot, JetBrains AI, Codex, and others) use external tools. This server exposes the entire Zabbix API as MCP tools, allowing any compatible AI assistant to query hosts, check problems, manage templates, acknowledge events, and perform any other Zabbix operation.
The server runs as a standalone HTTP service. AI clients connect to it over the network.
Features
- Complete API coverage - All 68 Zabbix API groups (241 tools): hosts, problems, triggers, templates, users, dashboards, and more
- Extension tools (14) - Pre-correlated views:
host_status_get,hostgroup_overview_get,infrastructure_summary_get,item_history_summary_get,problem_active_get(fold 3-5 raw API calls into one round-trip). Plusgraph_render(PNG export),anomaly_detect(z-score analysis),capacity_forecast(linear regression),item_threshold_search(filter items bylastvaluethresholds),report_generate(PDF reports),action_prepare/action_confirm(two-step write approval),health_check(server diagnostics) andzabbix_raw_api_call(admin escape hatch for un-wrapped methods). - Admin web portal - Full web UI on port 9090 for managing tokens, users, servers, templates, settings, and audit log; dark/light mode; point-and-click Client MCP Wizard (beta) that generates copy-paste-ready config snippets for 14 AI clients (Claude, Codex, Cursor, Cline, VS Code, JetBrains, Goose, Open WebUI, 5ire, Gemini CLI, n8n, ...)
- Multi-token authentication - Named tokens with scopes, IP restrictions, server binding, expiry; managed via admin portal, CLI (
generate-token), or config.toml - Multi-server support - Connect to multiple Zabbix instances (production, staging, ...) with separate tokens
- HTTP + SSE transports - Streamable HTTP (recommended) and SSE for clients like n8n that lack session management
- Tool filtering - Limit exposed tools by category (
monitoring,alerts,users,extensions, etc.) or individual API prefix to reduce the tool catalog size and stay under LLM context limits (see Token Budget below) - Compact output mode - Get methods return only key fields by default, reducing response token usage; LLM can request
extendfor full details - LLM-friendly normalizations - Symbolic enum names, auto-fill defaults, preprocessing cleanup, timestamp conversion with local-time rendering (
<field>_localsiblings and a per-call zone note, see Time zones) - Single config 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 - Every tool says whether it reads, only adds, overwrites or removes, and whether a repeat is harmless (MCP tool annotations), so a client can ask before the right calls
- No silent wrong answers - A parameter the method or the tool does not have is refused with the place the value belongs,
falsefor a Zabbix flag is not sent, and a log read with a limit returns its newest rows - Rate limiting - Per-client call budget (300/min default) to protect Zabbix from flooding
- Configuration without a restart - A change saved in the portal, or
systemctl reloadafter editingconfig.toml, is applied to the running server without dropping a client; the few settings that need a restart are named (see Changing the configuration without a restart) - Health of the Zabbix servers - A background check of every configured Zabbix server (reachability, credentials, response time, API token expiry), on the Dashboard, on
/healthfor a token and on/health/readyfor a readiness probe (see Health Check) - Usage statistics - Requests per MCP token and tool with failures, durations and a trend, in the portal and as CSV (see Usage statistics)
- Auto-reconnect - Transparent re-authentication on session expiry; a read whose answer was lost is asked again, a write is never sent twice
- Production-ready - systemd service, logrotate, Docker support, security hardening
- Generic fallback -
zabbix_raw_api_calltool for any API method not explicitly defined
Quick Start
git clone https://github.com/initMAX/zabbix-mcp-server.git
cd zabbix-mcp-server
sudo ./deploy/install.sh
sudo nano /etc/zabbix-mcp/config.toml # fill in your Zabbix URL + API token
sudo systemctl start zabbix-mcp-server
sudo systemctl enable --now zabbix-mcp-initmax # starts zabbix-mcp-server at boot, see Start below
Done. The server is running on http://127.0.0.1:8080/mcp.
Installation
Detailed guide: See
INSTALL.mdfor step-by-step instructions for both on-prem (systemd) and Docker deployments, including uninstall, security checklist, and TLS setup.
Requirements
- Linux server with Python 3.10+. The installer looks for one and, where the system has none, installs it when asked (
--install-python:dnfon RHEL and its relatives,apton Debian / Ubuntu,zypperon openSUSE / SLES). On Debian and Ubuntu it also installs thepythonX.Y-venvpackage the virtual environment needs. - Network access to your Zabbix server(s)
- A Zabbix API token (User settings > API tokens). Zabbix 5.0 and 5.2 have no API tokens; for those two releases only, an explicit legacy password login exists - see Legacy auth and read the warning there first
Install
git clone https://github.com/initMAX/zabbix-mcp-server.git
cd zabbix-mcp-server
sudo ./deploy/install.sh
The install script will:
- Create a dedicated system user
zabbix-mcp(no login shell) - Create a Python virtual environment in
/opt/zabbix-mcp/venv - Install the server and all dependencies
- Copy the example config to
/etc/zabbix-mcp/config.toml - Install a systemd service unit (
zabbix-mcp-server) - Set up logrotate for
/var/log/zabbix-mcp/*.log(daily, 30 days retention) - Verify file permissions and offer to fix any issues
User-mode install (no root, dev / laptop use)
For developers running the server locally on their own machine, an alternative installer is shipped that does not require sudo:
./deploy/install-user.sh # install
./deploy/install-user.sh update # git pull + pip + restart
./deploy/install-user.sh uninstall
It detects Python 3.10+, creates a virtualenv inside the repo, copies config.example.toml to config.toml (with log_file rewritten to a user-writable path), and registers a background service:
- macOS - LaunchAgent at
~/Library/LaunchAgents/com.initmax.zabbix-mcp-server.plist(auto-restart viaKeepAlive) - Linux - systemd
--userunit at~/.config/systemd/user/zabbix-mcp-server.servicewithloginctl enable-lingerso the service survives logout
This is intended for local development. For production servers use the regular sudo ./deploy/install.sh above.
Upgrade
cd zabbix-mcp-server
sudo ./deploy/install.sh update
That's the whole procedure, no manual steps afterwards. From v1.15+ the update command handles git sync, package reinstall, systemd reload, validation, and service restart in one shot.
What update does:
- Pulls latest code from the current branch (fast-forward; falls back to
fetch + reset --hard origin/<branch>if history diverged), then re-executes itself from the updated script. - Reinstalls the Python package into
/opt/zabbix-mcp/venv. - Refreshes the systemd unit and logrotate config (in case they changed between releases).
- Checks file permissions and offers to fix any ownership issues.
- Runs small migrations (legacy token, report templates) and validates
config.toml, aborts if the config is invalid. - Restarts the service via
systemctl restart zabbix-mcp-serverand performs an HTTP health check on the configured port.
What is preserved (never overwritten):
/etc/zabbix-mcp/config.toml, your Zabbix URL, API token, MCP tokens, scopes, TLS settings, etc.- Admin portal users (stored in
[admin.users.*]insideconfig.toml). - Audit log, report templates, and any custom data.
You'll see ✓ Config preserved at /etc/zabbix-mcp/config.toml (not overwritten) during the update. Check config.example.toml afterwards for any new options added in the release.
PDF reporting during update:
By default update keeps your current reporting state, if PDF reporting was installed, it stays; if it wasn't, it is not added. To change that:
# Enable PDF reporting on an existing install that didn't have it
sudo ./deploy/install.sh update --with-reporting
# Update without PDF reporting dependencies (smaller install)
sudo ./deploy/install.sh update --without-reporting
The --with-reporting flag pulls in weasyprint, jinja2, and system libs (cairo, pango, gdk-pixbuf). See PDF Reports for what you get.
Upgrading from very old versions (pre-v1.15)? If
updatefails, do a one-time manual sync first:git fetch origin && git reset --hard origin/main sudo ./deploy/install.sh updateTroubleshooting: if something goes wrong, inspect:
sudo ./deploy/install.sh test-config # validate config.toml sudo journalctl -u zabbix-mcp-server -n 50 --no-pager
Configure
Edit the config file with your Zabbix server details:
sudo nano /etc/zabbix-mcp/config.toml
Minimal configuration - just fill in your Zabbix URL and API token:
[server]
transport = "http"
host = "127.0.0.1"
port = 8080
[zabbix.production]
url = "https://zabbix.example.com"
api_token = "your-api-token"
read_only = true
verify_ssl = true
All available options with detailed descriptions are documented in config.example.toml.
Authentication, two tokens explained
The config file contains two different types of tokens that serve different purposes:
┌────────────┐ MCP token (Bearer) ┌──────────────────┐ api_token ┌───────────────┐
│ MCP Client ├──────────────────────► MCP Server ├─────────────────► Zabbix Server │
│ (AI / IDE) │ (optional) │ (zabbix-mcp) │ (required) │ │
└────────────┘ │ │ └───────────────┘
│ Admin Portal │
│ :9090 (optional) │
└──────────────────┘
api_token (in [zabbix.*]), authenticates the MCP server to your Zabbix instance. This is a Zabbix API token that you create in the Zabbix frontend. It is required. The only exception is the explicit legacy password login for Zabbix 5.0 and 5.2 - see Legacy auth.
How to create one:
- In Zabbix frontend: Users → API tokens → Create API token
- Select the user the token will belong to
- Optionally set an expiration date
- Copy the generated token, it is shown only once
The token inherits the permissions of the Zabbix user it belongs to:
| Use case | Recommended Zabbix role | read_only config |
|---|---|---|
| Read-only monitoring (problems, hosts, dashboards) | User role with read access to needed host groups | true |
| Full management (create hosts, templates, triggers) | Admin role with read-write access to target host groups | false |
| Complete API access (users, settings, global scripts) | Super admin role | false |
Use the principle of least privilege, create a dedicated Zabbix user for the MCP server with only the permissions it needs.
Legacy auth (Zabbix 5.0 and 5.2 only)
Read this before enabling it. Zabbix 5.0 and 5.2 are out of upstream support and have no API tokens - they were introduced in 5.4. The only way in is a username and password, which means this server holds a user password in its configuration instead of a revocable, scoped token. That is a security risk you are choosing to carry, and this project treats the whole path as best effort: it is not in our test matrix and we cannot verify it against a live 5.x. The right fix is upgrading Zabbix. If you cannot yet, this exists so you are not locked out in the meantime.
It has to be switched on explicitly. A username/password pair without the flag is a configuration error, not a fallback:
[zabbix.old-prod]
url = "https://zabbix5.example.com"
legacy_auth = true # the switch - Zabbix 5.0 / 5.2 only
username = "zabbix-mcp" # dedicated low-privilege account
password = "${ZABBIX_OLD_PASSWORD}" # keep it in the environment, not the file
read_only = true
Rules the server enforces:
legacy_auth = trueandapi_tokenon the same entry is refused - one credential per server, nothing inferred.username/passwordwithoutlegacy_auth = trueis refused.- Version lock: on connect the server reads
apiinfo.versionand refuses legacy login against anything 5.4 or newer. On a current Zabbix the flag does nothing except fail loudly, so it cannot be used to avoid tokens where they exist. - Every start logs a
WARNINGfor each legacy entry naming the Zabbix version, so the choice stays visible in the operational log. - The admin portal shows the same warning on the server card and in the Add / Edit form, and the password is never sent back to the browser.
The session from user.login expires; the server re-authenticates automatically when Zabbix answers that it has. Use a dedicated Zabbix user with only the permissions the tools need, and read_only = true unless writes are genuinely required.
Keeping the password out of the config file: username and password support ${ENV_VAR} expansion. Under Docker, put the variable in .env (the compose file injects it via env_file):
# .env
ZABBIX_OLD_PASSWORD=your-password-here
The zabbix-utils library this server uses refuses Zabbix below 6.0 by default; the version check is relaxed automatically only for entries marked legacy_auth. A token entry on Zabbix 5.4 needs skip_version_check = true set by the operator.
MCP Authentication (optional)
Protects the MCP server from unauthorized access. When configured, MCP clients must include a bearer token in every request: Authorization: Bearer <token>.
Recommended: Multi-token system (v1.16+), generate tokens via installer, admin portal, or manually:
# Generate a token via installer
sudo ./deploy/install.sh generate-token claude
# Or generate manually
python3 -c "import secrets,hashlib; t='zmcp_'+secrets.token_hex(32); print(f'Token: {t}\nHash: sha256:{hashlib.sha256(t.encode()).hexdigest()}')"
Then add to config.toml:
[tokens.claude]
name = "Claude Code"
token_hash = "sha256:<paste hash>"
scopes = ["*"] # or specific: ["monitoring", "alerts"]
read_only = true
Each token can have independent scopes, IP restrictions, server binding, expiry, and time zone (timezone = "Europe/London", see Time zones). See config.example.toml for all options.
Legacy: Single auth_token, still supported for backward compatibility:
[server]
auth_token = "your-secret-token-here"
Legacy
auth_tokenis automatically migrated to[tokens.legacy]on first v1.16 start.
When no tokens are configured, the server accepts unauthenticated connections. This is safe when bound to 127.0.0.1 (default) but must be configured when exposed to the network (0.0.0.0).
OAuth 2.1 (v1.28+), for clients that auto-discover authentication (ChatGPT custom apps, Claude Desktop remote, MCP Inspector). Enable with:
[server]
public_url = "https://mcp.example.com" # required when OAuth is on
[oauth]
enabled = true
Login uses the existing admin-portal users. Dynamic client registration (RFC 7591) is on by default; ChatGPT's "Advanced OAuth settings" auto-detects everything from the .well-known/... discovery documents. The legacy [tokens.X] bearer mode keeps working alongside OAuth - existing CLI scripts and workflow tools need no change.
Full setup, security checklist, and troubleshooting in docs/OAUTH.md.
Multiple Zabbix servers
You can connect to multiple Zabbix instances. Each tool has a server parameter to select which one to use (defaults to the first defined):
[zabbix.production]
url = "https://zabbix.example.com"
api_token = "prod-token"
read_only = true
[zabbix.staging]
url = "https://zabbix-staging.example.com"
api_token = "staging-token"
read_only = false
The first server (production) is used as the default. One exception: when the MCP token making the call is restricted through allowed_servers, the default for the call is one of its own servers (the global default if it is among them, else the first listed), so per-user or per-customer tokens, each pointing at its own [zabbix.<name>] entry, work without naming the server every time. Such a token also sees only its own servers: the server parameter in tools/list and the "Unknown Zabbix server" message name nothing else (since v1.41, MSP setups where the instance name is the customer name). To target a specific instance, just mention it naturally in your prompt:
Prompt examples
| Prompt | Target server | What happens |
|---|---|---|
| "Show me hosts with high CPU usage" | production (default) |
Queries the first defined server automatically |
| "Show me hosts in our staging Zabbix instance" | staging |
AI recognizes "staging" and routes to the matching server |
| "What are the top triggers in the last hour on production?" | production |
Explicit mention of "production" confirms the default |
| "Compare trigger counts between production and staging" | both | AI queries both servers and combines the results |
| "Create a maintenance window on staging for tonight" | staging |
Write operation routed to staging (requires read_only = false) |
| "Acknowledge all disaster problems on production" | production |
Write operation on production (blocked if read_only = true) |
| "Export the 'Linux by Zabbix agent' template from production" | production |
Read-only export, works even with read_only = true |
| "Import this template to staging" | staging |
Write operation routed to staging |
| "Migrate host 'web-01' from production to staging" | both | AI reads from production, creates on staging |
The AI assistant maps your natural language to the correct server parameter automatically, no need to use technical syntax like server = "staging" in your prompts.
High Availability
The MCP server itself is stateless, there is no shared state between instances. You can run multiple MCP server instances behind a reverse proxy (nginx, HAProxy, Caddy) using round-robin load balancing. Each instance connects to Zabbix independently.
Note: When your Zabbix runs in HA mode with multiple frontends, the API is available on each frontend. Currently the MCP server connects to a single
urlper[zabbix.<name>]entry. Multi-frontend failover (connecting to multiple URLs for the same Zabbix instance) is a planned feature.
Start
sudo systemctl start zabbix-mcp-server
sudo systemctl enable --now zabbix-mcp-initmax
Verify the server is running:
sudo systemctl status zabbix-mcp-server
zabbix-mcp-initmax is a second unit that the installer writes next to the server's own. It does nothing by itself: it starts zabbix-mcp-server at boot, and enabling or disabling it enables or disables both. start, stop and restart work under either name, and under the alias zabbix-mcp once the unit is enabled; the status and the journal are the server's, under zabbix-mcp-server. The second name is there because zabbix-mcp-server.service is also the unit name of the MCP server that Zabbix 8.0 packages, and that package's install and removal scripts enable, disable, start and stop whatever unit carries the name: see The MCP server shipped with Zabbix 8.0. On a host without that package systemctl enable zabbix-mcp-server works as before; install.sh update switches an installation that was enabled that way over to zabbix-mcp-initmax.
Health Check
| Method | Endpoint | Who may ask | Returns |
|---|---|---|---|
| Liveness | GET /health |
anybody | {"status": "ok"} and nothing else: the MCP server process answers. Always 200, whatever state Zabbix is in |
| Liveness with detail | GET /health with Authorization: Bearer <MCP token> |
a valid MCP token (401 for one that is not valid) | the same "status": "ok", plus the health of the Zabbix servers that token may use |
| Readiness | GET /health/ready |
whoever may call a tool: an MCP token where authentication is configured, anybody on a server without authentication | the same detail; 200 while at least one Zabbix server works, 503 when none does |
| MCP tool | health_check |
an MCP client | a fresh check of each Zabbix server the token may use, with the Zabbix version, the time zone and the tools that release does not have |
| Admin portal | Dashboard, "Zabbix server health" | a portal user | all servers, with the error messages |
| Log | Health: Zabbix server 'x' is unreachable - ... |
the operator | one line when a failure begins, one when it ends |
curl http://localhost:8080/health
# {"status":"ok"}
curl -H "Authorization: Bearer $MCP_TOKEN" http://localhost:8080/health/ready
{
"status": "ready",
"health": "degraded",
"version": "1.45",
"uptime_seconds": 86412,
"checked_at": "2026-11-30T21:52:55Z",
"check_interval": 60,
"zabbix_servers": {
"production": {
"status": "ok",
"checked_at": "2026-11-30T21:52:55Z",
"last_ok_at": "2026-11-30T21:52:55Z",
"response_ms": 21,
"zabbix_version": "7.0.30",
"api_token_expires_at": "2026-12-05T21:44:47Z",
"api_token_days_left": 4,
"warnings": ["the API token expires in 4 day(s)"]
},
"staging": {
"status": "unreachable",
"checked_at": "2026-11-30T21:52:55Z",
"last_ok_at": "2026-11-30T19:10:02Z",
"response_ms": 10002,
"reason": "timeout",
"reason_text": "no answer within the health check timeout",
"failing_since": "2026-11-30T19:11:02Z"
}
}
}
health:healthy(every Zabbix server answers and takes the configured credentials),degraded(some do not),unhealthy(none does)./health/readyanswers 503 forunhealthy.statusof a server:ok,auth_failed(the API answers, the credentials are refused),unreachable,error, andunknownuntil the first check.reasonsays what kind of failure it is:dns,refused,network,timeout,tls,http,not_zabbix,auth,token_expired,api, with one sentence inreason_text. The error message itself is not part of the answer: it can name internal hosts, and the caller may be a read-only token. It is on the Dashboard of the admin portal and in the log.api_token_expires_at: when the Zabbix API token configured for that server expires, or"never". Zabbix does not say which token a request came with, so the server looks it up among the tokens of the token's own user; where it cannot single it out (two tokens of one user used within the same second, password login, Zabbix before 5.4) the field is left out. From 14 days before the end awarningsentry says so, here and on the Dashboard.- The checks run in the background every
[server].health_check_intervalseconds (default 60,0= only when somebody asks) with a timeout of their own (health_check_timeout, default 10 s) and their own requests, so a Zabbix that hangs holds up neither a tool call nor the probe. - Nothing is restarted for an outage. A Zabbix server that is down or a token that expired is reported here, in the log (once per change of state) and in the portal; the MCP server keeps running and the tools of the servers that work keep working.
- No token value, password or URL credential is ever part of an answer.
- With an IP allowlist (
allowed_hosts),/healthand/health/readyare for the listed addresses like every other path. The one exception is the bare liveness answer for this machine itself (the container health check): from127.0.0.1outside the list,/healthsays{"status":"ok"}and looks at no token. - One answer of a WAF in front of Zabbix (HTTP 403, 429, 502 to 504) is asked again once before a check counts as failed. A server with password login (
legacy_auth) is asked through the session the server holds; after a login Zabbix refused, the next one is tried 15 minutes later, so a wrong password does not block the user in Zabbix.
Which probe for what. Docker's HEALTHCHECK, a livenessProbe and a load balancer: /health without a token. A Kubernetes readinessProbe or a monitoring check of "can this MCP server reach Zabbix": /health/ready with a read-only token of its own in httpHeaders. In Zabbix itself: an HTTP agent item on /health/ready with the Authorization header and JSONPath preprocessing ($.health, $.zabbix_servers.production.status, $.zabbix_servers.production.api_token_days_left).
Usage statistics
Every tool call is counted for the caller it came from and the tool it went to: how many requests, how many failed, how long they took. The admin portal shows it on the Usage page.
| On the page | |
|---|---|
| Filters | period (last hour to 90 days, or two dates), token, tool |
| Totals | requests, successful, failed with the share, average and longest time |
| Requests over time | one bar per hour (per day for a longer period), the failed part in red |
| By token | one row per MCP token, per OAuth client, and one for requests without authentication on a server that has none, with the time of the last request |
| By tool | one row per tool |
| Latest requests | the last 100 requests one by one since the server started: time, token, tool, result, time taken |
| Export CSV | the hourly counts of the selected period: one row per hour, token and tool |
- A request is a
tools/call. "Failed" means the tool answered with an error: an argument it does not have, a Zabbix error, no permission, the rate limit. A call to a tool name that does not exist is counted as(unknown tool). - What is stored: the config key and the name of the token (for OAuth the client id), the tool name, counts and milliseconds per hour. Never a token value, and never the arguments or the answer of a request.
- Where: one small JSON file per day in
usage/next to the server log (/var/log/zabbix-mcp/usage/; in Docker thelogsvolume), written every 30 seconds and when the server stops, so the numbers survive a restart. Files older thanusage_retention_days(default 30) are deleted. If the directory cannot be written, the statistics are kept in memory and the page says so. - Switches:
[server].usage_stats(defaulttrue) andusage_retention_days, both in Settings and both applied without a restart. - For monitoring:
GET /api/usage?period=24hon the portal port returns the same numbers as JSON for a logged-in session (period=1h,24h,7d,30d,90d, orfrom/toas dates;tokenandtoolfilter). The token's own page shows its last 30 days and links to its breakdown.
Logs
The application writes to the log file configured in config.toml (log_file). Startup errors before logging initialization go to the systemd journal.
# Live log stream (application log)
tail -f /var/log/zabbix-mcp/server.log
# Via journalctl (startup errors + fallback)
sudo journalctl -u zabbix-mcp-server -f
Admin Portal
Web-based administration portal for managing MCP tokens, users, report templates, and server settings. Runs on a separate port (default: 9090), the MCP port (8080) serves only the MCP protocol, no admin UI.
[admin]
enabled = true
port = 9090
The installer generates an admin password automatically. To reset: sudo ./deploy/install.sh set-admin-password
Features:
| Feature | Description |
|---|---|
| Dashboard | System overview with MCP health status (green/red dot), Zabbix server connectivity with async token validation, uptime, recent audit activity |
| MCP Tokens | Create, revoke, per-token scope control (group + individual tool level), per-token Zabbix server binding, IP restrictions, expiry, read-only flag; legacy token migration with tooltip |
| Tool Exposure | Drag & drop bubble UI for enabling/disabling tools globally and per-token; groups + individual tool prefixes; globally disabled tools shown as locked in token scopes |
| Zabbix Servers | Connection status with API + token validation (detects "API online but token invalid"), version display, test connection, add/edit/delete |
| Client MCP Wizard (beta) | Point-and-click generator: pick a Zabbix server -> pick a token (or skip auth) -> pick one of 14 AI clients -> get a copy-paste-ready config snippet + per-client install instructions. Handles URL composition, 0.0.0.0 host override, transport picker, token substitution in the snippet and curl test. Feedback wanted - please report issues at https://github.com/initMAX/zabbix-mcp-server/issues. |
| Users | Admin / operator / viewer roles; password complexity enforcement (10+ chars, uppercase, digit) |
| Report Templates | Built-in + custom templates, GrapesJS visual editor with Zabbix blocks, HTML code editor, variable picker, server-side Jinja2 preview |
| Settings | All config.toml sections editable, MCP Server, TLS & Security, Tool Exposure (allowlist + denylist), PDF Reports & Branding, Admin Portal |
| Audit Log | All admin actions logged (JSON lines), filterable by date/action/user, CSV export |
| Usage | Requests per MCP token and tool: totals, failures, durations, a trend over time, the latest requests, filters by period / token / tool, CSV export |
| Zabbix server health | Dashboard card fed by the background health check: status per server, kind of failure, response time, last check, last success, when the Zabbix API token expires |
| Configuration | A saved change is in effect at once, without a restart. The few settings that cannot change in a running process are marked "restart" in Settings and listed with the running and the saved value; the "Restart needed" badge appears only for those and restarts with a progress bar. A file edited by hand is offered with "Apply now" |
| Design | initMAX branded, dark/light/auto mode, Rubik font, instant CSS tooltips, responsive mobile layout |
All changes are written back to config.toml (preserving comments and formatting via tomlkit) and applied to the running server when they are saved; see Changing the configuration without a restart.
Client MCP Wizard (beta)
Beta - introduced in v1.20 with 14 supported clients and wide test coverage, but we are still collecting real-world feedback on the per-client snippets, the OAuth-vs-Bearer handling (especially Claude Desktop + ChatGPT), and edge cases around Docker / NAT / reverse-proxy host overrides. Please report issues at https://github.com/initMAX/zabbix-mcp-server/issues so we can graduate it out of beta.
A standalone page at /wizard (sidebar entry Client MCP Wizard) that replaces hand-editing JSON / TOML config files for 14 AI clients. Single-page progressive disclosure in four steps:
- Pick a Zabbix server - cards list all
[zabbix.*]entries fromconfig.toml. - Pick an MCP token - cards show every token whose
allowed_serversincludes the chosen server, plus per-token scope chips (groups + individual prefixes), IP restrictions, and expiry. When the MCP server is in no-auth mode, a Continue without token card generates a tokenless snippet; when auth is enabled, the + Create new token card chains into/tokens/create?return_to=/wizardand comes back with the new token pre-filled via a URL fragment (never sent to the server). - Pick your AI client - grid of 14 cards: Claude Desktop, Claude Code (CLI), OpenAI Codex, ChatGPT, VS Code + GitHub Copilot, Cursor, Cline, JetBrains AI, Goose, Open WebUI, 5ire, Gemini CLI, n8n, Generic MCP Client.
- Copy the config - host override picker when
[server].host = 0.0.0.0(Docker container IPs are de-emphasized with a manual-entry input on top), transport picker with a "detected" badge on the running transport, per-client install instructions on the left, syntax-highlighted snippet on the right with a copy-on-hover overlay icon, download-as-file button, and a matching curl quick-test block. Both code blocks substitute a pasted Bearer token live so the operator can verify before copying.
Every snippet and instruction set comes from a single-source-of-truth catalog (src/zabbix_mcp/admin/wizard_clients.py) cross-checked against each client's current official documentation (Claude Desktop via mcp-remote wrapper for Bearer tokens, Claude Code with the --transport / --header flag rename from 2025, ChatGPT Developer-mode Apps & Connectors path, Gemini CLI httpUrl vs url key split, Goose Streamable HTTP YAML schema, Open WebUI native MCP since v0.6.31, etc.).
Port separation: MCP endpoint (
/mcp,/health) runs exclusively on the MCP port (default 8080). Admin portal runs exclusively on the admin port (default 9090). No admin API is exposed on the MCP port. Firewall both ports independently.