# devops-mcp [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/NotHarshhaa/devops-mcp  
**GitHub Stars:** 6  
**npm Downloads (last month):** 385  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/devops-mcp-2

## Description
Unified MCP server for Kubernetes, ArgoCD, Prometheus, and PagerDuty

## Tools
Capabilities this server exposes over MCP:

- **k8s__apply_manifest** — Apply a manifest string with server-side dry-run
- **k8s__delete_resource** — Delete a named resource — requires confirm: true or interactive confirmation
- **k8s__describe_resource** — Full describe for any resource type
- **k8s__diff_resource** — Compare current resource state against last-applied-configuration annotation to show drift
- **k8s__get_cronjob_status** — Detailed status of a specific cronjob including recent job history
- **k8s__get_events** — Cluster or namespace events, filterable by reason
- **k8s__get_hpa** — Get HorizontalPodAutoscaler details with metrics, replicas, and conditions
- **k8s__get_ingresses** — List ingresses with hosts, paths, backends, and TLS config
- **k8s__get_network_policies** — List network policies with podSelector, ingress/egress rules
- **k8s__get_node_status** — Get node status with conditions, capacity, allocatable, labels, and taints
- **k8s__get_pod_logs** — Get logs from a pod container
- **k8s__get_resource_usage** — CPU/mem usage per pod via metrics-server
- **k8s__list_contexts** — All kubeconfig contexts and the active one
- **k8s__list_cronjobs** — List cronjobs with schedule, suspend status, active jobs, and last run times
- **k8s__list_deployments** — Deployments with replica counts and rollout health
- **k8s__list_pods** — List pods with status, restarts, node, and age
- **k8s__list_pvcs** — List PersistentVolumeClaims with status, capacity, accessModes, and storageClass
- **k8s__list_services** — List services with type, clusterIP, ports, selector, and externalIPs
- **k8s__rollout_restart** — Trigger rolling restart of a deployment
- **k8s__scale_deployment** — Scale replicas with dry-run diff preview
- **k8s__switch_context** — Preview context selection; set K8S_CONTEXT and restart to apply safely

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "devops-mcp": {
    "command": "npx",
    "args": ["-y","@notharshhaa/devops-mcp@latest"]
  }
}
```

## Documentation

## What the devops-mcp MCP server does

The devops-mcp MCP server exposes infrastructure operations through MCP so an AI client can inspect and manage several DevOps systems from one connection. Its documented providers include Kubernetes, ArgoCD, Prometheus, PagerDuty, Helm, Loki, and cross-provider incident debugging.

Kubernetes access includes pod listings and logs, resource descriptions, events, deployments, node status, resource usage, network policies, ingresses, CronJobs, HPAs, PVCs, services, contexts, and resource diffs. ArgoCD tools expose application health, synchronization state, diffs, history, and owned resources. Prometheus access includes instant PromQL queries with label and value output.

## How it works

The server runs as a Node.js application and communicates with MCP clients over stdio by default. The README recommends launching the published npm package with `npx`; it also documents a local development flow using Node.js 20 or newer. A stateless streamable HTTP mode is available through host, port, authentication, host-allowlist, origin-allowlist, and request-state settings.

Kubernetes uses a kubeconfig or an in-cluster service account. ArgoCD uses its REST API, Prometheus uses its HTTP API, and the README identifies PagerDuty as a REST API v2 provider. Provider configuration is independent: missing configuration causes that provider to be skipped rather than preventing the whole server from starting.

Operations are divided into read, mutate, and destructive tiers. Mutating tools default to dry-run behavior where documented, while deletion requires direct or interactive confirmation. Kubernetes manifest application uses server-side dry-run, deployment scaling returns a dry-run diff, and ArgoCD synchronization, rollback, and operation termination expose preview or dry-run controls.

## Setup and configuration

For Claude Desktop, add an MCP server entry that runs `npx -y @notharshhaa/devops-mcp@latest`, then provide only the environment variables for the systems the agent should access.

Relevant settings include `KUBECONFIG`, `K8S_CONTEXT`, and `K8S_ALLOWED_NAMESPACES` for Kubernetes; `ARGOCD_SERVER` and `ARGOCD_TOKEN` for ArgoCD; `PROMETHEUS_URL` and an optional bearer token for Prometheus; and PagerDuty, Loki, HTTP transport, cache, audit, and safety settings. `DEVOPS_MCP_DRY_RUN=true` blocks mutations globally. Use `MCP_AUTH_TOKEN` when exposing the HTTP transport with a shared bearer token, and configure allowed hosts when binding beyond loopback.

## Tools and capabilities

- Inspect pod status, logs, events, deployments, nodes, services, ingresses, storage claims, autoscaling, scheduled jobs, and network policies.
- Compare Kubernetes resources with their last-applied configuration and inspect CPU or memory usage through metrics-server.
- Preview or execute deployment scaling, manifest application, rolling restarts, context changes, and resource deletion under the documented safety rules.
- Review ArgoCD application state, Git-to-cluster differences, deployment history, and resource ownership.
- Trigger ArgoCD syncs, preview rollbacks, and terminate in-progress operations with dry-run controls.
- Run instant PromQL queries against the configured Prometheus endpoint.

## Limitations and notes

The server does not require every provider to be configured, but unavailable providers cannot supply tools or data. Kubernetes resource usage depends on metrics-server.

Kubernetes context switching is intentionally indirect: the tool previews the selection, then `K8S_CONTEXT` must be set and the server restarted to apply it safely. Destructive actions such as deleting a resource require confirmation. HTTP deployments also need appropriate host, origin, authentication, and request-state configuration for the chosen topology.

_Full upstream README: https://allmcps.com/mcp/devops-mcp-2/readme_

