icinga-mcp
MCP servers for Icinga2 and Icinga Director monitoring/config automation.
Self-hosted Model Context Protocol (MCP) servers for an existing Icinga installation. Use Core to inspect live problems and run checks. Use Director to inspect or manage configuration. The project publishes GitHub Releases and is currently in the SemVer 0.x series. Check the changelog before upgrading. 1. Install Python 3.10 or later and Git. For Core, have a reachable Icinga 2 API and an API account. For Director, have a reachable Icinga Web 2 Director module and an account with Director API access. 2. Clone the repository and create a virtual environment. These commands use a POSIX shell.
Summary extracted from the README.
icinga-mcp
Self-hosted Model Context Protocol (MCP) servers for an existing Icinga installation. Use Core to inspect live problems and run checks. Use Director to inspect or manage configuration.
| Server | Typical use | Default endpoint |
|---|---|---|
icinga2-mcp |
Live host and service state, problem triage, checks, acknowledgements and downtimes | http://127.0.0.1:8092/mcp |
director-mcp |
Director inventory, configuration changes and deployment verification | http://127.0.0.1:8093/mcp |
The project publishes GitHub Releases and is currently in the SemVer 0.x series. Check the changelog before upgrading.
Quick start
-
Install Python 3.10 or later and Git. For Core, have a reachable Icinga 2 API and an API account. For Director, have a reachable Icinga Web 2 Director module and an account with Director API access.
-
Clone the repository and create a virtual environment. These commands use a POSIX shell.
git clone https://github.com/DanielVd/icinga-mcp.git cd icinga-mcp python3 -m venv .venv . .venv/bin/activate python -m pip install -e . cp .env.example .env -
Replace the placeholders in
.envfor the server you want to run. Core usesICINGA_HOST,ICINGA_USERandICINGA_PASSWORD. Director usesDIRECTOR_BASE_URL,DIRECTOR_USERandDIRECTOR_PASSWORD. See the configuration guide for permissions and TLS. -
From the repository root, run
.venv/bin/icinga2-mcpor.venv/bin/director-mcp. Start each server in its own terminal if you want both. -
In the client, add the appropriate endpoint using Streamable HTTP. Use an address reachable from the client host or container. If the client filters tool names, include the tools you want it to call.
Test the connection with a read-only call.
| Server | Tool | Arguments |
|---|---|---|
| Core | get_problems |
{"limit": 5} |
| Director | list_hosts |
{"limit": 5, "summary": true} |
The release page also provides a Python wheel. Install the downloaded wheel with python -m pip install <wheel-path> and use .env.example from the matching source release as a starting point.
What you can do
- Request a triage summary. For example, ask Core for critical services without an acknowledgement or downtime. Use
get_problemswith{"severity":"CRITICAL","acknowledged":false,"in_downtime":false}. - Inspect a single live host or service with the Core tools. State and output are available through Core. Director shows configured objects.
- Use separate read and write credentials for a named Core instance.
- Enable Icinga DB Web history or the Linuxfabrik plugin catalog.
- Verify whether a Director configuration checksum is active. Enable the optional activity reader to see pending changes before a deployment.
Documentation
- Configuration and environment variables
- Architecture, deployment and troubleshooting
- Development, build and tests
- Releasing and supply-chain records
- Security reporting and support
- Repository guidance for coding agents
Security and licensing
HTTP listeners bind to loopback by default. Non-loopback listeners require TLS, a bearer token and explicit allowed hosts. Backend certificate verification defaults to enabled. Write tools require an explicit opt-in and the corresponding backend permissions. See deployment safeguards.
The original project code and documentation are available under the MIT License. The vendored Linuxfabrik catalog retains its Unlicense text and attribution notice. It was adapted from Linuxfabrik MCP Server for Icinga at fd681ab. REUSE.toml records which license applies to each part of the repository.