TalkOps Alertmanager MCP Server & Agent Plugin (v0.2.0)
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.
Architecture: Skill Layer vs. Execution Layer
talkops-alertmanager-mcp-server strictly separates procedural SRE playbooks (Agent Skills) from deterministic API execution (FastMCP server):
src/alertmanager-mcp-server/
├── plugin.json # Agent Plugins v1.0.0 manifest (talkops-alertmanager v0.2.0)
├── mcp.json # Default stdio MCP server wiring (read-only by default)
├── skills/ # 5 Progressive-Disclosure Agent Skills (4 scripts, 11 references)
│ ├── triaging-alertmanager-alerts/
│ ├── diagnosing-missed-notifications/
│ ├── managing-alert-silences/
│ ├── validating-alertmanager-routing/
│ └── auditing-alertmanager-governance/
└── alertmanager_mcp_server/ # FastMCP Execution Plane
├── domain/ # Matcher grammar, recursive route tree, inhibition algebra, SP001-SP010
├── services/ # Multi-backend Alertmanager v2 HTTP client & /metrics exposition parser
├── resources/ # 10 live am:// URI resources (deeply redacted)
└── tools/ # 14 tools across 4 selectable toolsets (all <= 8 params, 0 prompts)
5 Bundled Agent Skills (skills/)
| Skill Directory | Purpose | Offline Scripts (scripts/) |
Reference Guides (references/) |
|---|---|---|---|
triaging-alertmanager-alerts |
Structured on-call alert triage, storm correlation, inhibition awareness, and shift handovers | (uses am_summarize_oncall) |
severity-response-matrix.md, handover-template.md |
diagnosing-missed-notifications |
6-gate missed-notification decision tree across Prometheus firing state, route tree, mute intervals, inhibition, silences, and receiver /metrics |
(uses am_explain_routing & am_check_notification_health) |
notification-pipeline-decision-tree.md, integration-failure-catalog.md |
managing-alert-silences |
Safe maintenance window planning, blast-radius preview, SP001–SP010 policy enforcement, atomic in-place updates, and controlled expiration |
plan_maintenance_window.py, validate_silence_request.py |
silence-policy.md, matcher-cookbook.md |
validating-alertmanager-routing |
Static Alertmanager YAML linting (LINT001–LINT010), recursive continue: true route simulation, and time-interval testing |
lint_alertmanager_config.py, test_routes.py |
config-lint-rules.md, routing-best-practices.md |
auditing-alertmanager-governance |
Fleet governance audit across default-route leakage, missing summary/runbook_url annotations, Watchdog health, and silence debt |
(uses am_audit_alert_hygiene & am_audit_silences) |
alert-hygiene-standards.md, governance-checklist.md, governance-report-template.md |
14 MCP Tools Across 4 Selectable Toolsets
Control exposed toolsets via --toolsets or MCP_TOOLSETS (all or comma-separated triage,routing,silences,governance). Mutating tools are unregistered when MCP_ALLOW_WRITE=false (the default).
| Toolset | Tool | Access | Max Params | Description |
|---|---|---|---|---|
triage |
am_list_alerts |
Read-only | 8 | Query alerts from Alertmanager with full matcher grammar (=, !=, =~, !~), receiver/state filters, and pagination |
triage |
am_list_alert_groups |
Read-only | 6 | List Alertmanager dispatch groups from /api/v2/alerts/groups grouped by route group_by labels |
triage |
am_summarize_oncall |
Read-only | 5 | Generate a structured on-call triage summary of active and suppressed alerts filtered by env, service, team, or severity |
routing |
am_explain_routing |
Read-only | 5 | Simulate Alertmanager's nested routing tree (continue, inherited group_by/timers, mute_time_intervals) and live inhibition rules for labels or a live fingerprint |
routing |
am_check_notification_health |
Read-only | 2 | Inspect Alertmanager readiness, config reload status, HA gossip cluster peers, and /metrics receiver delivery failure counters |
routing |
am_push_test_alert |
Write (confirm=True) |
6 | Push a time-bounded synthetic test alert tagged with mcp_test=true to verify end-to-end receiver delivery |
silences |
am_list_silences |
Read-only | 7 | List silences by state (active, pending, expired), matcher filter, created_by, or comment substring |
silences |
am_preview_silence |
Read-only | 7 | Dry-run a silence against active alerts, affected receivers, overlapping silences, and SilencePolicy (SP001–SP010) |
silences |
am_create_silence |
Write | 8 | Create a silence after enforcing SilencePolicy (SP001–SP010), overlapping-silence deduplication, and blast-radius confirmation |
silences |
am_silence_alert |
Write | 8 | Derive scoped matchers (instance or service) from a firing alert's fingerprint or labels and create a policy-validated silence |
silences |
am_update_silence |
Write | 7 | Atomically update/extend an active silence in-place (POST /api/v2/silences with id), enforcing the total lifetime cap (SP007) |
silences |
am_expire_silence |
Destructive (confirm=True) |
5 | Expire an active silence after previewing how many suppressed alerts will immediately resume paging |
governance |
am_audit_alert_hygiene |
Read-only | 5 | Audit active alerts for default-route leakage, missing summary/runbook_url annotations, invalid severities, chronic long-firing alerts, and Watchdog presence |
governance |
am_audit_silences |
Read-only | 3 | Audit silence history, active silence policy compliance (SP001–SP009), stale 0-match silences, and silences expiring soon |
10 Live am:// Resources
| URI | Description |
|---|---|
am://backends |
Configured Alertmanager backends with live health, version, and default flag |
am://backends/{backend_id} |
Detailed status, readiness, version, uptime, and HA gossip cluster peers for {backend_id} |
am://backends/{backend_id}/config |
Deeply redacted Alertmanager YAML configuration, nested routing tree, inhibition rules, and time intervals |
am://backends/{backend_id}/receivers |
Configured receivers (Slack, PagerDuty, email, webhook, OpsGenie) with redacted integration credentials |
am://backends/{backend_id}/alerts/active |
Bounded live snapshot of active firing alerts on {backend_id} |
am://backends/{backend_id}/alerts/groups |
Live snapshot of Alertmanager dispatch groups on {backend_id} |
am://backends/{backend_id}/alerts/{fingerprint} |
Full labels, annotations, receivers, and suppression status for alert {fingerprint} |
am://backends/{backend_id}/silences/active |
Live snapshot of active silences on {backend_id} |
am://backends/{backend_id}/silences/{silence_id} |
Full matcher details, author, comment, and status for {silence_id} |
am://audit-log |
Recent MCP-initiated operations (create/update/expire silence, push test alert, policy denials) |
Quick Start & Configuration
CLI Usage
# Default safe mode: Read-only over stdio
uv run alertmanager-mcp-server --transport stdio --alertmanager-url http://localhost:9093
# Enable mutating tools (silence creation/updates & synthetic test alerts)
uv run alertmanager-mcp-server --allow-write --alertmanager-url http://localhost:9093
# Restrict to specific toolsets
uv run alertmanager-mcp-server --read-only --toolsets triage,routing,governance
# Run over Streamable HTTP on port 8769
uv run alertmanager-mcp-server --transport http --host 0.0.0.0 --port 8769
Environment Variables
| Variable | Default | Description |
|---|---|---|
ALERTMANAGER_BASE_URL / ALERTMANAGER_URL |
http://localhost:9093 |
Single-backend Alertmanager base URL |
ALERTMANAGER_BACKENDS |
"" |
JSON array of multi-backend configs (id, base_url, auth_header, headers, path_prefix, is_default) |
MCP_ALLOW_WRITE |
false |
Set true (or pass --allow-write) to register mutating silence and test-alert tools |
MCP_READ_ONLY |
(unset) | When true, forces read-only mode (overrides MCP_ALLOW_WRITE=true) |
MCP_TOOLSETS |
all |
Comma-separated toolsets (triage,routing,silences,governance or all) |
MCP_TRANSPORT |
stdio |
Transport protocol (stdio or http) |
MCP_PORT |
8769 |
HTTP bind port when MCP_TRANSPORT=http |
AM_MAX_SILENCE_MINUTES |
1440 |
Maximum allowed silence lifetime in minutes (SP007) |
AM_SILENCE_CONFIRM_THRESHOLD |
50 |
Matched-alert blast-radius threshold requiring explicit confirmation (SP010) |
AM_AUDIT_LOG_PATH |
"" |
Optional JSONL file path for durable write audit logging |
Development & Verification
# Run full unit, tool, regression, and skill/manifest test suite
uv run pytest -v
# Run static type checking
uv run pyright .
# Build wheel and sdist
uv build
Metadata
Release files for talkops-alertmanager-mcp-server 0.2.0
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.0.tar.gz | 201.9 kB | With provenance | Details for talkops_alertmanager_mcp_server-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| talkops_alertmanager_mcp_server-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for talkops_alertmanager_mcp_server-0.2.0-py3-none-any.whl |
Total release size: 289.8 kB
Release files / talkops_alertmanager_mcp_server-0.2.0.tar.gz
| Download URL | talkops_alertmanager_mcp_server-0.2.0.tar.gz |
|---|---|
| Size | 201.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2f2e6cae2fa1729dfaf704dc9bbac556fdacc96c1edfd377181986797f18809
|
|
BLAKE2b-256 checksum How to use checksums |
b9bc846b21d2b3971c52a97a1a876053e5595b48c5220c7d8c386e67b303d537
|
| 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.0-py3-none-any.whl
| Download URL | talkops_alertmanager_mcp_server-0.2.0-py3-none-any.whl |
|---|---|
| Size | 87.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80bde6955e2fd351f30ac96ab68f3009916517490ae4d20f7685d0332ee14fdf
|
|
BLAKE2b-256 checksum How to use checksums |
61f4a9445123fc8d7928f954ced031224f6433384889237e8a04d0e06baf96c9
|
| 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.0
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.0.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.