Back to Home
ntk148v icon

alertmanager-mcp-server

Verified Safe

by ntk148v

Overview

Enables AI assistants and tools to query and manage Prometheus Alertmanager resources programmatically and securely.

Installation

Run Command
docker run -e ALERTMANAGER_URL=http://your-alertmanager:9093 -e ALERTMANAGER_USERNAME=your_username -e ALERTMANAGER_PASSWORD=your_password -e ALERTMANAGER_TENANT=your_tenant_id -p 8000:8000 ghcr.io/ntk148v/alertmanager-mcp-server

Environment Variables

  • ALERTMANAGER_URL
  • ALERTMANAGER_USERNAME
  • ALERTMANAGER_PASSWORD
  • ALERTMANAGER_TENANT
  • MCP_TRANSPORT
  • MCP_HOST
  • MCP_PORT

Security Notes

The server uses environment variables for sensitive configuration like Alertmanager URL, username, and password, avoiding hardcoded secrets. It employs basic authentication and provides multi-tenant support via the `X-Scope-OrgId` header, which is handled securely using `ContextVar` for per-request isolation. HTTP requests use a fixed timeout (60 seconds) to prevent hanging connections. There are no explicit uses of `eval` or other obvious code injection vectors in the provided source code. The primary network risk involves `requests.request` calls to a configurable `ALERTMANAGER_URL`, but this URL is typically managed via environment variables, limiting user-controlled SSRF risks. Overall, the security posture appears sound for its intended purpose.

Similar Servers

Stats

Interest Score17
Security Score8
Cost ClassLow
Avg Tokens1500
Stars13
Forks11
Last Update2025-12-16

Tags

PrometheusAlertmanagerMonitoringAI AssistantMCP