Community
Kubernetes MCP Server
Manage Kubernetes clusters, pods, services, and deployments from your AI coding assistant.
Last reviewed Mar 2, 2026
Install
claude mcp add kubernetes --transport stdio -- npx -y mcp-server-kubernetesAvailable tools
| Tool | Description |
|---|---|
| get_pods | List pods in a namespace with status information |
| get_services | List services in a namespace |
| get_deployments | List deployments with replica status |
| apply_manifest | Apply a Kubernetes YAML manifest |
| get_logs | Retrieve logs from a pod |
What it does
The Kubernetes MCP Server connects your AI coding assistant to your Kubernetes clusters via your local kubeconfig, enabling it to inspect pods, services, and deployments, read container logs, and apply manifests. This brings cluster management directly into your development environment.
This is a community-maintained MCP server that provides essential Kubernetes operations. It reads your existing kubeconfig for cluster authentication, so it works with any Kubernetes cluster you already have access to -- whether local (minikube, kind) or remote (EKS, GKE, AKS).
Use cases
- Inspect pod statuses and logs to debug application issues in your cluster
- View deployment rollout status to verify your latest changes are running
- List services and their endpoints to understand cluster networking
- Apply Kubernetes manifests to deploy updates directly from your editor
- Check resource health across namespaces during development and testing
Getting started
- Ensure you have a valid kubeconfig at
~/.kube/configwith access to your target cluster. Verify withkubectl cluster-info. - The MCP server uses your default kubeconfig context. Switch contexts with
kubectl config use-context <context-name>before starting the server if needed. - No API keys or tokens are needed beyond your existing kubeconfig setup.
- For production clusters, ensure your kubeconfig role bindings limit the scope of operations. Consider using a read-only ClusterRole for safety when exploring production environments.
Compatibility
Related MCP servers
AWS MCP Server
Interact with AWS services including S3, Lambda, CloudWatch, and ECS from your AI coding assistant.
Context7 MCP Server
Fetch up-to-date library documentation and code examples directly into your AI coding assistant.
Docker MCP Server
Manage Docker containers, images, and builds directly from your AI coding assistant.