zbbx-mcp
Provides tools for sending Slack messages and reports, enabling alerts and summaries to be delivered to Slack.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
zbbx-mcp
Zabbix MCP server for Claude Code, GitHub Copilot, Codex CLI, n8n, and any MCP-compatible client. Talk to your Zabbix monitoring in natural language.
Quick start
1. Get a Zabbix API token
In Zabbix UI: User settings → API tokens → Create API token.
The token inherits the permissions of the user that owns it. Three things gate what the server can read — and the first two fail quietly, returning empty results rather than errors:
Requirement | Where | Symptom if missing |
Read on the host groups | User group → Host permissions | Hosts simply absent — "not found", empty lists |
API methods not revoked | User role → API methods (5.2+) | The specific tool errors; others keep working |
Macro type is not Secret | The macro itself | Value shows as |
Notably, host cost / bandwidth figures come from user macros
({$COST_MONTH}, {$BW_LIMIT}) and therefore need usermacro.get in
addition to host read access. A token that lists hosts fine can still return
no cost, because those are two different permissions.
If usermacro.get is unavailable, get_host falls back to the
Cost_macros_present item, which needs only host-group read — so a restricted
token still gets the figure. It is labelled _(via item …)_ when it comes from
there, because the item is a polled snapshot and can lag a macro edit.
A Super admin token bypasses host-group permissions entirely, which is why
something can work for one colleague and not another. If a field is missing,
get_host now says whether the call failed or the value is genuinely
not set — check the "Not shown" section before assuming the data is absent.
2. Install in Claude Code
Option A — via CLI (recommended):
Prerequisite: uv is required. Install with:
curl -LsSf https://astral.sh/uv/install.sh | sh
claude mcp add zabbix \
-e ZABBIX_URL=https://your-zabbix.example.com \
-e ZABBIX_TOKEN=your_api_token \
-- uvx --from "git+https://github.com/velesnitski/zbbx-mcp" zbbx-mcpOption B — manually edit settings:
Edit ~/.claude/settings.json (global) or .claude/settings.json in your project root (per-project):
{
"mcpServers": {
"zabbix": {
"command": "uvx",
"args": ["--from", "git+https://github.com/velesnitski/zbbx-mcp", "zbbx-mcp"],
"env": {
"ZABBIX_URL": "https://your-zabbix.example.com",
"ZABBIX_TOKEN": "your_api_token"
}
}
}
}Troubleshooting: MCP server not found
If Claude Code can't find
uvxat startup (e.g.,/mcpdoesn't show the server), use the full path instead:"command": "/full/path/to/uvx"Find the full path with
which uvx(typically~/.local/bin/uvxor/opt/homebrew/bin/uvx).
3. Restart Claude Code
claudeYou should see zabbix listed when Claude starts. Try asking: "Show current problems with severity >= Warning"
Related MCP server: Zabbix MCP Server
What it does
174 tools:
Category | Tools |
Hosts |
|
Problems |
|
Host Groups |
|
Triggers |
|
Templates |
|
Items & Metrics |
|
Events & Trends |
|
Dashboards |
|
Maintenance |
|
Discovery |
|
Configuration |
|
Scripts |
|
Services & SLA |
|
Macros |
|
Inventory |
|
Rollback |
|
Alerts |
|
Users |
|
Proxies |
|
Maps |
|
Web Scenarios |
|
Domains |
|
Media & Actions |
|
Slack |
|
Costs |
|
Traffic |
|
Trends & Analysis |
|
Geo Monitoring |
|
Availability & Health |
|
Executive |
|
Reports |
|
Analysis |
|
Outage Correlation |
|
Disruption Detection |
|
Risk & Impact |
|
External IP History |
|
Self-introspection |
|
Cross-system checks |
|
Composite diagnostics |
|
Alert triage |
|
Product catalogue |
|
Report filtering
The generate_full_report tool supports filtering by country and product:
generate_full_report(country="de") # single country
generate_full_report(product="Premium") # single product
generate_full_report(country="nl", product="Free") # combined filtersTraffic tools also support country filtering:
detect_traffic_drops(country="de")
detect_traffic_anomalies(country="nl")
get_traffic_report(country="us")Choosing a tier
The full 174-tool catalog costs ~30k tokens at every session start (the
LLM has to load every tool's schema). For most sessions you only use a
subset. ZABBIX_TIER ships preset bundles that cut this:
Tier | Tools | Handshake (~tokens) | Use when |
| 27 | ~4k | Read-only Zabbix querying — search, get, problems, dashboards |
| 61 | ~9k | Incident response — |
| 49 | ~7k | Cost / billing — |
| 65 | ~10k | Executive reporting — |
| 174 | ~25k | Default — everything (no restriction) |
ZABBIX_TIER=ops saves ~18k tokens per session compared to the default.
Switch tiers by changing the env var; the server picks it up on restart.
DISABLED_TOOLS still applies on top — you can pin a tier and remove
specific tools you don't want.
Environment variables
Variable | Required | Description |
| Yes | Zabbix server URL (e.g., |
| Yes | Zabbix API token |
| No | Set to |
| No | Datacenter ranges as |
| No | The product's own catalogue (audiences → sections → entries → member servers by IP) as inline JSON or a path to a JSON file, written by a private exporter. Read on every call, never cached; unusable input means no map rather than a partial one. Unset = |
| No | Deny-list (file path or inline |
| No | Comma-separated tool names to disable |
| No | Preset bundle: |
| No | Set to |
| No | JSON file path or inline JSON mapping host groups to products |
| No | Provider → CIDR map for |
| No | Template → product-group allow-list ( |
| No | Slack webhook URL for |
| No | Sentry DSN for error tracking — just set the env var, SDK is included |
| No | Per-host Zabbix macro for bandwidth limit in Mbps (default: 800). Set on hosts for accurate BW Util % |
| No | Trim tool descriptions to save tokens (default: |
| No | Strip markdown from tool responses for ~40% token savings. Set |
| No | Max chars per tool response (default: |
| No | Seconds to cache configuration reads such as the fleet's network-interface items (default: |
| No | Trend requests in flight at once, 1–16 (default: |
| No | Zabbix item key for primary service health check (empty = skip service monitoring) |
| No | Zabbix item key for secondary service health check |
| No | Zabbix item key for tertiary service health check |
| No | Zabbix item key for connection count metric (used by |
| No | Zabbix item key for ICMP ping loss % (enables |
| No | Zabbix item key for ICMP round-trip time (enables |
| No | Zabbix item key for service-port bytes/sec (enables |
| No | JSON object mapping region label → item key (enables |
| No | Set to |
| No | Comma-separated product names to hide from all reports |
| No | Billing-to-Zabbix name translations for cost import (format: |
| No | Additional case-insensitive substring to match the "IP server" column header in localised XLSX workbooks (used by |
| No | Error log path (default: |
| No | Analytics log path (default: |
Multi-instance setup
Connect multiple Zabbix servers to a single MCP server. Each tool gets an optional instance parameter — the LLM picks the right instance from context.
Configuration
Set ZABBIX_INSTANCES to a comma-separated list of instance names, then provide ZABBIX_{NAME}_URL and ZABBIX_{NAME}_TOKEN for each:
ZABBIX_INSTANCES=prod,staging
ZABBIX_PROD_URL=https://zabbix.prod.company.com
ZABBIX_PROD_TOKEN=prod_token
ZABBIX_STAGING_URL=https://zabbix.staging.company.com
ZABBIX_STAGING_TOKEN=staging_tokenInstance names are arbitrary — use whatever makes sense: prod,staging, dc1,dc2, etc. The name is uppercased to form the env var prefix (staging → ZABBIX_STAGING_URL).
How it works
No
ZABBIX_INSTANCES— single-instance mode, fully backward compatible. UsesZABBIX_URL/ZABBIX_TOKENas before.First instance falls back to unprefixed
ZABBIX_URL/ZABBIX_TOKENif its prefixed vars are not set.Explicit
instanceparameter — every tool accepts an optionalinstanceparam to target a specific instance.Default — if no instance is specified, the first configured instance is used.
Global settings —
ZABBIX_READ_ONLYandDISABLED_TOOLSapply to all instances.
Claude Code example
claude mcp add zabbix \
-e ZABBIX_INSTANCES=prod,staging \
-e ZABBIX_PROD_URL=https://zabbix.prod.company.com \
-e ZABBIX_PROD_TOKEN=prod_token \
-e ZABBIX_STAGING_URL=https://zabbix.staging.company.com \
-e ZABBIX_STAGING_TOKEN=staging_token \
-- uvx --from "git+https://github.com/velesnitski/zbbx-mcp" zbbx-mcpThen just ask:
You: show problems on the staging instanceVerify the server works
Check that uv is installed (required for the uvx command):
uv --versionIf not installed, get it with:
curl -LsSf https://astral.sh/uv/install.sh | shTest the server starts and responds by sending a JSON-RPC initialize request via stdio:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"},"protocolVersion":"2024-11-05"}}' \
| ZABBIX_URL="https://your-zabbix.example.com" \
ZABBIX_TOKEN="your_api_token" \
uvx --from git+https://github.com/velesnitski/zbbx-mcp zbbx-mcpA successful response looks like:
{"jsonrpc":"2.0","id":1,"result":{"serverInfo":{"name":"zabbix v1.15.1"},"capabilities":{"tools":{}},...}}If you see command not found: uvx, install uv first (see above).
Setup for Windows
1. Install uv (Python package runner):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Restart your terminal after installation.
2. Get a Zabbix API token:
In Zabbix UI → User settings → API tokens → Create API token → copy the token.
3. Add the MCP server to Claude Code:
claude mcp add zabbix `
-e ZABBIX_URL=https://your-zabbix.example.com `
-e ZABBIX_TOKEN=your_api_token `
-- uvx --from git+https://github.com/velesnitski/zbbx-mcp zbbx-mcpNote: If Claude Code can't find
uvx, use the full path. Find it withwhere uvx(typically%USERPROFILE%\.local\bin\uvx.exe) and set"command"to that path in your settings.
4. Restart Claude Code and try: "Show current Zabbix problems"
Setup for Codex CLI
Codex CLI supports MCP servers. Add zbbx-mcp to your configuration:
Option A — edit ~/.codex/config.toml:
[mcp_servers.zabbix]
command = "uvx"
args = ["--from", "git+https://github.com/velesnitski/zbbx-mcp", "zbbx-mcp"]
[mcp_servers.zabbix.env]
ZABBIX_URL = "https://your-zabbix.example.com"
ZABBIX_TOKEN = "your_api_token"Option B — via CLI:
codex mcp add zabbix \
--env ZABBIX_URL=https://your-zabbix.example.com \
--env ZABBIX_TOKEN=your_api_token \
-- uvx --from "git+https://github.com/velesnitski/zbbx-mcp" zbbx-mcpThe Zabbix tools will be available automatically. Multi-instance setup works the same way — add ZABBIX_INSTANCES and per-instance env vars as described above.
Setup for GitHub Copilot (VS Code)
GitHub Copilot supports MCP servers in VS Code agent mode. Add zbbx-mcp to your workspace or user settings:
Option A — .vscode/mcp.json (per-project, recommended):
Create .vscode/mcp.json in your project root:
{
"servers": {
"zabbix": {
"command": "uvx",
"args": ["--from", "git+https://github.com/velesnitski/zbbx-mcp", "zbbx-mcp"],
"env": {
"ZABBIX_URL": "https://your-zabbix.example.com",
"ZABBIX_TOKEN": "your_api_token"
}
}
}
}Option B — VS Code user settings (global):
Open Settings (Cmd+, / Ctrl+,) → search mcp → Edit in settings.json:
{
"mcp": {
"servers": {
"zabbix": {
"command": "uvx",
"args": ["--from", "git+https://github.com/velesnitski/zbbx-mcp", "zbbx-mcp"],
"env": {
"ZABBIX_URL": "https://your-zabbix.example.com",
"ZABBIX_TOKEN": "your_api_token"
}
}
}
}
}Then in Copilot Chat, switch to Agent mode (@workspace → Agent) and ask: "Show current Zabbix problems". Copilot will discover and use the Zabbix tools automatically.
Tip: If
uvxis not found, use the full path (e.g.,"/Users/you/.local/bin/uvx"or"C:\\Users\\you\\.local\\bin\\uvx.exe").
Setup for GPT-CLI
GPT-CLI supports MCP servers. Add zbbx-mcp to your configuration:
Edit ~/.gptcli/config.yaml:
mcp_servers:
zabbix:
command: uvx
args:
- --from
- git+https://github.com/velesnitski/zbbx-mcp
- zbbx-mcp
env:
ZABBIX_URL: https://your-zabbix.example.com
ZABBIX_TOKEN: your_api_tokenAlternative installation
From local clone
git clone https://github.com/velesnitski/zbbx-mcp.git
cd zbbx-mcp
pip install -e .Then use in settings:
{
"mcpServers": {
"zabbix": {
"command": "zbbx-mcp",
"env": {
"ZABBIX_URL": "https://your-zabbix.example.com",
"ZABBIX_TOKEN": "your_api_token"
}
}
}
}Run directly with Python
git clone https://github.com/velesnitski/zbbx-mcp.git
cd zbbx-mcp
pip install -e .
zbbx-mcpHeadless mode (scripts and schedulers)
The same command runs any tool once from the command line, for cron,
launchd, CI jobs or another bot. It builds the server in-process and calls
the tool exactly as an MCP client would: the same output, the same
ZABBIX_READ_ONLY / DISABLED_TOOLS / ZABBIX_TIER gating (a write tool
under read-only does not exist here either), the same analytics, marked
"via": "cli".
zbbx-mcp tools # what is available (--json: full schemas)
zbbx-mcp run get_problems severity_min=4 max_results=20
zbbx-mcp run detect_traffic_drops country=AQ --json
echo '{"hosts": "srv-a,srv-b", "period": "7d"}' | zbbx-mcp run get_trends_batch --args -Arguments are
key=valuepairs typed by the tool's input schema (numbers, booleans, JSON for lists), or a JSON object via--args(-reads stdin); pairs override the object. A key the tool does not take is an error that lists the keys it does take.--jsonprints one object:tool,args,ok,text, andfiles— the paths a report tool wrote during the call, taken from the file-output gate rather than parsed from the text.Exit codes:
0success,1the tool reported an error or ran past--timeout(default 300 s),2a usage or configuration error. Logs go to stderr at WARNING; stdout holds only the result.Output is cut at
ZABBIX_RESPONSE_BUDGETas for a client; set it to0for a job that wants everything. For unattended read-only jobs, setZABBIX_READ_ONLY=trueso the write tools are not there to call.
Using with n8n, Langchain, and other HTTP clients
By default the server uses stdio transport (for Claude Code). For integration with n8n, Langchain, OpenAI Agents SDK, or any HTTP-based MCP client, start the server in SSE or streamable-http mode:
Start the server with SSE transport
ZABBIX_URL="https://your-zabbix.example.com" \
ZABBIX_TOKEN="your_api_token" \
uvx --from git+https://github.com/velesnitski/zbbx-mcp zbbx-mcp --transport sse --port 8000The server will be available at http://localhost:8000/sse.
Start with streamable HTTP transport
ZABBIX_URL="https://your-zabbix.example.com" \
ZABBIX_TOKEN="your_api_token" \
uvx --from git+https://github.com/velesnitski/zbbx-mcp zbbx-mcp --transport streamable-http --port 8000The server will be available at http://localhost:8000/mcp.
CLI options
Flag | Default | Description |
| — | Print the version and exit (e.g. |
|
| Transport protocol: |
|
| Host to bind to |
|
| Port to bind to |
n8n setup
Start the server in SSE mode (see above)
In n8n, add an MCP Client node
Set the MCP server URL to
http://localhost:8000/sseThe Zabbix tools will be available as actions in your n8n workflows
Docker
docker compose up -dOr build and run directly:
docker build -t zbbx-mcp .
docker run -p 8000:8000 \
-e ZABBIX_URL=https://your-zabbix.example.com \
-e ZABBIX_TOKEN=your_api_token \
zbbx-mcpOverride transport and port:
docker run -d -p 9000:9000 \
-e ZABBIX_URL="..." -e ZABBIX_TOKEN="..." \
zbbx-mcp --transport streamable-http --port 9000Product mapping
The inventory tools (get_server_map, get_product_summary, etc.) can classify hosts by business product. Without configuration, they use Zabbix host group names as-is.
To define custom mapping, set ZABBIX_PRODUCT_MAP to a JSON file path or inline JSON:
{
"free_servers": ["MyProduct", "Free"],
"premium_servers": ["MyProduct", "Premium"],
"templates": ["skip"]
}See product_map.example.json for a reference.
Development
git clone https://github.com/velesnitski/zbbx-mcp.git
cd zbbx-mcp
pip install -e ".[test]"
pytestSecurity
Tokens are passed via environment variables — never hardcoded
In stdio mode, the server has no network exposure (local pipes only)
In SSE/HTTP mode, the server listens on a network port — bind to
127.0.0.1if you don't need external access, or use a reverse endpoint with authentication for productionHTTPS enforced by default (non-HTTPS URLs are blocked unless
ZABBIX_ALLOW_HTTP=1)Consider using a token with minimal required permissions (read-only if you don't need write tools)
Error messages truncated to 200 chars to prevent leaking internal API details
Optional read-only mode via
ZABBIX_READ_ONLY=trueIndividual tools can be disabled via
DISABLED_TOOLS
Logging and privacy
All logs are stored locally on your machine at ~/.zbbx-mcp/:
zbbx-mcp.log— errors and warnings (JSON)analytics.log— tool call names, timing, and parameters (JSON)
No data is sent externally unless you explicitly set SENTRY_DSN. Logs never contain tokens, passwords, or sensitive content — only tool names, safe parameters, and error messages (truncated to 200 chars).
Read-only mode
To disable all write operations (create, update, delete hosts/items/triggers, maintenance, scripts, macros):
ZABBIX_READ_ONLY=trueDisable specific tools
Block individual tools by name (comma-separated, case-insensitive):
DISABLED_TOOLS=delete_host,execute_script,import_configurationThis removes the specified tools from the MCP server entirely — clients won't see them.
Requirements
Python 3.10+
Check your version:
python3 --versionIf not installed or below 3.10:
macOS (via Homebrew):
brew install python@3.12Ubuntu / Debian:
sudo apt update && sudo apt install python3 python3-pipWindows: download from python.org or use
winget install Python.Python.3.12
uv (recommended)
uv is a fast Python package manager. The uvx command (included with uv) is used to run the MCP server without a manual install.
uv --version # check if already installedIf not installed:
macOS / Linux:
curl -LsSf https://astral.sh/uv/install.sh | shThen restart your shell or run
source $HOME/.local/bin/env.macOS (Homebrew alternative):
brew install uvWindows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
If you prefer not to use uv, see Alternative installation for pip-based setup.
Zabbix 6.2+
Requires Zabbix 6.2 or later with JSON-RPC API enabled (Bearer-token auth
and the selectHostGroups selector). Spans 6.2 through 8.0; every change is
tested end-to-end against real Zabbix 7.0 LTS, 7.4 and 8.0 LTS.
On Zabbix 8.0, the token's user role must have API access: new installs
and newly created roles have it disabled by default (the Super admin role
keeps it). Nothing here uses the massupdate or host-interface write methods
8.0 removed.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Uptime, SSL, DNS and domain monitoring you can talk to from Claude or any MCP client.
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Zapier MCP connects AI tools like Claude, ChatGPT, and Cursor to over 8,000 apps and 30,000+ actions, enabling AI to perform real-world tasks such as sending messages, searching data, scheduling events, and updating records. It acts as a translator between AI tools and apps, handling authentication, rate limits, and retries automatically, transforming AI from a conversational tool into a functional extension of your business stack.
Related MCP Servers
- AlicenseAqualityDmaintenance🔌 Complete MCP server for Zabbix integration - Connect AI assistants to Zabbix monitoring with 40+ tools for hosts, items, triggers, templates, problems, and more. Features read-only mode and comprehensive API coverage.3266GPL 3.0
- AlicenseBqualityAmaintenanceOfficial initMAX MCP server exposing the Zabbix API to AI assistants for monitoring and managing hosts, problems, templates, dashboards, and multiple Zabbix instances. Includes correlated monitoring views, graphs, anomaly detection, capacity forecasts, and PDF reports, with scoped tokens, read-only modes, OAuth 2.1, and an admin portal. Supports Streamable HTTP, SSE, and stdio.84255AGPL 3.0
- AlicenseAqualityBmaintenanceZabbix MCP server and CLI in one Go binary. 15 task-shaped tools: current problems, host investigation, why an alert did or did not arrive, metrics, maintenance. Zabbix 6.4+.15Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI assistants to query and manage Zabbix monitoring data—hosts, items, triggers, problems, and health checks—and generate daily, weekly, and monthly operations reports.21GPL 3.0