Kubernetes MCP 7e7df960

MCP运维云端

提供方 Stonepusher

运维云端 未标注 无需鉴权 社区 / 第三方 Claude

一个通过Model Context Protocol为Claude等客户端提供Kubernetes集群和Helm全面访问权限的服务,包含73种工具,涵盖Pods、Deployments、Services、Config、Secrets、Events、Logs、Exec、Port-forwarding、Manifest应用/删除、Helm生命周期管理等功能。

一句话选型结论

按资料字段整理

Kubernetes MCP 7e7df960 属于运维云端类 MCP 服务器,传输方式未标注,无需鉴权,可直接接入 Claude,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式未标注 鉴权无需鉴权 部署方式未标注
GitHub 星标 0 仓库热度,无公开仓库时显示未标注
工具数 73 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量73暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

Kubernetes管理TypeScript本地部署集群管理Helm集成DevOps工具容器编排

安装与配置

未标注 无需鉴权
上游未给出传输方式
  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 73 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 73 个工具,覆盖面较广,能满足多种调用。
  • 已适配 Claude,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Kubernetes MCP 7e7df960当前 73 未标注 未标注 无 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方Stonepusher上游标注的维护方 Stonepusher
分类运维云端本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

8.6 KB
来自项目仓库与上游目录的原文,未做删改

kubernetes-mcp

A Model Context Protocol server that gives Claude (or any MCP client) full access to a Kubernetes cluster and Helm. Exposes 73 tools covering pods, deployments, services, config, secrets, events, logs, exec, port-forwarding, manifest apply/delete, Helm lifecycle management, nodes, workloads, storage, ingress, batch jobs, rollouts, RBAC, kubeconfig contexts, metrics, HPAs, and CRDs.

Prerequisites

  • Node.js 18+
  • kubectl configured with a valid kubeconfig
  • helm 3.x in PATH

Installation```bash

git clone https://github.com/Stonepusher/kubernetes-mcp.git
cd kubernetes-mcp
npm install
npm run build


## Usage with Claude Code

A `.mcp.json` is included in the repo root. When you open the project directory in Claude Code the `kubernetes` server is registered automatically. Run `/mcp` inside Claude Code to confirm it is active, then talk to Claude naturally:

> "List all pods in the default namespace"
> "Scale the echo-server deployment to 3 replicas"
> "Show me the logs from the nginx pod"
> "Install bitnami/nginx as my-release in the staging namespace"
> "What CRDs are installed in this cluster?"
> "Show me all ClusterRoles and their rule counts"

### Manual registration

To register the server globally (outside this directory) add the following to your Claude Code MCP settings:```json
{
  "mcpServers": {
    "kubernetes": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/kubernetes-mcp/dist/index.js"]
    }
  }
}

Tools

Kubernetes — core resources

Tool Description
k8s_list_namespaces List all namespaces
k8s_list_pods List pods in a namespace (optional label selector)
k8s_get_pod Get full details of a pod
k8s_list_deployments List deployments in a namespace
k8s_get_deployment Get full details of a deployment
k8s_scale_deployment Scale a deployment to N replicas
k8s_list_services List services in a namespace
k8s_get_service Get full details of a service
k8s_list_configmaps List ConfigMaps in a namespace
k8s_get_configmap Get a ConfigMap including its data
k8s_list_secrets List Secrets in a namespace (names/types only)
k8s_get_secret Get a Secret (values are base64-encoded)
k8s_get_events Get events in a namespace, optionally filtered by object name

Kubernetes — operations

Tool Description
k8s_get_pod_logs Stream or tail logs from a pod container
k8s_exec Execute a command inside a running pod
k8s_port_forward_start Start a local port-forward tunnel to a pod
k8s_port_forward_list List active port-forward sessions
k8s_port_forward_stop Stop a port-forward session
k8s_apply_manifest Apply a YAML/JSON manifest (kubectl apply -f -)
k8s_delete_manifest Delete resources defined in a manifest
k8s_delete_resource Delete any resource by type, name, and namespace (no manifest needed)

Kubernetes — nodes

Tool Description
k8s_list_nodes List all nodes with status, roles, and version info
k8s_get_node Get full details of a node
k8s_cordon_node Cordon a node to prevent new pod scheduling
k8s_uncordon_node Uncordon a node to re-enable pod scheduling
k8s_drain_node Drain a node by evicting all pods

Kubernetes — workloads

Tool Description
k8s_list_daemonsets List DaemonSets in a namespace
k8s_get_daemonset Get full details of a DaemonSet
k8s_list_statefulsets List StatefulSets in a namespace
k8s_get_statefulset Get full details of a StatefulSet

Kubernetes — batch

Tool Description
k8s_list_jobs List Jobs in a namespace
k8s_get_job Get full details of a Job
k8s_list_cronjobs List CronJobs in a namespace
k8s_get_cronjob Get full details of a CronJob
k8s_suspend_cronjob Suspend a CronJob to stop it scheduling new Jobs
k8s_resume_cronjob Resume a suspended CronJob

Kubernetes — rollouts

Tool Description
k8s_rollout_restart Trigger a rolling restart of a Deployment, DaemonSet, or StatefulSet
k8s_rollout_status Check rollout status and wait for completion
k8s_rollout_undo Roll back to a previous revision

Kubernetes — storage

Tool Description
k8s_list_persistent_volumes List all PersistentVolumes
k8s_get_persistent_volume Get full details of a PersistentVolume
k8s_list_persistent_volume_claims List PersistentVolumeClaims in a namespace
k8s_get_persistent_volume_claim Get full details of a PersistentVolumeClaim
k8s_list_storage_classes List all StorageClasses
k8s_get_storage_class Get full details of a StorageClass

Kubernetes — networking

Tool Description
k8s_list_ingresses List Ingresses in a namespace
k8s_get_ingress Get full details of an Ingress

Kubernetes — autoscaling

Tool Description
k8s_list_hpas List HorizontalPodAutoscalers in a namespace
k8s_get_hpa Get full details of a HorizontalPodAutoscaler

Kubernetes — RBAC

Tool Description
k8s_list_cluster_roles List all ClusterRoles
k8s_get_cluster_role Get full details of a ClusterRole
k8s_list_cluster_role_bindings List all ClusterRoleBindings
k8s_get_cluster_role_binding Get full details of a ClusterRoleBinding
k8s_list_roles List Roles in a namespace
k8s_get_role Get full details of a Role
k8s_list_role_bindings List RoleBindings in a namespace
k8s_get_role_binding Get full details of a RoleBinding

Kubernetes — custom resources

Tool Description
k8s_list_crds List all CustomResourceDefinitions
k8s_get_crd Get full details of a CustomResourceDefinition

Kubernetes — contexts & metrics

Tool Description
k8s_list_contexts List all kubeconfig contexts and show which is active
k8s_use_context Switch the active kubeconfig context
k8s_top_nodes Show CPU/memory usage for all nodes (requires metrics-server)
k8s_top_pods Show CPU/memory usage for pods in a namespace (requires metrics-server)

Helm

Tool Description
helm_list List releases (single namespace or all)
helm_install Install a chart
helm_upgrade Upgrade (or install) a release
helm_rollback Roll back a release to a previous revision
helm_uninstall Uninstall a release
helm_get_values Get values for an installed release
helm_history Get revision history of a release
helm_show_chart_values Show default values for a chart before installing
helm_repo_add Add a Helm chart repository
helm_repo_update Update local Helm repository cache

Development```bash

npm run build # compile TypeScript → dist/index.js via esbuild
npm run dev # rebuild on file changes
npm run typecheck # tsc --noEmit (type-check only, no emit)
npm test # smoke test — exercises all 73 tools against a live cluster


### Smoke test

`npm test` runs `test/smoke-test.mjs`, which spawns the MCP server over stdio and exercises all read-only tools against the currently configured cluster. It discovers real resource names dynamically (no hardcoded names) and skips dependent tests gracefully when resources are not found. Write operations (`k8s_rollout_restart`, `k8s_use_context`, etc.) are hard-skipped.```
Kubernetes MCP Server — Smoke Test
==================================================

── Phase 1: Handshake ──────────────────────────────────────
  [PASS] initialize — serverInfo.name === "kubernetes"

── Phase 2: Tool inventory ─────────────────────────────────
  [PASS] tools/list — count === 73

── Phase 3: Tool assertions ────────────────────────────────
  [PASS] k8s_list_namespaces — returns non-empty array
  [PASS] k8s_list_pods — non-empty array in kube-system
  ...
==================================================
Results  (7.3s elapsed)
  Passed : 55
  Failed : 0
  Skipped: 10

Build notes

@kubernetes/client-node v1.x ships ~54 MB of generated TypeScript types that OOM the TypeScript compiler. The project uses esbuild to bundle to a single CJS file (dist/index.js) without type-checking overhead. Use npm run typecheck separately if you need full type validation.

License

MIT

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
Kubernetes MCP 7e7df960 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Kubernetes MCP 7e7df960 怎么在 Claude 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Kubernetes MCP 7e7df960 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Kubernetes MCP 7e7df960 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Kubernetes MCP 7e7df960 支持哪些客户端?

资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Kubernetes MCP 7e7df960 能提供哪些能力?

资料显示约 73 个工具;能力标签包括 Kubernetes管理、集群管理、TypeScript、Claude、容器编排。具体工具清单以官方文档为准。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。