mcp-zabbix
Zabbix API的MCP服务器-通过MCP公开Zabbix API的所有功能
 
mcp名称:io.github.daedalus/mcp-zabbix
安装
pip install mcp-zabbix配置
设置以下环境变量:
ZABBIX_URL-Zabbix API URL(必需)ZABBIX_TOKEN-API令牌(必需,或使用用户/密码)ZABBIX_USER-Zabbix用户名(可选)ZABBIX_PASSWORD-Zabbix密码(可选)
用法
from mcp_zabbix import mcp
mcp.run()或者通过CLI:
mcp-zabbixAPI
MCP服务器将所有Zabbix API方法公开为工具。工具遵循以下模式:
zabbix__(例如。,zabbix_host_get,zabbix_host_create)
发展
git clone https://github.com/daedalus/mcp-zabbix.git
cd mcp-zabbix
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/