Unified MCP server for Kubernetes, ArgoCD, Prometheus, and PagerDuty
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Unified MCP server for DevOps engineers — query and manage Kubernetes, ArgoCD, Prometheus, and PagerDuty from any MCP-compatible AI agent.
devops-mcp is an open source Model Context Protocol server that gives AI agents (Claude, etc.) real-time read and write access to your infrastructure stack — all from a single install.
Instead of copy-pasting kubectl output into a chat window, you can ask:
"Why is the payments deployment in CrashLoopBackOff?" "What changed in the last ArgoCD sync for the auth app?" "Show me the p99 latency for the API gateway over the last hour." "Who's on call right now and what incidents are open?" "Debug the payments service - what's wrong with it?"
...and get live answers, sourced directly from your cluster and tooling.
Providers included:
| Prefix | Provider | Transport |
|---|---|---|
k8s__* | Kubernetes (via kubeconfig or in-cluster SA) | client-go |
argo__* | ArgoCD | REST API |
prom__* | Prometheus | HTTP API (PromQL) |
pd__* | PagerDuty | REST API v2 |
helm__* | Helm | CLI (helm binary) |
devops__* | Cross-provider incident debugging | Aggregates all providers |
logs__* | Loki | HTTP API (LogQL) |
Add this to ~/.config/claude/claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
Restart Claude Desktop. The devops server will appear in the tools list.
Requires Node.js 20 or newer.
All config is via environment variables. Only set the ones for providers you actually use — providers with missing config are silently skipped.
All tools follow a three-tier safety model:
dry_run: true; set dry_run: false to executeconfirm: true, or a 2026-07-28 client can complete the server's interactive MRTR confirmationk8s__*)| Tool | Tier | Description |
|---|---|---|
k8s__list_pods | read | List pods with status, restarts, node, age |
k8s__get_pod_logs | read | Tail or stream logs from a pod container |
k8s__describe_resource | read | Full describe for any resource type |
k8s__get_events | read | Cluster or namespace events, filterable by reason |
k8s__list_deployments | read | Deployments with replica counts and rollout health |
k8s__get_resource_usage | read | CPU/mem usage per pod via metrics-server |
k8s__get_node_status | read | Node health, conditions, capacity, allocatable resources, taints |
k8s__get_network_policies | read | Network policies with pod selectors and ingress/egress rules |
k8s__get_ingresses | read | Ingress resources with hosts, paths, backends, TLS config |
k8s__list_cronjobs | read | CronJobs with schedule, last run, active jobs, suspend status |
k8s__get_cronjob_status | read | Detailed CronJob status with recent job history |
k8s__diff_resource | read | Compare current resource state vs last-applied-configuration |
k8s__get_hpa | read | HorizontalPodAutoscaler with current/target metrics and scaling status |
k8s__list_pvcs | read | PersistentVolumeClaims with status, capacity, storage class |
k8s__list_services | read | Services with type, ports, selectors, clusterIP, endpoints |
k8s__list_contexts | read | All kubeconfig contexts and the active one |
k8s__switch_context | mutate | Preview a context selection; set K8S_CONTEXT and restart to apply it safely |
k8s__scale_deployment | mutate | Scale replicas with dry-run diff preview |
k8s__apply_manifest | mutate | Apply a manifest string with server-side dry-run |
k8s__rollout_restart | mutate | Trigger rolling restart of a deployment or statefulset |
k8s__delete_resource | destructive | Delete a named resource — requires direct or interactive confirmation |
argo__*)| Tool | Tier | Description |
|---|---|---|
argo__list_apps | read | All apps with health, sync status, source repo |
argo__get_app | read | Full spec and status for one application |
argo__get_app_diff | read | Live diff between git and cluster state |
argo__get_app_history | read | Deployment history with git SHAs and timestamps |
argo__get_resource_tree | read | Full owned resource tree for an app |
argo__sync_app | mutate | Trigger sync — supports dry-run, prune, force |
argo__rollback_app | mutate | Preview rollback to a history revision; set dry_run: false to execute |
argo__terminate_op | mutate | Preview cancellation of an in-progress sync; set dry_run: false to execute |
prom__*)| Tool | Tier | Description |
|---|---|---|
prom__query | read | Instant PromQL query with label + value output |
prom__query_range | read | Range query with step, returns time-series data |
prom__list_alerts | read | All alert rules with state (firing / pending / inactive) |
prom__get_firing_alerts | read | Only currently firing alerts with duration |
prom__list_targets | read | All scrape targets with health and last scrape |
prom__label_values | read | Enumerate values for a given label name |
prom__metric_metadata | read | Type, help text, and unit for a metric |
prom__compare_periods | read | 📈 Compare metrics between two time windows — detect before/after deployment changes |
prom__slo_status | read | 🎯 SLO compliance — error budget remaining, burn rate, time to exhaustion |
prom__summarize_service_health | read | 📊 Smart summary - human-readable service health metrics including latency changes, error rate vs SLO, and traffic patterns |
Example usage:
What it outputs:
Why this matters: Instead of raw PromQL numbers that require interpretation, this tool provides actionable insights that AI agents can use directly in responses, making monitoring data actually useful for incident investigation and communication.
logs__*)| Tool | Tier | Description |
|---|---|---|
logs__get_recent_errors | read | Get recent error logs from Loki for debugging incidents |
logs__search | read | Search logs in Loki with custom query for root cause analysis |
Example usage:
Why this matters:
Output format:
This makes incident investigation complete by combining the "what" (metrics) with the "why" (logs).
pd__*)| Tool | Tier | Description |
|---|---|---|
pd__list_incidents | read | Open incidents with severity, status, assignee |
pd__get_incident | read | Full detail with alerts, notes, timeline |
pd__who_is_oncall | read | Current on-call per schedule or escalation policy |
pd__list_services | read | All services with integration keys and status |
pd__get_log_entries | read | Audit log for an incident (all state changes) |
pd__acknowledge_incident | mutate | Preview acknowledgement; set dry_run: false to execute |
pd__add_note | mutate | Preview appending a note; set dry_run: false to execute |
pd__escalate_incident | destructive | Escalate to a different policy — requires direct or interactive confirmation |
pd__summarize_incident | read | 🚨 Incident auto-summary - what happened, affected services, probable root cause, current status |
pd__summarize_incidentExample usage:
What it outputs:
Output format:
Why this matters: Instead of manually piecing together incident details from multiple API calls, this tool provides a comprehensive, human-readable summary perfect for:
helm__*)| Tool | Tier | Description |
|---|---|---|
helm__list_releases | read | List Helm releases with status, chart, app version |
helm__get_status | read | Full status of a Helm release |
helm__get_values | read | User-supplied or computed values for a release |
helm__get_history | read | Revision history of a release |
helm__rollback | mutate | Rollback to a previous revision (dry-run by default) |
Requirements: Helm CLI binary must be available in PATH.
Example usage:
devops__*)| Tool | Tier | Description |
|---|---|---|
devops__debug_service | read | 🔥 Cross-provider incident debugging - aggregates Kubernetes, ArgoCD, Prometheus, and PagerDuty data to diagnose service issues in one command |
devops__explain_change | read | 🧠 Explain what changed - combines ArgoCD history, Kubernetes rollout history, and Prometheus anomaly window to identify cause of issues |
devops__runbook | read | 📋 Automated runbook - symptom-based diagnostic that runs targeted checks (crashloop, high-latency, oom, 5xx, pod-pending) |
devops__health_report | read | 🏥 Cluster health report - one-shot assessment across all providers with overall status (healthy/degraded/critical) |
devops__incident_timeline | read | 🕐 Incident timeline - unified event timeline across K8s, ArgoCD, Prometheus, and PagerDuty sorted chronologically |
devops__debug_serviceExample usage:
What it checks:
Output format:
This is the most powerful tool for incident investigation - it gives you a complete picture of what's wrong with a service in seconds.
devops__explain_changeExample usage:
What it analyzes:
Output format:
Problem it solves: "Everything was working yesterday… what changed?"
This tool answers that question by correlating deployment events with metric anomalies, helping you quickly identify whether a recent deployment, config change, or external factor caused the issue.
devops__runbookExample usage:
Supported symptoms:
| Symptom | What it checks |
|---|---|
crashloop | Pod status → logs (tail 50) → BackOff events → deployment health |
high-latency | p95 latency → resource usage → firing alerts → recent deploys |
oom | OOMKilled events → memory usage → pod describe → resource limits |
5xx | Error rate → Loki error logs → deployment health |
pod-pending | Scheduling events → pending pods → node capacity |
Output: Structured JSON with steps_executed[], findings[], and recommended_actions[].
devops__health_reportExample usage:
What it gathers:
Output: Overall status (healthy / degraded / critical), per-provider sections, and summary. Perfect for morning standup checks or shift handoffs.
The MCP host launches devops-mcp as a subprocess and communicates over stdin/stdout. Zero network config. Auth comes from the local environment (kubeconfig, env vars). Process lifecycle tied to Claude Desktop.
The HTTP entry serves MCP at POST /mcp using the 2026-07-28 stateless protocol. Each request gets a fresh MCP server instance, so requests can land on any replica without session affinity or shared protocol state. The same endpoint also accepts 2025-era Streamable HTTP clients in stateless compatibility mode.
Connect clients to http://127.0.0.1:3000/mcp. For a container or remote service, set MCP_HTTP_HOST=0.0.0.0 and configure MCP_ALLOWED_HOSTS with the public/proxy hostnames. Put the service behind TLS for team use.
The deprecated devops-mcp-sse binary remains as a temporary alias for the HTTP entry, but /sse, /message, and /ws now return HTTP 410. Legacy HTTP+SSE and non-standard WebSocket clients must migrate to Streamable HTTP.
initialize requirement or Mcp-Session-Id on modern requests.server/discover, per-request client metadata, and MCP-Protocol-Version are handled by the official SDK.Mcp-Method and Mcp-Name headers are validated against the JSON-RPC body for gateway routing and authorization.server/discover and tools/list advertise deterministic, public cache hints using MCP_CACHE_TTL_MS (default 60 seconds).confirm: true; modern clients may instead complete an MRTR interactive confirmation. Confirmation state is HMAC-signed, expires after five minutes, and is bound to the exact tool arguments. Global dry-run blocks before prompting.MCP_REQUEST_STATE_SECRET must be the same on every replica for MRTR retries to land anywhere. When omitted, the server derives the key from MCP_AUTH_TOKEN, or uses a process-local random key when no token is configured.The built-in MCP_AUTH_TOKEN is a static bearer-token gate, not an OAuth authorization server. For Internet-facing deployments, terminate TLS and enforce your organization’s OAuth/OIDC policy at a gateway or integrate a dedicated identity provider; do not use deprecated Dynamic Client Registration for new deployments.
A minimal docker-compose.yml is available in examples/.
devops-mcp is designed for internal use inside a trusted network. That said:
@kubernetes/client-node. Supports exec plugins (AWS EKS, GKE). In-cluster: auto-mounts SA token. Add RBAC rules scoped to your desired permissions — run devops-mcp under a dedicated ServiceAccount with minimal verbs. Context selection is fixed by K8S_CONTEXT at startup; the tool only previews changes because runtime switching would affect other callers.argocd account generate-token --account devops-mcp. Create a dedicated account in argocd-cm with apiKey capability and a role limited to read + sync.dry_run: true. The AI must explicitly pass dry_run: false — it won't do this unless the user clearly requests an action.confirm: true directly, or use a 2026-07-28 client that supports the server's MRTR confirmation request. DEVOPS_MCP_DRY_RUN=true blocks execution even after confirmation.DEVOPS_MCP_AUDIT_LOG to a file path. Every tool call is written as a JSONL line with timestamp, tool name, parameters, and outcome. Mutations and destructive calls are flagged.DEVOPS_MCP_DRY_RUN=true to block every executing mutation, even when a caller passes dry_run: false. Safe previews remain available — useful for read-only team deployments.Key architectural features:
/mcp request creates a fresh server instance; no protocol session ID or sticky load balancing.tools/list ordering and configurable public cache hints.Contributions are welcome. The most useful areas:
k8s__get_node_pressure, argo__get_app_logs)src/providers/yourprovider/ with index.ts, client.ts, and one file per resource group.src/server.ts..env.example and src/config.ts.Run against a local kind/minikube cluster for Kubernetes testing. Use DEVOPS_MCP_DRY_RUN=true to prevent accidental mutations during development.
grafana__*) — dashboards, annotations, datasourcesflux__*) — kustomizations, helm releases, image automationtfc__*) — workspace runs, state, variablesvault__*) — secret read (never write), lease statusdd__*) — metrics, monitors, eventsMIT — see LICENSE.
Built for DevOps and platform engineers who want AI that actually knows what's happening in their cluster.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/devops-mcp-2)<a href="https://allmcps.com/mcp/devops-mcp-2"><img src="https://allmcps.com/api/badge/devops-mcp-2?style=directory" alt="Devops Mcp on AllMCPs" /></a>