zabbix-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zabbix-mcpShow all active problems with severity High or above"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
zabbix-mcp
A Model Context Protocol (MCP) server that exposes Zabbix monitoring capabilities as callable tools for AI agents and MCP-compatible clients.
Features
30 tools across 11 categories (hosts, problems/triggers, items/history, maintenance, host groups, events, graphs, templates, inventory, actions, users, analytics, operational)
Transports: stdio (default) and HTTP/SSE — selectable via env var or CLI flag
Protocol: MCP 2024-11-05
Auth: API token (Zabbix 5.4+) or user/password, loaded from
.envBundled interactive CLI agent using NVIDIA, OpenRouter or Groq as LLM provider
Related MCP server: Zabbix MCP Server
Requirements
Python 3.11+
A Zabbix instance reachable from the server process (5.4+ recommended for token auth)
An API key for at least one LLM provider (if using the agent)
starletteanduvicorn(only required for HTTP/SSE transport — included inrequirements.txt)
Installation
git clone <repo-url> /opt/zabbix-mcp
cd /opt/zabbix-mcp
# Option A — system Python (no venv)
pip install -r requirements.txt
# Option B — virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Option C — Docker
docker build -t zabbix-mcp:latest .Configuration
Copy .env.example to .env and fill in your values:
cp .env.example .envZabbix connection
Variable | Required | Description |
| yes | Full base URL, e.g. |
| one of† | API token — create at Administration → Users → API tokens |
| one of† | Username for user/password auth |
| one of† | Password for user/password auth |
| no |
|
† Token auth takes priority when both are present.
LLM provider (agent only)
Variable | Description |
| Active provider: |
| NVIDIA Build API key — build.nvidia.com |
| Model override (default: |
| OpenRouter API key |
| Model override (default: |
| Groq API key |
| Model override (default: |
Running the server
stdio transport (default)
The server reads JSON-RPC 2.0 from stdin and writes to stdout. It is normally spawned by an MCP client (Claude Desktop, an agent, etc.).
python server.py
# or explicitly
python server.py --transport stdio
# or with venv
.venv/bin/python server.py
# or with Docker
docker run --rm -i --env-file .env zabbix-mcp:latestHTTP/SSE transport
The server starts a Starlette/uvicorn HTTP server. Clients connect to
GET /sse to receive events and POST /messages/ to send requests.
# local
python server.py --transport sse --host 0.0.0.0 --port 8000
# or via env vars
MCP_TRANSPORT=sse MCP_PORT=8000 python server.py
# or with Docker
docker run --rm --env-file .env -e MCP_TRANSPORT=sse -p 8000:8000 zabbix-mcp:latest
# or via Make
make run-sse
make run-sse PORT=9000Transport environment variables:
Variable | Default | Description |
|
|
|
|
| Bind address (SSE mode only) |
|
| TCP port (SSE mode only) |
See DOCKER.md for full Docker usage and Claude Desktop integration.
Running the agent
python agent.pyZabbix AI Agent | provider=nvidia model=meta/llama-3.3-70b-instruct
Type your request, or 'exit' / Ctrl-C to quit.
You: Show me all active problems with severity High or above
[tool] get_problems({"min_severity": 4})
...Available tools
Hosts
Tool | Description |
| List hosts with status, availability and primary IP. Optional filters: |
| Full detail for one host: interfaces, groups, templates, macros. Accepts |
| Substring search across host name and visible name. Required: |
Triggers / Problems
Tool | Description |
| Active (unresolved) problems, sorted by severity desc. Optional filters: |
| Triggers for a host, sorted by severity. Required: |
Items / History
Tool | Description |
| Monitoring items for a host with last collected value and unit. Required: |
| Recent data points for one item. Required: |
Maintenance
Tool | Description |
| List all maintenance windows with scope and active period. |
| Create a one-time maintenance window. Required: |
| Delete a maintenance window by |
Host Groups
Tool | Description |
| List all host groups with IDs and names. Optional: |
Events
Tool | Description |
| Historical events (problems + recoveries) for a time window, including hostname. Optional: |
| Acknowledge one or more events by |
| Ranked list of hosts by problem count in a time window. Optional: |
Graphs
Tool | Description |
| Graphs defined for a host. Required: |
| Items (metrics) that make up a graph. Required: |
Templates
Tool | Description |
| List templates. Optional: |
Inventory
Tool | Description |
| Full inventory record for a host (OS, hardware, location, serial numbers). Required: |
Actions
Tool | Description |
| List alerting actions with status and event source. Optional: |
Analytics
Tool | Description |
| Triggers with most state changes (PROBLEM↔OK) in a window — identifies noisy thresholds. Optional: |
| Uptime % per host computed from PROBLEM events and their recoveries. Optional: |
| Hourly aggregated trend data (min/avg/max) for an item over days/months. Required: |
| Per-trigger stats: count, total/avg/max downtime. Optional: |
Operational
Tool | Description |
| Enable monitoring for a host. Required: |
| Disable monitoring for a host. Required: |
| Update an existing maintenance window (name, time, duration, collect_data). Required: |
| Add a host to a host group. Required: |
| Remove a host from a host group. Required: |
Users / Groups
Tool | Description |
| List users with username, display name and group membership. Optional: |
| List user groups with GUI access level and status. Optional: |
Severity codes
Code | Label |
0 | Not classified |
1 | Information |
2 | Warning |
3 | Average |
4 | High |
5 | Disaster |
Project structure
zabbix-mcp/
├── server.py — MCP server (30 tools, stdio + HTTP/SSE transports)
├── util.py — Zabbix code → human-readable string converters
├── agent.py — Interactive CLI agent
├── llm.py — LLM provider registry and agentic loop
├── requirements.txt — Python dependencies
├── Dockerfile — Container image for the MCP server
├── DOCKER.md — Docker usage and Claude Desktop integration guide
├── .env.example — Environment variable template
└── .gitignoreHow the agentic loop works
User question
│
▼
LLM (Reason) ──── tool_calls? ──► MCP server (Act)
▲ │
│ │ result
└─────────── tool message ◄───────────┘
(Observe)
│
finish_reason = "stop"
│
▼
Final answerThe loop runs up to 20 iterations by default and handles unknown tools, JSON decode errors, and asyncio timeouts gracefully.
Integrating with Claude Desktop
stdio mode (subprocess — no port needed)
{
"mcpServers": {
"zabbix": {
"command": "docker",
"args": ["run", "--rm", "-i", "--env-file", "/path/to/.env", "zabbix-mcp:latest"]
}
}
}Without Docker:
{
"mcpServers": {
"zabbix": {
"command": "/opt/zabbix-mcp/.venv/bin/python",
"args": ["/opt/zabbix-mcp/server.py"]
}
}
}HTTP/SSE mode (remote/persistent container)
First start the container:
docker run -d --name zabbix-mcp \
--env-file /path/to/.env \
-e MCP_TRANSPORT=sse \
-p 8000:8000 \
zabbix-mcp:latestThen add to claude_desktop_config.json:
{
"mcpServers": {
"zabbix": {
"url": "http://localhost:8000/sse"
}
}
}License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lordraw77/zabbix-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server