alertmanager-mcp
A Model Context Protocol (MCP) server that integrates with Prometheus Alertmanager
Documentation
Prometheus Alertmanager MCP Server
This project implements a Model Context Protocol (MCP) server that integrates with Prometheus Alertmanager. It serves as a bridge between Claude AI and Alertmanager, allowing Claude to interact with and manage alerts through a standardized interface.
Core Features
1. Alert Retrieval: Fetches and formats current alerts from Alertmanager with optional filtering capabilities.
2. Alert Details: Provides detailed information about specific alerts when referenced by their fingerprint.
3. Silence Management: Offers tools to create, list, and delete silences that suppress notifications for specific alerts.
4. Alert Grouping: Retrieves alert groups as organized by Alertmanager.
Technical Implementation
- Built using TypeScript and the MCP SDK
- Communicates with Alertmanager's HTTP API (v2)
- Runs as a stdio-based process compatible with Claude for Desktop
- Implements proper error handling and timeout management
- Provides strongly-typed interfaces for alert and silence data
Installation
Prerequisites
- Access to a running Prometheus Alertmanager instance
- For Claude for Desktop: Node.js (v18 or newer) installed on your system
Setup
The package is available on npm and can be used directly with npx:
npx alertmanager-mcpFor global installation:
npm install -g alertmanager-mcp
alertmanager-mcpUsage with Claude for Desktop
1. Configure Claude for Desktop to use the MCP server by editing the configuration file:
{
"mcpServers": {
"alertmanager": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--network=host",
"-e", "ALERTMANAGER_URL=http://your-alertmanager-url:9093",
"ghcr.io/kaznak/alertmanager-mcp:latest"
],
"env": {}
}
}
}2. Restart Claude for Desktop to load the new configuration.
3. You can now ask Claude to interact with Alertmanager using natural language:
Available Tools
get-alerts
Retrieves a list of alerts with optional filtering.
Parameters:
- `filter`: (optional) Filtering query (e.g., `alertname=~'.*CPU.*'`)
- `silenced`: (optional) Include silenced alerts
- `inhibited`: (optional) Include inhibited alerts
- `active`: (optional) Include active alerts (default: true)
get-alert-details
Gets detailed information about a specific alert.
Parameters:
- `fingerprint`: Alert fingerprint
create-silence
Creates a silence for alerts matching specified criteria.
Parameters:
- `matchers`: List of matchers for alerts
- `startsAt`: (optional) Silence start time (ISO8601 format, default is current time)
- `endsAt`: Silence end time (ISO8601 format)
- `createdBy`: Username who created the silence
- `comment`: Reason or explanation for the silence
get-silences
Retrieves a list of silences with optional filtering.
Parameters:
- `filter`: (optional) Filtering query (e.g., `createdBy=~'.*admin.*'`)
delete-silence
Deletes a silence by ID.
Parameters:
- `silenceId`: ID of the silence to delete
get-alert-groups
Gets alert groups with optional filtering.
Parameters:
- `active`: (optional) Include active alerts (default: true)
- `silenced`: (optional) Include silenced alerts
- `inhibited`: (optional) Include inhibited alerts
Extending the Server
This MCP server can be extended with additional features such as:
- Alert trend analysis
- Automatic response suggestions
- Integration with incident management systems
- Custom dashboards for specific alert types
Resources
Frequently asked questions
What is alertmanager-mcp?
alertmanager-mcp is A Model Context Protocol (MCP) server that integrates with Prometheus Alertmanager
How do I install alertmanager-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is alertmanager-mcp open source?
Yes — it is hosted on GitHub at https://github.com/kaznak/alertmanager-mcp and has 4 stars.
Related MCP tools
🍒 Cherry Studio is a desktop client that supports for multiple LLM providers. Built for the Model Context Protocol to enhance AI capabilities.
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
Composio equips your AI agents & LLMs with 100+ high-quality integrations via function calling for the Model Context Protocol. Enhance AI assistants with powerf
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Ag...
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP