Skip to main content
Glama

zabbix-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
host_get

Get hosts from Zabbix with optional filtering.

Args:
    hostids: List of host IDs to retrieve
    groupids: List of host group IDs to filter by
    templateids: List of template IDs to filter by
    output: Output format (extend, shorten, or specific fields)
    search: Search criteria
    filter: Filter criteria
    limit: Maximum number of results
    
Returns:
    str: JSON formatted list of hosts
host_create

Create a new host in Zabbix.

Args:
    host: Host name
    groups: List of host groups (format: [{"groupid": "1"}])
    interfaces: List of host interfaces
    templates: List of templates to link (format: [{"templateid": "1"}])
    inventory_mode: Inventory mode (-1=disabled, 0=manual, 1=automatic)
    status: Host status (0=enabled, 1=disabled)
    
Returns:
    str: JSON formatted creation result
host_update

Update an existing host in Zabbix.

Args:
    hostid: Host ID to update
    host: New host name
    name: New visible name
    status: New status (0=enabled, 1=disabled)
    
Returns:
    str: JSON formatted update result
host_delete

Delete hosts from Zabbix.

Args:
    hostids: List of host IDs to delete
    
Returns:
    str: JSON formatted deletion result
hostgroup_get

Get host groups from Zabbix.

Args:
    groupids: List of group IDs to retrieve
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of host groups
hostgroup_create

Create a new host group in Zabbix.

Args:
    name: Host group name
    
Returns:
    str: JSON formatted creation result
hostgroup_update

Update an existing host group in Zabbix.

Args:
    groupid: Group ID to update
    name: New group name
    
Returns:
    str: JSON formatted update result
hostgroup_delete

Delete host groups from Zabbix.

Args:
    groupids: List of group IDs to delete
    
Returns:
    str: JSON formatted deletion result
item_get

Get items from Zabbix with optional filtering.

Args:
    itemids: List of item IDs to retrieve
    hostids: List of host IDs to filter by
    groupids: List of host group IDs to filter by
    templateids: List of template IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    limit: Maximum number of results
    
Returns:
    str: JSON formatted list of items
item_create

Create a new item in Zabbix.

Args:
    name: Item name
    key_: Item key
    hostid: Host ID
    type: Item type (0=Zabbix agent, 2=Zabbix trapper, etc.)
    value_type: Value type (0=float, 1=character, 3=unsigned int, 4=text)
    delay: Update interval
    units: Value units
    description: Item description
    
Returns:
    str: JSON formatted creation result
item_update

Update an existing item in Zabbix.

Args:
    itemid: Item ID to update
    name: New item name
    key_: New item key
    delay: New update interval
    status: New status (0=enabled, 1=disabled)
    
Returns:
    str: JSON formatted update result
item_delete

Delete items from Zabbix.

Args:
    itemids: List of item IDs to delete
    
Returns:
    str: JSON formatted deletion result
trigger_get

Get triggers from Zabbix with optional filtering.

Args:
    triggerids: List of trigger IDs to retrieve
    hostids: List of host IDs to filter by
    groupids: List of host group IDs to filter by
    templateids: List of template IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    limit: Maximum number of results
    
Returns:
    str: JSON formatted list of triggers
trigger_create

Create a new trigger in Zabbix.

Args:
    description: Trigger description
    expression: Trigger expression
    priority: Severity (0=not classified, 1=info, 2=warning, 3=average, 4=high, 5=disaster)
    status: Status (0=enabled, 1=disabled)
    comments: Additional comments
    
Returns:
    str: JSON formatted creation result
trigger_update

Update an existing trigger in Zabbix.

Args:
    triggerid: Trigger ID to update
    description: New trigger description
    expression: New trigger expression
    priority: New severity level
    status: New status (0=enabled, 1=disabled)
    
Returns:
    str: JSON formatted update result
trigger_delete

Delete triggers from Zabbix.

Args:
    triggerids: List of trigger IDs to delete
    
Returns:
    str: JSON formatted deletion result
template_get

Get templates from Zabbix with optional filtering.

Args:
    templateids: List of template IDs to retrieve
    groupids: List of host group IDs to filter by
    hostids: List of host IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of templates
template_create

Create a new template in Zabbix.

Args:
    host: Template technical name
    groups: List of host groups (format: [{"groupid": "1"}])
    name: Template visible name
    description: Template description
    
Returns:
    str: JSON formatted creation result
template_update

Update an existing template in Zabbix.

Args:
    templateid: Template ID to update
    host: New template technical name
    name: New template visible name
    description: New template description
    
Returns:
    str: JSON formatted update result
template_delete

Delete templates from Zabbix.

Args:
    templateids: List of template IDs to delete
    
Returns:
    str: JSON formatted deletion result
problem_get

Get problems from Zabbix with optional filtering.

Args:
    eventids: List of event IDs to retrieve
    groupids: List of host group IDs to filter by
    hostids: List of host IDs to filter by
    objectids: List of object IDs to filter by
    output: Output format
    time_from: Start time (Unix timestamp)
    time_till: End time (Unix timestamp)
    recent: Only recent problems
    severities: List of severity levels to filter by
    limit: Maximum number of results
    
Returns:
    str: JSON formatted list of problems
event_get

Get events from Zabbix with optional filtering.

Args:
    eventids: List of event IDs to retrieve
    groupids: List of host group IDs to filter by
    hostids: List of host IDs to filter by
    objectids: List of object IDs to filter by
    output: Output format
    time_from: Start time (Unix timestamp)
    time_till: End time (Unix timestamp)
    limit: Maximum number of results
    
Returns:
    str: JSON formatted list of events
event_acknowledge

Acknowledge events in Zabbix.

Args:
    eventids: List of event IDs to acknowledge
    action: Acknowledge action (1=acknowledge, 2=close, etc.)
    message: Acknowledge message
    
Returns:
    str: JSON formatted acknowledgment result
history_get

Get history data from Zabbix.

Args:
    itemids: List of item IDs to get history for
    history: History type (0=float, 1=character, 2=log, 3=unsigned, 4=text)
    time_from: Start time (Unix timestamp)
    time_till: End time (Unix timestamp)
    limit: Maximum number of results
    sortfield: Field to sort by
    sortorder: Sort order (ASC or DESC)
    
Returns:
    str: JSON formatted history data
trend_get

Get trend data from Zabbix.

Args:
    itemids: List of item IDs to get trends for
    time_from: Start time (Unix timestamp)
    time_till: End time (Unix timestamp)
    limit: Maximum number of results
    
Returns:
    str: JSON formatted trend data
user_get

Get users from Zabbix with optional filtering.

Args:
    userids: List of user IDs to retrieve
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of users
user_create

Create a new user in Zabbix.

Args:
    username: Username
    passwd: Password
    usrgrps: List of user groups (format: [{"usrgrpid": "1"}])
    name: First name
    surname: Last name
    email: Email address
    
Returns:
    str: JSON formatted creation result
user_update

Update an existing user in Zabbix.

Args:
    userid: User ID to update
    username: New username
    name: New first name
    surname: New last name
    email: New email address
    
Returns:
    str: JSON formatted update result
user_delete

Delete users from Zabbix.

Args:
    userids: List of user IDs to delete
    
Returns:
    str: JSON formatted deletion result
maintenance_get

Get maintenance periods from Zabbix.

Args:
    maintenanceids: List of maintenance IDs to retrieve
    groupids: List of host group IDs to filter by
    hostids: List of host IDs to filter by
    output: Output format
    
Returns:
    str: JSON formatted list of maintenance periods
maintenance_create

Create a new maintenance period in Zabbix.

Args:
    name: Maintenance name
    active_since: Start time (Unix timestamp)
    active_till: End time (Unix timestamp)
    groupids: List of host group IDs
    hostids: List of host IDs
    timeperiods: List of time periods
    description: Maintenance description
    
Returns:
    str: JSON formatted creation result
maintenance_update

Update an existing maintenance period in Zabbix.

Args:
    maintenanceid: Maintenance ID to update
    name: New maintenance name
    active_since: New start time (Unix timestamp)
    active_till: New end time (Unix timestamp)
    description: New maintenance description
    
Returns:
    str: JSON formatted update result
maintenance_delete

Delete maintenance periods from Zabbix.

Args:
    maintenanceids: List of maintenance IDs to delete
    
Returns:
    str: JSON formatted deletion result
graph_get

Get graphs from Zabbix with optional filtering.

Args:
    graphids: List of graph IDs to retrieve
    hostids: List of host IDs to filter by
    templateids: List of template IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of graphs
discoveryrule_get

Get discovery rules from Zabbix with optional filtering.

Args:
    itemids: List of discovery rule IDs to retrieve
    hostids: List of host IDs to filter by
    templateids: List of template IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of discovery rules
itemprototype_get

Get item prototypes from Zabbix with optional filtering.

Args:
    itemids: List of item prototype IDs to retrieve
    discoveryids: List of discovery rule IDs to filter by
    hostids: List of host IDs to filter by
    output: Output format
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of item prototypes
configuration_export

Export configuration from Zabbix.

Args:
    format: Export format (json, xml)
    options: Export options
    
Returns:
    str: JSON formatted export result
configuration_import

Import configuration to Zabbix.

Args:
    format: Import format (json, xml)
    source: Configuration data to import
    rules: Import rules
    
Returns:
    str: JSON formatted import result
usermacro_get

Get global macros from Zabbix with optional filtering.

Args:
    globalmacroids: List of global macro IDs to retrieve
    hostids: List of host IDs to filter by (for host macros)
    output: Output format (extend, shorten, or specific fields)
    search: Search criteria
    filter: Filter criteria
    
Returns:
    str: JSON formatted list of global macros
apiinfo_version

Get Zabbix API version information.

Returns:
    str: JSON formatted API version info

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