Skip to content

Summary

Open-source MCP server for Kubernetes and Helm: 26 default kubectl and Helm tools, opt-in toolsets up to 209 tools for diagnostics, security, cost, GitOps and more, with read-only mode and secret redaction.

Features

  • 26 default kubectl and Helm tools covering every resource kind, CRDs included
  • Opt-in toolsets up to 209 tools: diagnostics, security, cost, GitOps, cert-manager, Velero, Istio and more
  • 14 workflow prompts such as troubleshoot_workload, security_audit and incident_response
  • Multi-cluster: every tool takes a kubeconfig context
  • Read-only mode, per-call confirmation, Secret redaction and OAuth 2.1 scopes
  • stdio or stateless HTTP via npx, pip/uvx, Docker or an in-cluster Helm chart

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "kubectl-mcp-server" tools will be available.
{
  "mcpServers": {
    "kubectl-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "kubectl-mcp-server"
      ]
    }
  }
}

Description

kubectl-mcp-server is an independent, MIT-licensed Model Context Protocol server that lets an AI assistant operate Kubernetes clusters through the kubectl and Helm you already have configured. Instead of translating a question into kubectl commands yourself, you ask why a pod is crashing, which workloads are over-provisioned or which services cannot reach a database, and the agent calls the matching tools against your current kubeconfig context. The project is listed in the CNCF Landscape.

To keep the tool list small, only the core toolset (18 generic kubectl tools that work on any resource kind, CRDs included) and helm (release lifecycle) load by default: 26 tools. Further toolsets are switched on with --toolsets or MCP_TOOLSETS: network, DNS and node diagnostics; RBAC, pod-security and secret audits; cost and right-sizing; multi-cluster queries; CRD discovery; Flux and Argo CD; cert-manager; Kyverno and Gatekeeper policies; Velero backups; KEDA; Cilium; Argo Rollouts and Flagger; Cluster API; KubeVirt; Istio; kind and vCluster, for 209 tools in total, with an optional tool-search mode for clients that cannot search tools themselves. It also ships 14 workflow prompts (troubleshooting, deployment, security audit, incident response and others) and browsable resources for contexts, namespaces, nodes and masked manifests.

It runs over stdio or stateless streamable HTTP, from npm (npx -y kubectl-mcp-server, Node.js 18+), PyPI (pip install kubectl-mcp-server or uvx, Python 3.10+) or Docker, and can be deployed in-cluster with a Helm chart. Safety controls include a read-only mode, per-call confirmation, Secret redaction and OAuth 2.1 with per-tool scopes for shared HTTP deployments. kubectl and access to a cluster are required.

Featured

Google's official MCP server for driving the gcloud CLI from natural language, with allowlist and denylist controls over which commands an agent may run.

Browse all MCP servers →