原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Devops MCP

作者:NotHarshhaa版本 2.1.1i★ –i在你的电脑上运行
注册名称io.github.NotHarshhaa/devops-mcp

安装

概览

作者提供的说明(英文原文)

Unified MCP server for Kubernetes, ArgoCD, Prometheus, PagerDuty, and Loki

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具
  • 你需要填写:ARGOCD_TOKEN, PROMETHEUS_BEARER_TOKEN, PAGERDUTY_TOKEN, LOKI_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: KUBECONFIG, K8S_CONTEXT, ARGOCD_SERVER, ARGOCD_TOKEN, PROMETHEUS_URL, PROMETHEUS_BEARER_TOKEN, PAGERDUTY_TOKEN, PAGERDUTY_USER_EMAIL, LOKI_URL, LOKI_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "devops": {
      "command": "npx",
      "args": [
        "-y",
        "@notharshhaa/devops-mcp"
      ],
      "env": {
        "KUBECONFIG": "your-value",
        "K8S_CONTEXT": "your-value",
        "ARGOCD_SERVER": "your-value",
        "ARGOCD_TOKEN": "your-value",
        "PROMETHEUS_URL": "your-value",
        "PROMETHEUS_BEARER_TOKEN": "your-value",
        "PAGERDUTY_TOKEN": "your-value",
        "PAGERDUTY_USER_EMAIL": "your-value",
        "LOKI_URL": "your-value",
        "LOKI_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add devops --env KUBECONFIG=your-value --env K8S_CONTEXT=your-value --env ARGOCD_SERVER=your-value --env ARGOCD_TOKEN=your-value --env PROMETHEUS_URL=your-value --env PROMETHEUS_BEARER_TOKEN=your-value --env PAGERDUTY_TOKEN=your-value --env PAGERDUTY_USER_EMAIL=your-value --env LOKI_URL=your-value --env LOKI_TOKEN=your-value -- npx -y @notharshhaa/devops-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "devops": {
      "command": "npx",
      "args": [
        "-y",
        "@notharshhaa/devops-mcp"
      ],
      "env": {
        "KUBECONFIG": "your-value",
        "K8S_CONTEXT": "your-value",
        "ARGOCD_SERVER": "your-value",
        "ARGOCD_TOKEN": "your-value",
        "PROMETHEUS_URL": "your-value",
        "PROMETHEUS_BEARER_TOKEN": "your-value",
        "PAGERDUTY_TOKEN": "your-value",
        "PAGERDUTY_USER_EMAIL": "your-value",
        "LOKI_URL": "your-value",
        "LOKI_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "devops": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@notharshhaa/devops-mcp"
      ],
      "env": {
        "KUBECONFIG": "your-value",
        "K8S_CONTEXT": "your-value",
        "ARGOCD_SERVER": "your-value",
        "ARGOCD_TOKEN": "your-value",
        "PROMETHEUS_URL": "your-value",
        "PROMETHEUS_BEARER_TOKEN": "your-value",
        "PAGERDUTY_TOKEN": "your-value",
        "PAGERDUTY_USER_EMAIL": "your-value",
        "LOKI_URL": "your-value",
        "LOKI_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • KUBECONFIG env
    Path to Kubernetes kubeconfig file
  • K8S_CONTEXT env
    Kubernetes context to use
  • ARGOCD_SERVER env
    ArgoCD server URL
  • ARGOCD_TOKEN 机密 env
    ArgoCD authentication token
  • PROMETHEUS_URL env
    Prometheus server URL
  • PROMETHEUS_BEARER_TOKEN 机密 env
    Prometheus bearer token
  • PAGERDUTY_TOKEN 机密 env
    PagerDuty API token
  • PAGERDUTY_USER_EMAIL env
    PagerDuty user email for mutations requiring From header
  • LOKI_URL env
    Loki server URL
  • LOKI_TOKEN 机密 env
    Loki authentication token

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 NotHarshhaa 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 1387 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1387 个服务器的 62% 更新
  • 基础检查结果等于或优于此分类中其他 1387 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Devops MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ARGOCD_TOKEN, PROMETHEUS_BEARER_TOKEN, PAGERDUTY_TOKEN, LOKI_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(2.1.1)于32天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

电脑或云端★ 34,245MIT3天前更新
安装

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

在你的电脑上运行★ 10,225MIT15天前更新
安装

Cloudflare MCP

作者:cloudflare

Cloudflare MCP servers

在云端运行★ 4,446Apache-2.014个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

devops-mcp

Unified MCP server for DevOps engineers — query and manage Kubernetes, ArgoCD, Prometheus, and PagerDuty from any MCP-compatible AI agent.


What is this?

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:

PrefixProviderTransport
k8s__*Kubernetes (via kubeconfig or in-cluster SA)client-go
argo__*ArgoCDREST API
prom__*PrometheusHTTP API (PromQL)
pd__*PagerDutyREST API v2
helm__*HelmCLI (helm binary)
devops__*Cross-provider incident debuggingAggregates all providers
logs__*LokiHTTP API (LogQL)

Quick start

Claude Desktop (stdio — recommended)

Add this to ~/.config/claude/claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{

"mcpServers": { "devops": { "command": "npx", "args": ["-y", "@notharshhaa/devops-mcp@latest"], "env": { "KUBECONFIG": "/home/you/.kube/config", "ARGOCD_SERVER": "https://argocd.company.com", "ARGOCD_TOKEN": "your-argocd-token", "PROMETHEUS_URL": "http://prometheus.monitoring:9090", "PAGERDUTY_TOKEN": "your-pd-api-token", "PAGERDUTY_USER_EMAIL": "you@company.com", "LOKI_URL": "http://loki.monitoring:3100", "LOKI_TOKEN": "your-loki-token" } } } }

Restart Claude Desktop. The devops server will appear in the tools list.

Claude Code (CLI)
claude mcp add devops-mcp -e KUBECONFIG=$HOME/.kube/config \

-e ARGOCD_SERVER=https://argocd.company.com \ -e ARGOCD_TOKEN=... \ -e PROMETHEUS_URL=http://prometheus:9090 \ -e PAGERDUTY_TOKEN=... \ -e LOKI_URL=http://loki.monitoring:3100 \ -e LOKI_TOKEN=... \ -- npx -y @notharshhaa/devops-mcp@latest

Local dev / test

Requires Node.js 20 or newer.

npx @notharshhaa/devops-mcp

or clone and run:

git clone https://github.com/NotHarshhaa/devops-mcp cd devops-mcp npm install cp .env.example .env # fill in your values npm run dev


Configuration

All config is via environment variables. Only set the ones for providers you actually use — providers with missing config are silently skipped.

# ── Kubernetes ────────────────────────────────────────────────

KUBECONFIG=/home/user/.kube/config # omit to use in-cluster service account K8S_CONTEXT=my-prod-context # optional: pin a specific context K8S_ALLOWED_NAMESPACES=default,backend # optional: restrict namespace access

── ArgoCD ───────────────────────────────────────────────────

ARGOCD_SERVER=https://argocd.company.com ARGOCD_TOKEN=eyJhbGci... # argocd account generate-token

── Prometheus ───────────────────────────────────────────────

PROMETHEUS_URL=http://prometheus:9090 PROMETHEUS_BEARER_TOKEN= # optional: for authenticated Prometheus

── PagerDuty ────────────────────────────────────────────────

PAGERDUTY_TOKEN=your-api-v2-token PAGERDUTY_USER_EMAIL=you@company.com # required for PagerDuty incident mutations (From header)

── Loki ───────────────────────────────────────────────────

LOKI_URL=http://loki.monitoring:3100 LOKI_TOKEN=your-loki-token

── Stateless Streamable HTTP ────────────────────────────────

For stdio mode (default): no transport config needed

MCP_HTTP_HOST=127.0.0.1 # use 0.0.0.0 inside a container PORT=3000 MCP_AUTH_TOKEN=shared-secret # optional static Bearer token MCP_REQUEST_STATE_SECRET=32+-byte-secret # optional MRTR signing key shared by all replicas MCP_ALLOWED_HOSTS=localhost,127.0.0.1 # required with non-loopback binding MCP_ALLOWED_ORIGINS= # optional browser Origin hostname allowlist MCP_CACHE_TTL_MS=60000 # discovery/tools catalog TTL; 0 disables caching

── Safety ───────────────────────────────────────────────────

DEVOPS_MCP_DRY_RUN=false # true = block all mutations globally DEVOPS_MCP_AUDIT_LOG=/var/log/devops-mcp-audit.jsonl


Tool reference

All tools follow a three-tier safety model:

  • Read — safe, no side effects, no confirmation needed
  • Mutate — defaults to dry_run: true; set dry_run: false to execute
  • Destructive — requires confirm: true, or a 2026-07-28 client can complete the server's interactive MRTR confirmation
Kubernetes (k8s__*)
ToolTierDescription
k8s__list_podsreadList pods with status, restarts, node, age
k8s__get_pod_logsreadTail or stream logs from a pod container
k8s__describe_resourcereadFull describe for any resource type (pod, service, configmap, secret [values auto-redacted], deployment, statefulset, daemonset, job, cronjob)
k8s__get_eventsreadCluster or namespace events, filterable by reason
k8s__list_deploymentsreadDeployments with replica counts, rollout health, and container images
k8s__get_resource_usagereadCPU/mem usage per pod via metrics-server
k8s__get_node_statusreadNode health, conditions, capacity, allocatable resources, taints
k8s__get_network_policiesreadNetwork policies with pod selectors and ingress/egress rules
k8s__get_ingressesreadIngress resources with hosts, paths, backends, TLS config
k8s__list_cronjobsreadCronJobs with schedule, last run, active jobs, suspend status
k8s__get_cronjob_statusreadDetailed CronJob status with recent job history
k8s__diff_resourcereadCompare current resource state vs last-applied-configuration
k8s__get_hpareadHorizontalPodAutoscaler with current/target metrics and scaling status
k8s__list_pvcsreadPersistentVolumeClaims with status, capacity, storage class
k8s__list_servicesreadServices with type, ports, selectors, clusterIP, endpoints
k8s__list_contextsreadAll kubeconfig contexts and the active one
k8s__switch_contextmutatePreview a context selection; set K8S_CONTEXT and restart to apply it safely
k8s__scale_deploymentmutateScale replicas with dry-run diff preview
k8s__apply_manifestmutateApply a manifest string with server-side dry-run
k8s__rollout_restartmutateTrigger rolling restart of a deployment or statefulset
k8s__delete_resourcedestructiveDelete a named resource (pod, service, configmap, secret, deployment, statefulset, daemonset, job, cronjob) — requires direct or interactive confirmation
ArgoCD (argo__*)
ToolTierDescription
argo__list_appsreadAll apps with health, sync status, source repo
argo__get_appreadFull spec and status for one application
argo__get_app_diffreadLive diff between git and cluster state
argo__get_app_historyreadDeployment history with git SHAs and timestamps
argo__get_resource_treereadFull owned resource tree for an app
argo__sync_appmutateTrigger sync — supports dry-run, prune, force
argo__rollback_appmutatePreview rollback to a history revision; set dry_run: false to execute
argo__terminate_opmutatePreview cancellation of an in-progress sync; set dry_run: false to execute
Prometheus (prom__*)
ToolTierDescription
prom__queryreadInstant PromQL query with label + value output
prom__query_rangereadRange query with step, returns time-series data
prom__list_alertsreadAll alert rules with state (firing / pending / inactive)
prom__get_firing_alertsreadOnly currently firing alerts with duration
prom__list_targetsreadAll scrape targets with health and last scrape
prom__label_valuesreadEnumerate values for a given label name
prom__metric_metadatareadType, help text, and unit for a metric
prom__compare_periodsread📈 Compare metrics between two time windows — detect before/after deployment changes
prom__slo_statusread🎯 SLO compliance — error budget remaining, burn rate, time to exhaustion
prom__summarize_service_healthread📊 Smart summary - human-readable service health metrics including latency changes, error rate vs SLO, and traffic patterns

Example usage:

# Get a human-readable health summary

prom__summarize_service_health(service="payments", timeframeMinutes=30, sloThreshold=0.05)

What it outputs:

  • Latency: "Latency increased: 120ms → 480ms (+300%)" or "Latency stable: 125ms"
  • Error rate: "Error rate crossed SLO (5%): 7.2%" or "Error rate within SLO: 2.1%"
  • Traffic: "Traffic dropped: 500 → 350 req/s (-30%)" or "Traffic spike detected (+150%)"
  • Overall assessment: Summary of issues and positive indicators

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.

Loki (logs__*)
ToolTierDescription
logs__get_recent_errorsreadGet recent error logs from Loki for debugging incidents
logs__searchreadSearch logs in Loki with custom query for root cause analysis

Example usage:

# Get recent error logs

logs__get_recent_errors(service="payments", namespace="default", minutes=30, limit=50)

Search logs with custom query

logs__search(query='{service="payments"} |= level="error"', limit=100)

Why this matters:

  • Metrics tell what: Prometheus shows you that latency increased or error rate crossed SLO
  • Logs tell why: Loki shows you the actual error messages, stack traces, and context around failures
  • Complete debugging: Without logs, you can see that something is broken but not understand the root cause

Output format:

  • Structured log entries with timestamp, message, service, namespace, and extracted log levels
  • Error count summaries and filtering
  • Raw LogQL results for detailed analysis

This makes incident investigation complete by combining the "what" (metrics) with the "why" (logs).

PagerDuty (pd__*)
ToolTierDescription
pd__list_incidentsreadOpen incidents with severity, status, assignee
pd__get_incidentreadFull detail with alerts, notes, timeline
pd__who_is_oncallreadCurrent on-call per schedule or escalation policy
pd__list_servicesreadAll services with integration keys and status
pd__get_log_entriesreadAudit log for an incident (all state changes)
pd__acknowledge_incidentmutatePreview acknowledgement; set dry_run: false to execute
pd__add_notemutatePreview appending a note; set dry_run: false to execute

| pd__escalate_incident | destructive | Escalate to a different policy — requires direct or interactive confirmation

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx