Prometheus Alertmanager MCP Server
Integrates with Prometheus Alertmanager to retrieve and filter alerts, manage silences (create, list, delete), get alert details by fingerprint, and retrieve alert groups as organized by Alertmanager.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Prometheus Alertmanager MCP Server show me current alerts that are active but not silenced"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Alert Retrieval: Fetches and formats current alerts from Alertmanager with optional filtering capabilities.
Alert Details: Provides detailed information about specific alerts when referenced by their fingerprint.
Silence Management: Offers tools to create, list, and delete silences that suppress notifications for specific alerts.
Alert Grouping: Retrieves alert groups as organized by Alertmanager.
Related MCP server: Opsgenie MCP Server
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
Installing via Smithery
To install Prometheus Alertmanager Integration Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @comqx/alertmanager-mcp --client claudePrerequisites
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
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": {}
}
}
}Restart Claude for Desktop to load the new configuration.
You can now ask Claude to interact with Alertmanager using natural language:
"Show me current alerts"
"Filter alerts related to CPU issues"
"Get details for this alert"
"Create a silence for this alert for the next 2 hours"
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 alertsinhibited: (optional) Include inhibited alertsactive: (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 alertsstartsAt: (optional) Silence start time (ISO8601 format, default is current time)endsAt: Silence end time (ISO8601 format)createdBy: Username who created the silencecomment: 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 alertsinhibited: (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
Available Tools
6 toolscreate-silenceD
Inputs: matchers (required), endsAt (required), createdBy (required), comment (required), +1 more.
delete-silenceD
Inputs: silenceId (required).
get-alert-detailsD
Inputs: fingerprint (required).
get-alert-groupsD
Inputs: active, silenced, inhibited.
get-alertsD
Inputs: filter, silenced, inhibited, active.
get-silencesD
Inputs: filter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting specific resources: create/delete silences, get alerts with varying granularity (details, groups, list), and get silences. There is no overlap in functionality, making tool selection straightforward for an agent.
All tools follow a consistent verb-noun pattern with hyphens (e.g., create-silence, get-alerts). The naming is uniform across all six tools, using clear verbs like 'create', 'delete', and 'get' paired with specific nouns.
Six tools are well-scoped for managing Prometheus Alertmanager alerts and silences, covering core operations. It is slightly lean but reasonable, as it includes essential CRUD-like actions for silences and multiple alert retrieval methods.
The toolset covers key areas: silences (create, delete, list) and alerts (list, groups, details). However, there are notable gaps such as no tools for creating, updating, or deleting alerts, which limits full lifecycle management in the alert domain.
Maintenance
Related MCP Connectors
Manage uptime monitors and incidents and search logs, metrics and traces from an AI assistant.
Search dashboards, query data sources, list alert rules; add annotations in Grafana.
1Read SIGNL4 alerts, teams, users and duty schedules; raise, acknowledge, close and annotate alerts.
Monitor websites, APIs, and servers: create monitors, triage incidents, and query uptime stats.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables Claude to interact with Karma Alert dashboard to monitor and analyze Kubernetes alerts. Provides tools to check alert status, filter by cluster/severity, get detailed alert information, and analyze alert statistics and trends.141MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive Opsgenie alert management including listing, creating, acknowledging, and closing alerts, as well as managing alert notes, logs, and custom properties through natural language.937 npmMIT
- FlicenseAqualityDmaintenanceEnables AI agents to query Prometheus metrics and Loki logs for intelligent alert investigation and troubleshooting. Provides service discovery, metric querying, log searching, and correlation tools to help identify root causes of issues.9-
- AlicenseCqualityDmaintenanceEnables Claude AI to interact with Prometheus Alertmanager for alert retrieval, silence management, and alert grouping through natural language.621 npm10MIT