# mcp-alertmanager [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/jeanlopezxyz/mcp-alertmanager  
**GitHub Stars:** 0  
**npm Downloads (last month):** 383  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-alertmanager

## Description
A Model Context Protocol (MCP) server for Prometheus Alertmanager

## Tools
Capabilities this server exposes over MCP:

- **correlateAlerts** — Find correlated alerts that share common labels (namespace, pod, node). Helps identify related issues during incidents.
- **createSilence** — Create a silence for an alert. Duration format: '30m', '2h', '1d'. Max 30 days.
- **deleteSilence** — Delete a silence by ID. Get ID from getSilences output.
- **getAlertGroups** — Get alerts grouped by routing labels. Shows how alerts are batched for notifications.
- **getAlertHistory** — Get alert history for a specific alert. Shows current/recent instances and guidance for historical analysis.
- **getAlertingSummary** — Get alerting summary: counts by severity, top alerts, affected namespaces.
- **getAlertmanagerStatus** — Get Alertmanager server status: version, uptime, cluster info.
- **getAlerts** — Get alerts from Alertmanager. Returns active alerts by default. Filter by: active, silenced, inhibited, or label (e.g., 'severity=critical').
- **getCriticalAlerts** — Get critical severity alerts only. Prioritized for incident response.
- **getReceivers** — List configured notification receivers (Slack, email, PagerDuty, etc.).
- **getSilences** — List silences. Filter by state: 'active', 'pending', 'expired', or omit for all.
- **investigateAlert** — Investigate an alert: all instances, duration, labels, silences, recommendations.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-alertmanager": {
    "command": "npx",
    "args": ["-y","mcp-alertmanager@latest"],
    "env": {
      "ALERTMANAGER_URL": ""
    }
  }
}
```

**Requires environment variables:** `ALERTMANAGER_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-alertmanager MCP server does

The mcp-alertmanager MCP server gives MCP-compatible clients access to Prometheus Alertmanager operations. It supports alert retrieval with optional filters, grouping by routing labels, critical-alert queries, and summaries that include severity counts, top alerts, and namespaces.

The server also covers common Alertmanager administration and troubleshooting tasks. Agents can list silences by state, create a silence for an alert, remove a silence by ID, inspect configured receivers, and retrieve Alertmanager status, version, and cluster information. Investigation, history, and correlation tools provide focused workflows for examining an individual alert, reviewing its history, or finding alerts with shared labels.

## How it works

The mcp-alertmanager MCP server uses one of two connection paths. When a direct URL is supplied through the `--url` flag or `ALERTMANAGER_URL`, it connects to that Alertmanager endpoint. Direct configuration takes precedence over Kubernetes discovery.

Without a direct URL, the server uses the Kubernetes client-go configuration. It can detect a local kubeconfig or use in-cluster configuration, then reach Alertmanager through the Kubernetes API service proxy. The default target is the `alertmanager-operated` service in the `openshift-monitoring` namespace on port `9093`. This Kubernetes mode does not require kubectl or a local port-forward.

## Setup and configuration

Run the published package with:

```bash
npx -y mcp-alertmanager@latest
```

An MCP client configuration can provide `ALERTMANAGER_URL`, such as `http://localhost:9093`. The same settings can be expressed with command-line flags: `--url`, `--namespace`, `--service`, `--service-port`, `--service-scheme`, and `--kubeconfig`. Kubernetes defaults use the `openshift-monitoring` namespace, `alertmanager-operated` service, port `9093`, and an `https` service scheme.

The project also supplies a native Go binary, GitHub release downloads, a build target, a container image, and a Helm chart. The Helm configuration supports custom Alertmanager URLs, namespace and service settings, OpenShift routes, service port configuration, and a cluster-reader RBAC option.

## Tools and capabilities

The mcp-alertmanager MCP server exposes twelve tools in four functional groups:

- **Alerts:** `getAlerts`, `getAlertGroups`, `getCriticalAlerts`, and `getAlertingSummary`.
- **Silences:** `getSilences`, `createSilence`, and `deleteSilence`.
- **Status:** `getAlertmanagerStatus` and `getReceivers`.
- **Troubleshooting:** `investigateAlert`, `getAlertHistory`, and `correlateAlerts`.

These tools support workflows such as finding currently firing alerts, checking for critical severity, investigating `HighMemoryUsage`, creating a time-limited silence, reviewing receivers, and looking for related alerts through shared labels.

The server is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/mcp-alertmanager/readme_

