k8s-mcp-server
by alexei-led·★ 209·Score 51
K8s MCP Server enables Claude to securely execute Kubernetes commands via MCP protocol.
Overview
K8s MCP Server is a Docker-based server implementing Anthropic's Model Context Protocol that enables Claude to run Kubernetes CLI tools (kubectl, istioctl, helm, argocd) in a secure, containerized environment. It provides a bridge between language models and essential Kubernetes management tools, allowing AI systems to assist with cluster management, troubleshooting, and deployments through natural language commands. The server supports multiple transport protocols including stdio and HTTP, and is designed with security in mind, running as a non-root user with command validation.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you need Claude to interact with Kubernetes clusters securely, especially when you want to leverage AI assistance for cluster management without exposing credentials directly to AI.
When NOT to choose this
Avoid if you need support for other container orchestration platforms like Docker Swarm or Nomad, or if you require fine-grained access control beyond what kubectl provides.
Tools this server exposes
4 tools extracted from the READMEkubectlExecute Kubernetes commands to manage clusters, deployments, and resources.
helmDeploy and manage applications using Helm charts.
istioctlManage and troubleshoot Istio service mesh configurations.
argocdManage GitOps applications with ArgoCD.
Comparable tools
Installation
Quick Start with Claude Desktop
- Create or update your Claude Desktop configuration file:
- **macOS**: Edit $HOME/Library/Application Support/Claude/claude_desktop_config.json - **Windows**: Edit %APPDATA%\Claude\claude_desktop_config.json - **Linux**: Edit $HOME/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"kubernetes": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/Users/YOUR_USER_NAME/.kube:/home/appuser/.kube:ro",
"ghcr.io/alexei-led/k8s-mcp-server:latest"
]
}
}
}- Restart Claude Desktop to activate the MCP server connection.
FAQ
- What Kubernetes tools are included in the MCP server?
- The server includes kubectl, helm, istioctl, and argocd, along with common Unix tools like jq, grep, and sed for command piping.
- Does the MCP server support cloud providers?
- Yes, it has native support for AWS EKS, Google GKE, and Azure AKS with specific configuration options for each cloud provider.
Compare k8s-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.