Skip to main content
Glama
mpeirone

zabbix-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AUTH_TYPENoMust be set to no-auth for streamable-http transport
READ_ONLYNoSet to true, 1, or yes to enable read-only mode (only GET operations allowed)
VERIFY_SSLNoEnable/disable SSL certificate verificationtrue
ZABBIX_URLNoYour Zabbix server API endpoint (e.g., https://zabbix.example.com)
ZABBIX_USERNoYour Zabbix username
ZABBIX_TOKENNoYour Zabbix API token
ZABBIX_MCP_HOSTNoServer host (only used when ZABBIX_MCP_TRANSPORT=streamable-http)127.0.0.1
ZABBIX_MCP_PORTNoServer port (only used when ZABBIX_MCP_TRANSPORT=streamable-http)8000
ZABBIX_PASSWORDNoYour Zabbix password
ZABBIX_MCP_TRANSPORTNoTransport type: stdio (default) or streamable-httpstdio
ZABBIX_MCP_STATELESS_HTTPNoStateless mode (only used when ZABBIX_MCP_TRANSPORT=streamable-http)false

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
zabbix_apiA

Zabbix server: https://zabbix.example.com

Execute Zabbix API method.

This is the main tool for interacting with Zabbix. It requires multiple
iterations to achieve complex goals. Use other tools for guidance.

WORKFLOW:
1. If unsure about method/params: call zabbix_api_docs(method) first
2. If unsure about available methods: call zabbix_api_list() first
3. Execute the API call with this tool
4. If empty results or errors: iterate with different params/filters
5. Continue iterating until goal is achieved

COMMON PATTERNS:
- Finding an object requires 2+ calls (find ID, then get details)
- CPU usage example: Find host by name, get its items, filter CPU item, get history
- Empty results often mean wrong filters - try broader search first

Args:
    method: Zabbix API method (format: 'object.action').
    Examples: 'host.get', 'item.create', 'trigger.update'
    params: Method parameters (optional). For 'get' operations,
    specify 'output' to limit fields (default: ['name']).

Returns:
    JSON response from Zabbix API.

Examples:
# Simple query
zabbix_api('host.get', {'output': ['hostid', 'name']})

# Multi-step: Find host, then get items
# Step 1: Find host ID
hosts = zabbix_api('host.get', {'filter': {'host': 'my-srv-01'}, 'output': ['hostid']})
# Step 2: Get CPU items for that host
items = zabbix_api('item.get', {'hostids': ['12345'], 'search': {'name': 'CPU'}, 'output': ['itemid', 'name']})
# Step 3: Get history for specific item
history = zabbix_api('history.get', {'itemids': ['67890'], 'output': 'extend', 'history': 0, 'limit': 10})

Note:
- Use zabbix_api_docs() for method documentation
- Use zabbix_api_list() for available methods
- Iterate multiple times - complex queries need 2-5 API calls
zabbix_api_docsA

Get Zabbix API method documentation.

Call this BEFORE zabbix_api() if you are unsure about method parameters. Shows required/optional parameters with types and descriptions.

zabbix_api_listA

Get available Zabbix API objects and methods.

Call this to discover what API methods are available before using zabbix_api(). Returns all objects and methods discovered dynamically from Zabbix API.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/mpeirone/zabbix-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server