Centreon MCP ServerBeta
Überwachen Sie Centreon aus Ihrem KI-Assistenten: der MCP-Server stellt das Echtzeit-Monitoring als Tools für jeden Model-Context-Protocol-Client bereit (Claude, IDEs, Agenten). Er liest den Live-Status und quittiert Alarme; Ihre Konfiguration bleibt unangetastet.
Was Ihr Assistent kann
Echtzeit-Status
Live-Status von Hosts und Services abfragen, mit Zählern pro Zustand.
Alarm-Bestätigung
Host- oder Service-Probleme mit Kommentar direkt aus dem Assistenten quittieren.
Mächtige Suchfilter
Dieselben logischen Filter wie die Centreon-API ($and, $or, Regex), um genau die richtigen Ressourcen zu treffen.
Kompatibel mit den großen KI-Plattformen
MCP ist ein offener Standard: jeder Model-Context-Protocol-kompatible Client kann sich mit diesem Server verbinden.
Voraussetzungen
- Python 3.13+ (or Docker)
- A Centreon instance reachable from the MCP server
- A personal API token (Configuration > Users > API tokens)
Server bereitstellen
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.pyUmgebungsvariablen (.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) |
* Pflichtvariable
MCP-Client verbinden
Richten Sie Ihren MCP-Client (Claude Desktop, IDE, Agent...) mit dem Authorization-Header auf die Server-URL:
{
"mcpServers": {
"centreon": {
"url": "https://your-mcp-host:8000/mcp",
"headers": { "Authorization": "Bearer your-mcp-api-key" }
}
}
}Verfügbare Tools
- 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: Tools und Schnittstellen können sich ohne Ankündigung ändern. Feedback ist im GitHub-Repository willkommen.