Alertmanager MCP Server logo

Alertmanager MCP Server

Connects AI assistants to Prometheus Alertmanager for querying alerts, managing silences, and inspecting routing resources.

Install Alertmanager MCP Server

Run the project’s own setup commands, in order.

Setup steps from the project

alertmanager-mcp-server installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Add to your MCP client
    npx -y @smithery/cli install @ntk148v/alertmanager-mcp-server --client claude
    
  2. 2. Install
    git clone https://github.com/ntk148v/alertmanager-mcp-server.git
    
  3. 3. Start the server
    MCP_TRANSPORT=sse MCP_API_KEY=change-me MCP_HOST=0.0.0.0 MCP_PORT=8080 python3 -m src.alertmanager_mcp_server.server
    
  4. 4. Start the server
    python3 -m src.alertmanager_mcp_server.server --transport http --host 127.0.0.1 --port 9000
    
  5. 5. Install
    make install
    
  6. 6. Start the server
    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
    

Overview

alertmanager-mcp-server connects MCP-compatible AI clients to Prometheus Alertmanager through its API v2. It exposes tools for viewing status, alerts, silences, receivers, and alert groups, along with operations for creating, updating, and deleting silences and creating alerts. Paginated responses limit the amount of monitoring data returned to the model at once. Use it when an assistant needs to inspect or manage Alertmanager, including multi-tenant Mimir or Cortex deployments.

Use cases

  • Inspect active and inhibited alerts
  • Create or remove Alertmanager silences
  • Review receivers and alert groups
  • Browse large alert inventories without overflowing model context
  • Connect an assistant to tenant-scoped Mimir or Cortex Alertmanager

Key features

  • Alertmanager API v2 access over MCP
  • Paginated alerts, silences, and alert groups
  • Silence creation, updates, and deletion
  • Alert creation
  • Basic authentication and tenant selection
  • stdio, streamable HTTP, and SSE transports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 38d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars26Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Alertmanager MCP Server works

What alertmanager-mcp-server does

alertmanager-mcp-server gives MCP clients an interface to Prometheus Alertmanager. It supports operational queries for Alertmanager status, alerts, silences, receivers, and alert groups. It also supports write operations for silences and alerts, allowing an assistant to create, update, or remove silences and submit new alerts.

The server is suited to monitoring workflows where an AI assistant needs to answer questions about active alerts, inspect alert routing resources, or perform controlled Alertmanager actions. Example tasks include finding alerts related to a condition, reviewing silences, checking configured receivers, and silencing an alert for a defined period.

How it works

The server communicates with Alertmanager through its API v2 and exposes the resulting operations as MCP tools. It can run over standard input/output, streamable HTTP, or server-sent events. Standard input/output is the default transport; HTTP and SSE use an embedded ASGI server.

Alert, silence, and alert-group list operations support pagination. Callers can provide an offset and page size, and responses include the total number of results, the current offset, the returned count, and whether additional results are available. Default and maximum page sizes are constrained to reduce model context usage: alerts default to 10 items and allow up to 25, silences default to 10 and allow up to 50, and alert groups default to 3 and allow up to 5.

For multi-tenant installations such as Grafana Mimir or Cortex, ALERTMANAGER_TENANT fixes the tenant when the process starts. The tenant is not selected from request headers, and caller-provided X-Scope-OrgId values are ignored.

Setup and configuration

Run locally with Python 3.12 or newer and uv, or use the published Docker image. The Alertmanager endpoint is configured with ALERTMANAGER_URL. Basic authentication can be supplied with ALERTMANAGER_USERNAME and ALERTMANAGER_PASSWORD.

Transport and network settings can be supplied through environment variables or command-line flags, with flags taking precedence. MCP_TRANSPORT accepts stdio, http, or sse; MCP_HOST and MCP_PORT configure HTTP or SSE binding and default to 127.0.0.1 and 8000. MCP_API_KEY adds bearer-token authentication to HTTP and SSE requests. Network deployments should set this key; without it, web transports are unauthenticated and emit a startup warning.

The project includes a Claude Desktop configuration using uv, and it can also be installed through Smithery. Docker can run the server directly or as a Claude Desktop MCP process.

Tools and capabilities

Available tools include:

  • get_status() for Alertmanager status information.
  • get_alerts(...) for filtered alert queries with pagination and active, inhibited, or silenced state filters.
  • get_silences(...) for paginated silence listings.
  • post_silence(silence_dict) and delete_silence(silence_id) for silence management.
  • get_receivers() for listing configured receivers.
  • get_alert_groups(...) for filtered, paginated alert-group queries.

The feature set also includes creating new alerts and managing existing silences through Alertmanager resources.

Limitations and notes

The server requires network access to the configured Alertmanager instance. HTTP and SSE listeners bind to loopback by default. Exposing them externally requires an appropriate proxy or firewall arrangement, and the API key should be configured for network-accessible deployments. Pagination limits are intentionally small for alert groups because each group contains its associated alerts.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Alertmanager MCP Server

alertmanager-mcp-server is an MCP server that connects AI assistants to Prometheus Alertmanager. Its main tools query status, alerts, silences, receivers, and alert groups, while also creating or deleting silences and creating alerts. It supports pagination, basic authentication, tenant selection, and stdio, HTTP, or SSE transports.

Install it locally with Python 3.12+ and uv, through Smithery for Claude Desktop, or with Docker. Configure ALERTMANAGER_URL and optionally the authentication and tenant variables, then add the MCP process to the client configuration.

Set ALERTMANAGER_URL to the reachable Alertmanager endpoint. Provide ALERTMANAGER_USERNAME and ALERTMANAGER_PASSWORD for Basic authentication when needed, and set ALERTMANAGER_TENANT for a tenant-scoped Mimir or Cortex deployment.

Yes, alert, silence, and alert-group listing tools accept count and offset parameters and return pagination metadata. Each resource type has its own default and maximum page size to limit model context usage.

Set MCP_API_KEY and send it as a bearer token in the Authorization header. HTTP and SSE otherwise run without request authentication, and the server binds to 127.0.0.1 by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAlertmanager MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/alertmanager-mcp-server?style=directory)](https://allmcps.com/mcp/alertmanager-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/alertmanager-mcp-server"><img src="https://allmcps.com/api/badge/alertmanager-mcp-server?style=directory" alt="Alertmanager MCP Server on AllMCPs" /></a>