Prometheus Alertmanager MCP Server
A Model Context Protocol (MCP) server that integrates with Prometheus Alertmanager
Overview
Alertmanager MCP is a Model Context Protocol (MCP) server that integrates with Prometheus Alertmanager, allowing Claude AI to manage alerts through a standardized interface.
To use Alertmanager MCP, install it via npm and configure it with Claude for Desktop to interact with Prometheus Alertmanager using natural language commands.
- Alert Retrieval: Fetches and formats current alerts with filtering options. - Alert Details: Provides detailed information about specific alerts. - Silence Management: Create, list, and delete silences for alerts. - Alert Grouping: Retrieves organized alert groups from Alertmanager.
- Managing alerts in a cloud infrastructure.
- Automating alert responses through AI.
- Integrating alert management into incident response workflows.
Add to your AI client
Use these steps to connect Prometheus Alertmanager MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"alertmanager-mcp-kaznak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"alertmanager-mcp-kaznak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"alertmanager-mcp-kaznak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"alertmanager-mcp-kaznak": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"alertmanager-mcp-kaznak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"alertmanager-mcp-kaznak": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-alertmanager-mcp-kaznak"
]
}
}
}FAQ
Can Alertmanager MCP work with any version of Prometheus Alertmanager?
Yes, it is designed to work with the HTTP API of Prometheus Alertmanager.
Is there a cost to use Alertmanager MCP?
No, it is open-source and free to use.
What programming language is Alertmanager MCP built with?
It is built using TypeScript.