Centreon MCP ServerBeta
Supervise Centreon desde su asistente de IA: el servidor MCP expone la monitorización en tiempo real como herramientas para cualquier cliente Model Context Protocol (Claude, IDE, agentes). Lee el estado en vivo y reconoce alertas; no modifica su configuración.
Lo que su asistente puede hacer
Estado en tiempo real
Consulte el estado en vivo de hosts y servicios, con contadores por estado.
Reconocimiento de alertas
Reconozca un problema de host o servicio con un comentario, directamente desde el asistente.
Filtros de búsqueda avanzados
Los mismos filtros lógicos que la API de Centreon ($and, $or, regex) para apuntar exactamente a los recursos correctos.
Funciona con las grandes plataformas de IA
MCP es un estándar abierto: cualquier cliente compatible con Model Context Protocol puede conectarse a este servidor.
Requisitos previos
- Python 3.13+ (or Docker)
- A Centreon instance reachable from the MCP server
- A personal API token (Configuration > Users > API tokens)
Desplegar el servidor
git clone https://github.com/CentreonLabs/centreon-mcp.git
cd centreon-mcp
# .env: CENTREON_BASE_URL, CENTREON_API_TOKEN, MCP_API_KEY, NGROK_AUTHTOKEN
docker compose up --build
# -> MCP server on :8000, ngrok tunnel, web UI on :4040git clone https://github.com/CentreonLabs/centreon-mcp.git
cd centreon-mcp
python -m venv .venv && source .venv/bin/activate
pip install -e .
# .env: CENTREON_BASE_URL, CENTREON_API_TOKEN, MCP_API_KEY
fastmcp run centreon_mcp/main.pygit clone https://github.com/CentreonLabs/centreon-mcp.git
cd centreon-mcp
uv sync --all-groups
# .env: CENTREON_BASE_URL, CENTREON_API_TOKEN, MCP_API_KEY
uv run fastmcp run centreon_mcp/main.pyVariables de entorno (.env)
| CENTREON_BASE_URL* | Centreon server URL (without /api/latest) |
| CENTREON_API_TOKEN* | Personal API token (Configuration > Users > API tokens) |
| MCP_API_KEY* | Bearer token clients must send to the MCP server |
| CENTREON_VERIFY_SSL | SSL certificate verification (default: true) |
| CENTREON_CA_BUNDLE | Path to a custom CA bundle (internal PKI) |
| NGROK_AUTHTOKEN | ngrok token (compose.yaml deployment only) |
* variable obligatoria
Conectar su cliente MCP
Apunte su cliente MCP (Claude Desktop, IDE, agente...) a la URL del servidor con la cabecera Authorization:
{
"mcpServers": {
"centreon": {
"url": "https://your-mcp-host:8000/mcp",
"headers": { "Authorization": "Bearer your-mcp-api-key" }
}
}
}Herramientas disponibles
- get_realtime_status (live status of a host or service)
- list_all_status (states overview with counters, regex filters)
- acknowledge_resource (acknowledge a problem with a comment)
Beta: las herramientas e interfaces pueden cambiar sin previo aviso. Sus comentarios son bienvenidos en el repositorio de GitHub.