alertmanager-mcp

alertmanager-mcp

1

The Prometheus Alertmanager MCP Server project links Claude AI with Prometheus Alertmanager, facilitating alert interaction and management through a universal interface. It features alert retrieval, detailed information access, silence management, and more.

Prometheus Alertmanager MCP Server

This project provides a bridge between Claude AI and Prometheus Alertmanager, enabling interaction and management of alerts through a standardized interface.

Core Features

  • Fetch and format current alerts with filtering capabilities.
  • Provide detailed information on specific alerts.
  • Manage silences to suppress alert notifications.
  • Retrieve alert groups from Alertmanager.

Technical Implementation

  • Built with TypeScript and MCP SDK.
  • Communicates with Alertmanager's HTTP API.
  • Compatible with Claude for Desktop.

Installation

  • Requires access to a running Prometheus Alertmanager and Node.js v18 or newer.

Usage with Claude for Desktop

  1. Configure Claude for Desktop with the MCP server.
  2. Restart Claude for Desktop to load configurations.

Available Tools

  • get-alerts: Retrieve alerts with filtering.
  • get-alert-details: Get detailed information on alerts.
  • create-silence: Silence alerts based on matchers.
  • get-silences: Retrieve list of silences.
  • delete-silence: Delete silences by ID.
  • get-alert-groups: Retrieve alert groups with filtering.

Extending the Server

  • Can be extended to include features like trend analysis, automatic response suggestions, and integration with incident management systems.