Prometheus Alertmanager Integration Server
安全与合规by comqx
用自然语言操作 Prometheus Alertmanager,支持检索、筛选、分组 alerts,以及创建和删除 silences,简化告警管理。
什么是 Prometheus Alertmanager Integration Server?
用自然语言操作 Prometheus Alertmanager,支持检索、筛选、分组 alerts,以及创建和删除 silences,简化告警管理。
核心功能 (6 个工具)
get-alertsget-alert-detailscreate-silenceget-silencesdelete-silenceget-alert-groupsREADME
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.
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 claude
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-mcp
For global installation:
npm install -g alertmanager-mcp
alertmanager-mcp
Usage 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
常见问题
Prometheus Alertmanager Integration Server 是什么?
用自然语言操作 Prometheus Alertmanager,支持检索、筛选、分组 alerts,以及创建和删除 silences,简化告警管理。
Prometheus Alertmanager Integration Server 提供哪些工具?
提供 6 个工具,包括 get-alerts、get-alert-details、create-silence 等。
相关 Skills
安全专家
by alirezarezvani
覆盖威胁建模、漏洞评估、安全架构设计、代码审计与渗透测试,内置 STRIDE、OWASP、加密模式和安全扫描流程,适合系统设计评审与上线前安全排查。
✎ 安全专家把威胁建模、漏洞分析到渗透测试串成一套流程,内置 STRIDE 与 OWASP 指南,做安全设计和排查更省心。
安全审计
by alirezarezvani
安装前审计 Claude Code Skill 的代码执行、Prompt 注入和依赖供应链风险,支持本地目录或 Git 仓库扫描,输出 PASS/WARN/FAIL 结论及修复建议
✎ 把代码审查、漏洞扫描和合规检查串成一条线,帮团队更早发现风险,做安全治理更省心。
安全运营
by alirezarezvani
覆盖应用安全、漏洞管理与合规审计,支持代码/依赖扫描、CVE 评估、Secrets 检测和安全自动化,适合做安全基线落地、漏洞响应、审计检查与安全开发治理。
✎ 应用安全、漏洞管理和合规检查一套打通,还能自动化扫描与响应,帮团队更早发现并收敛风险。
相关 MCP Server
by Sentry
搜索和分析 Sentry 错误报告,辅助调试。
✎ 把零散的 Sentry 错误报告变成可检索线索,帮你在海量报错里更快定位线上故障,排障调试明显省时。
by sinewaveai
为 AI agents 提供安全层:拦截 prompt injection、识别伪造 packages,并扫描漏洞风险。
✎ 给 AI Agent 补上关键安全层,能拦截 prompt 注入、识别伪造包并扫描漏洞风险,把防护前置更省心。
by pantheon-security
强化安全性的 NotebookLM MCP,集成 post-quantum encryption,提升数据防护能力。