MCPHIVE

Kubernetes MCP: Documentation

Updated:

Connection

npx kubernetes-mcp-server@latest (stdio, reads ~/.kube/config by default). A Helm chart and Docker image are also available for deploying it as a remote server inside the cluster — that mode uses Streamable HTTP or SSE and an in-cluster service account instead of kubeconfig. OAuth/OIDC authorization (e.g. corporate SSO integration) needs extra setup — see the github.com/containers/kubernetes-mcp-server README.

Tools

Tools are grouped around standard Kubernetes resources: pods, deployments, services, namespaces, configuration (ConfigMap/Secret), cluster events — read, create, update, delete and scale. OpenShift-specific resources (Routes, BuildConfigs and more), unavailable in vanilla Kubernetes, are separately supported.

Agent flow

"Which pods in the production namespace aren't Running?", "scale the api-gateway deployment to 5 replicas", "show events from the last hour in the staging cluster", "delete all completed Jobs older than a day".

Note

A community project from the containers organization (Red Hat ecosystem), not an official CNCF or Kubernetes product. It gives the agent direct access to cluster-changing operations — for production, scope down the RBAC permissions of the service account the server connects with.

Pricing

Completely free and open source; you only pay for the cluster's own infrastructure.

Kubernetes MCP — Documentation