Submit

Prometheus Alertmanager MCP

@ntk148v

A Model Context Protocol (MCP) server that enables AI assistants to integreate with Prometheus Alertmanager
Overview

What is Alertmanager MCP Server?

Alertmanager MCP Server is a Model Context Protocol (MCP) server designed for Prometheus Alertmanager, enabling AI assistants and tools to programmatically and securely manage Alertmanager resources.

How to use Alertmanager MCP Server?

To use the Alertmanager MCP Server, you can either run it locally or via Docker. You need to set up environment variables for your Prometheus Alertmanager server and configure your client to interact with it using natural language commands.

Key features of Alertmanager MCP Server?

  • Query Alertmanager status, alerts, silences, receivers, and alert groups.
  • Create, update, and delete silences.
  • Create new alerts.
  • Supports authentication via environment variables.
  • Docker containerization support for easy deployment.

Use cases of Alertmanager MCP Server?

  1. Managing alerts and silences in Prometheus Alertmanager.
  2. Integrating with AI assistants for natural language queries about alert statuses.
  3. Automating alert management tasks in a DevOps environment.

FAQ from Alertmanager MCP Server?

  • What prerequisites are needed?
    Python 3.12+, uv for dependency management, and Docker (optional).

  • Can I run it without Docker?
    Yes, you can run it locally by cloning the repository and configuring the environment variables.

  • Is there support for authentication?
    Yes, it supports basic authentication via environment variables.

Server Config

{
  "mcpServers": {
    "alertmanager": {
      "command": "uv",
      "args": [
        "--directory",
        "<full path to alertmanager-mcp-server directory>",
        "run",
        "src/alertmanager_mcp_server/server.py"
      ],
      "env": {
        "ALERTMANAGER_URL": "http://your-alertmanager:9093s",
        "ALERTMANAGER_USERNAME": "your_username",
        "ALERTMANAGER_PASSWORD": "your_password"
      }
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.