MCP Server Kubernetes
1,594 starsCommunity-maintained (Flux159) Kubernetes MCP server: manage K8s clusters in natural language — list and deploy resources, apply manifests, manage pods and nodes, install/uninstall Helm charts. The docs explicitly list destructive tools (kubectl_delete, uninstall_helm_chart, cleanup_pods, node_management which can drain nodes, and kubectl_generic for arbitrary kubectl commands).
- First published:2024-12-08
- data as of:
- 2026-09-30
- Licence:
- MIT
- Transport:
- stdio
- Primitives exposed:
- tools
What it can touch
Whatever cluster your current kubeconfig context points at is its entire domain: create/read/modify/delete workloads and services, drain nodes, clean up pods, install and uninstall Helm charts; kubectl_generic is close to unrestricted kubectl. It acts with your kubeconfig identity (RBAC is the ceiling).
Risk
Possibly the largest blast radius in this catalog: one wrong kubectl_delete or node drain against production is an outage, and kubectl_generic leaves almost nothing between an injection attack and your cluster. Point it at a test cluster first, use a least-privilege RBAC identity, and keep human approval on destructive tools.
Install prompt
從官方倉庫 README 取得客戶端設定片段(以 npx 啟動 mcp-server-kubernetes),加進你的 MCP 客戶端設定檔後重啟客戶端。它會使用你機器上既有的 kubectl 與 kubeconfig——先確認目前 kubeconfig 指向哪個叢集。Paste this to your agent. It deliberately contains no tool subcommands — check the tool's official docs for commands.