
A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

A Model Context Protocol server that lets AI assistants and tools query and manage Prometheus Alertmanager resources.
Prometheus Alertmanager MCP server is cataloged as an MCP server attributed to ntk148v. A Model Context Protocol server that lets AI assistants and tools query and manage Prometheus Alertmanager resources. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Prometheus Alertmanager MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
By default only 10 items are returned per request, and LLMs can iterate using offset and count parameters, with a maximum of 50 items per page to prevent context overflow.
The tenant is set via the ALERTMANAGER_TENANT environment variable, fixed at startup, and caller-supplied X-Scope-OrgId headers are ignored.
It supports stdio, http, and sse transport modes, with stdio as the default.
README.md · 7d060d6450fc · Fetched 2026-11-13 09:55:37 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Prometheus Alertmanager MCP is a Model Context Protocol (MCP) server for Prometheus Alertmanager. It enables AI assistants and tools to query and manage Alertmanager resources programmatically and securely.
ALERTMANAGER_TENANT for Mimir/Cortex)To install Prometheus Alertmanager MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @ntk148v/alertmanager-mcp-server --client claude
# Clone the repository
$ git clone https://github.com/ntk148v/alertmanager-mcp-server.git
# Set environment variables (see .env.sample)
ALERTMANAGER_URL=http://your-alertmanager:9093
ALERTMANAGER_USERNAME=your_username # optional
ALERTMANAGER_PASSWORD=your_password # optional
ALERTMANAGER_TENANT=your_tenant_id # optional, for multi-tenant setups
For multi-tenant Alertmanager deployments (e.g., Grafana Mimir, Cortex), set the tenant ID via the ALERTMANAGER_TENANT environment variable. The tenant is fixed at startup and is never taken from a request header — caller-supplied X-Scope-OrgId values are ignored to prevent a client from selecting an arbitrary tenant.
You can control how the MCP server communicates with clients using the transport options and host/port settings. These can be set either with command-line flags (which take precedence) or with environment variables.
stdio, http, or sse. Default: stdio.http or sse transports (used by the embedded uvicorn server). Default: 127.0.0.1.http or sse transports. Default: 8000.http/sse request must send Authorization: Bearer <key> or it is rejected with 401. When unset, the server logs a startup warning that the web transports are unauthenticated. Strongly recommended for any deployment reachable over a network.Security: For network-accessible deployments, always set
MCP_API_KEY. By default the server binds to loopback only (127.0.0.1); expose it on0.0.0.0only behind a trusted proxy or firewall when you require external access.
Examples:
Use environment variables to set defaults (CLI flags still override):
MCP_TRANSPORT=sse MCP_API_KEY=change-me MCP_HOST=0.0.0.0 MCP_PORT=8080 python3 -m src.alertmanager_mcp_server.server
Or pass flags directly to override env vars:
python3 -m src.alertmanager_mcp_server.server --transport http --host 127.0.0.1 --port 9000
Notes:
The stdio transport communicates over standard input/output and ignores host/port.
The http (streamable HTTP) and sse transports are served via an ASGI app (uvicorn) so host/port are respected when using those transports.
Add the server configuration to your client configuration file. For example, for Claude Desktop:
{
"mcpServers": {
"alertmanager": {
"command": "uv",
"args": [
"--directory",
"<full path to alertmanager-mcp-server directory>",
"run",
"src/alertmanager_mcp_server/server.py"
],
"env": {
"ALERTMANAGER_URL": "http://your-alertmanager:9093s",
"ALERTMANAGER_USERNAME": "your_username",
"ALERTMANAGER_PASSWORD": "your_password"
}
}
}
}
$ make install


$ docker run -e ALERTMANAGER_URL=http://your-alertmanager:9093 \
-e ALERTMANAGER_USERNAME=your_username \
-e ALERTMANAGER_PASSWORD=your_password \
-e ALERTMANAGER_TENANT=your_tenant_id \
-p 8000:8000 ghcr.io/ntk148v/alertmanager-mcp-server
{
"mcpServers": {
"alertmanager": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"ALERTMANAGER_URL",
"-e",
"ALERTMANAGER_USERNAME",
"-e",
"ALERTMANAGER_PASSWORD",
"ghcr.io/ntk148v/alertmanager-mcp-server:latest"
],
"env": {
"ALERTMANAGER_URL": "http://your-alertmanager:9093s",
"ALERTMANAGER_USERNAME": "your_username",
"ALERTMANAGER_PASSWORD": "your_password"
}
}
}
}
This configuration passes the environment variables from Claude Desktop to the Docker container by using the -e flag with just the variable name, and providing the actual values in the env object.
The MCP server exposes tools for querying and managing Alertmanager, following its API v2:
get_status()get_alerts(filter, silenced, inhibited, active, count, offset)
count: Number of alerts per page (default: 10, max: 25)offset: Number of alerts to skip (default: 0){ "data": [...], "pagination": { "total": N, "offset": M, "count": K, "has_more": bool } }get_silences(filter, count, offset)
count: Number of silences per page (default: 10, max: 50)offset: Number of silences to skip (default: 0){ "data": [...], "pagination": { "total": N, "offset": M, "count": K, "has_more": bool } }post_silence(silence_dict)delete_silence(silence_id)get_receivers()get_alert_groups(silenced, inhibited, active, count, offset)
count: Number of alert groups per page (default: 3, max: 5)offset: Number of alert groups to skip (default: 0){ "data": [...], "pagination": { "total": N, "offset": M, "count": K, "has_more": bool } }When working with environments that have many alerts, silences, or alert groups, the pagination feature helps:
offset and count parametershas_more flag indicates when additional pages are availableExample: If you have 100 alerts, the LLM can fetch them in manageable chunks (e.g., 10 at a time) and only load what's needed for analysis.
See src/alertmanager_mcp_server/server.py for full API details.
Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.
This project uses uv to manage dependencies. Install uv following the instructions for your platform.
# Clone the repository
$ git clone https://github.com/ntk148v/alertmanager-mcp-server.git
$ cd alertmanager-mcp-server
$ make setup
# Run test
$ make test
# Run in development mode
$ mcp dev src/alertmanager_mcp_server/server.py
# Install in Claude Desktop
$ make install
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Prometheus Alertmanager MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/alertmanager-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.