Alertmanager MCP Server & Agent Plugin
A Model Context Protocol (MCP) execution server and Agent Plugins v1.0.0 skill package for Prometheus Alertmanager incident triage, routing & inhibition simulation, silence governance (SP001–SP010), and SRE alert hygiene.
Let your AI assistant help with alerts: see what's firing, find out why an alert didn't notify anyone, create safe silences for maintenance, and check your routing and alert hygiene.
What you get
- 14 MCP tools (9 read-only) that work against your live Alertmanager setup
- 10 resources your assistant can read for context, under
am:// - 5 Agent Skills: step-by-step playbooks that teach your assistant how to use the tools well
- Safe by default: only read-only tools are loaded until you turn on writes, and changes are previewed or confirmed before they happen
Quick start
You'll need:
1. Add the server to your MCP client. For Claude Desktop, Cursor, Windsurf, and most other clients, add this to your MCP config file:
{
"mcpServers": {
"alertmanager": {
"command": "uvx",
"args": [
"--from",
"talkops-alertmanager-mcp-server",
"alertmanager-mcp-server"
],
"env": {
"ALERTMANAGER_BASE_URL": "http://localhost:9093"
}
}
}
}
Using Claude Code? Run this instead:
claude mcp add alertmanager -e ALERTMANAGER_BASE_URL=http://localhost:9093 -- uvx --from talkops-alertmanager-mcp-server alertmanager-mcp-server
uvx downloads talkops-alertmanager-mcp-server from PyPI and runs it, so there's nothing else to install. Prefer a normal install? Run pip install talkops-alertmanager-mcp-server and use alertmanager-mcp-server as the command.
Prefer Docker? Pull talkopsai/alertmanager-mcp-server from Docker Hub—no Python setup needed:
{
"mcpServers": {
"alertmanager": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MCP_TRANSPORT=stdio",
"-e",
"ALERTMANAGER_BASE_URL",
"talkopsai/alertmanager-mcp-server:latest"
],
"env": {
"ALERTMANAGER_BASE_URL": "http://host.docker.internal:9093"
}
}
}
}
2. Restart your client and try asking:
- "Summarize what's firing for the
paymentsteam right now." - "Why didn't the
HighErrorRatealert page anyone?" - "Silence
checkoutalerts inprodfor a 2-hour maintenance window. Show me what it would match first."
Allowing changes
Out of the box the server is read-only. To let your assistant make changes (creating, updating, and expiring silences, and sending test alerts), add "--allow-write" to args (or pass -e MCP_ALLOW_WRITE=true to docker run). Even then, changes are previewed first and destructive actions ask for confirmation.
Configuration
Set these as environment variables (the env block in your client config, or -e with docker run) or pass the matching flag.
| Variable | Flag | Default | What it does |
|---|---|---|---|
ALERTMANAGER_BASE_URL |
— | http://localhost:9093 |
Your Alertmanager URL |
ALERTMANAGER_AUTH_HEADER |
— | none | Authorization header, e.g. Bearer <token> |
ALERTMANAGER_BACKENDS |
— | none | JSON list of several Alertmanagers (replaces the single URL) |
MCP_ALLOW_WRITE |
--allow-write |
false |
Enable silence and test-alert tools |
MCP_TOOLSETS |
--toolsets |
all |
Limit tools: triage, routing, silences, governance |
AM_MAX_SILENCE_MINUTES |
— | 1440 |
Longest silence allowed, in minutes |
AM_SILENCE_CONFIRM_THRESHOLD |
— | 50 |
Ask for confirmation when a silence would match more alerts than this |
MCP_TRANSPORT |
--transport |
stdio |
stdio or http |
MCP_PORT |
--port |
8769 |
Port when using HTTP |
Run uvx --from talkops-alertmanager-mcp-server alertmanager-mcp-server --help to see every option.
Running over HTTP
To share one server between several clients or run it remotely, start it in HTTP mode with Docker or uvx:
# With Docker (starts in HTTP mode by default)
docker run --rm -p 8769:8769 \
-e ALERTMANAGER_BASE_URL=http://host.docker.internal:9093 \
talkopsai/alertmanager-mcp-server:latest
# Or with uvx
MCP_TRANSPORT=http MCP_PORT=8769 uvx --from talkops-alertmanager-mcp-server alertmanager-mcp-server
Then point your client at http://localhost:8769/mcp:
{
"mcpServers": {
"alertmanager": {
"url": "http://localhost:8769/mcp"
}
}
}
Agent Skills
Skills live in skills/. Each one is a SKILL.md playbook (plus optional references/ and offline scripts/) that teaches your AI assistant how to do a job safely, while the MCP server does the actual work. Tools are the hands, skills are the know-how.
To use them, copy the folders into your assistant's skills directory, for example:
git clone https://github.com/talkops-ai/talkops-mcp.git
cp -r talkops-mcp/src/alertmanager-mcp-server/skills/* ~/.claude/skills/
This folder is also a portable Agent Plugin (plugin.json + mcp.json + skills/), so plugin-aware clients can load the server and skills together.
| Skill | Use it to |
|---|---|
triaging-alertmanager-alerts |
Sort out what's firing during an incident or shift handover. |
diagnosing-missed-notifications |
Work out why an alert didn't reach Slack, PagerDuty, or email. |
managing-alert-silences |
Plan, preview, create, and expire silences safely. |
validating-alertmanager-routing |
Test and lint routing trees, inhibition rules, and time intervals. |
auditing-alertmanager-governance |
Check alert labels, runbook links, catch-all routes, and old silences. |
Reference
All 14 tools
| Tool | Access | What it does |
|---|---|---|
am_audit_alert_hygiene |
Read | Audit active alerts for default-route leakage, missing runbook/summary annotations, invalid severity values, chronic long-firing alerts, and Watchdog heartbeat presence. |
am_audit_silences |
Read | Audit silence change history, active silence policy compliance (SP001–SP009), stale 0-match silences, and silences expiring soon. |
am_check_notification_health |
Read | Inspect Alertmanager readiness, config reload status, cluster peers, and /metrics receiver delivery failure counters. |
am_create_silence |
Write | Create an Alertmanager silence after enforcing SilencePolicy (SP001–SP010), deduplication, and blast-radius confirmation. |
am_expire_silence |
Write (destructive) | Expire an active silence after previewing how many suppressed alerts will immediately resume paging. |
am_explain_routing |
Read | Simulate Alertmanager's nested routing tree (continue, inherited group_by/timers, mute_time_intervals) and live inhibition rules. |
am_list_alert_groups |
Read | List Alertmanager dispatch groups grouped by route group_by labels. |
am_list_alerts |
Read | Query alerts from Alertmanager with full matcher grammar and state filtering. |
am_list_silences |
Read | List silences with state, matcher, author, and comment filtering. |
am_preview_silence |
Read | Dry-run a silence against active alerts, routing receivers, overlapping silences, and SilencePolicy (SP001–SP010). |
am_push_test_alert |
Write | Push a time-bounded synthetic test alert to Alertmanager to verify end-to-end receiver delivery. |
am_silence_alert |
Write | Derive scoped matchers (instance or service) from a firing alert and create a policy-validated silence. |
am_summarize_oncall |
Read | Generate a structured on-call triage summary of active and suppressed alerts. |
am_update_silence |
Write | Atomically update an active silence via POST /api/v2/silences with id, enforcing the total lifetime cap (SP007). |
All 10 resources
| Resource | What it returns |
|---|---|
am://audit-log |
Recent MCP-initiated operations (create/update/expire silence, push test alert, policy denials) |
am://backends |
All configured Alertmanager backends with live health, version, and default flag |
am://backends/{backend_id} |
Detailed status, readiness, version, uptime, and cluster peers for a specific Alertmanager backend |
am://backends/{backend_id}/alerts/active |
Bounded snapshot of active firing alerts for a specific Alertmanager backend |
am://backends/{backend_id}/alerts/groups |
Snapshot of Alertmanager dispatch groups for a specific backend |
am://backends/{backend_id}/alerts/{fingerprint} |
Full labels, annotations, receivers, and status for a specific alert fingerprint on a backend |
am://backends/{backend_id}/config |
Nested routing tree, inhibition rules, time intervals, and redacted configuration for a backend |
am://backends/{backend_id}/receivers |
Configured receivers (Slack, PagerDuty, email, webhook, OpsGenie) with redacted credentials for a backend |
am://backends/{backend_id}/silences/active |
Snapshot of active silences for a specific Alertmanager backend |
am://backends/{backend_id}/silences/{silence_id} |
Full details and status for a specific silence ID on a backend |
Development
git clone https://github.com/talkops-ai/talkops-mcp.git
cd talkops-mcp/src/alertmanager-mcp-server
uv sync --dev
uv run pytest
uv run alertmanager-mcp-server --help
Get help
License
Apache 2.0. See LICENSE.
Metadata
Release files for talkops-alertmanager-mcp-server 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| talkops_alertmanager_mcp_server-0.2.1.tar.gz | 206.0 kB | With provenance | Details for talkops_alertmanager_mcp_server-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| talkops_alertmanager_mcp_server-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for talkops_alertmanager_mcp_server-0.2.1-py3-none-any.whl |
Total release size: 294.7 kB
Release files / talkops_alertmanager_mcp_server-0.2.1.tar.gz
| Download URL | talkops_alertmanager_mcp_server-0.2.1.tar.gz |
|---|---|
| Size | 206.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
985b53e6f78b6596a6413cff917396527973e1817a5b1b02881afa6b7b811dff
|
|
BLAKE2b-256 checksum How to use checksums |
d99bef474d5a5e8da0253688628ed38ddfb1466b010d3be89760b78b11c88279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / talkops_alertmanager_mcp_server-0.2.1-py3-none-any.whl
| Download URL | talkops_alertmanager_mcp_server-0.2.1-py3-none-any.whl |
|---|---|
| Size | 88.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e572dc791aaca385b9a65c28673ae083ea2e26aa3054c9e27216e8f0abe13108
|
|
BLAKE2b-256 checksum How to use checksums |
b0c06bd8e218a3ca0f51c56e178d9004221cbe095546aa531c3d3530ba96f7d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for talkops-alertmanager-mcp-server 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for talkops_alertmanager_mcp_server-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.