MCP Server for Kubernetes cluster management, diagnosis and basic monitoring.
https://github.com/wenhuwang/mcp-k8s-eyeYou're deep in a troubleshooting session, bouncing between kubectl describe pod commands and asking Claude "what does this error mean?" There's a better way—let your AI assistant directly interact with your Kubernetes cluster.
Every time you hit a K8s issue, you're doing the same dance:
This breaks your flow and wastes cognitive energy on mechanical tasks instead of solving the actual problem.
mcp-k8s-eye bridges this gap by giving your AI assistant native Kubernetes access. Instead of describing your cluster state, your AI can directly inspect, diagnose, and even fix issues.
Before:
You: "My pod is stuck in pending state"
AI: "Can you run kubectl describe pod and share the output?"
You: *runs command, copies output*
AI: "I see the issue. Can you check node resources with kubectl top nodes?"
You: *runs another command*
After:
You: "My pod is stuck in pending state"
AI: *directly inspects pod, checks node resources, analyzes events*
AI: "Found the issue - insufficient CPU on nodes. Pod needs 2 cores but max available is 1.5. Shall I scale down another deployment to free resources?"
Deployment Issues: Ask "Why isn't my deployment rolling out?" and watch your AI analyze replica status, pod conditions, resource constraints, and recent events—all in one response.
Service Connectivity: Instead of manually tracing service→endpoint→pod chains, your AI can instantly map the entire connection path and identify where it breaks.
Resource Optimization: Get AI-driven recommendations based on actual usage patterns: "Your staging namespace is using 40% more memory than needed. I can optimize these 6 deployments."
Webhook Debugging: When admission controllers fail, your AI can analyze webhook configurations, check referenced services, and validate certificates—tasks that normally require multiple kubectl commands and deep K8s knowledge.
This isn't just kubectl with a chat interface. You get intelligent analysis that would take you significant time to piece together manually:
Two deployment modes match your workflow:
Existing kubeconfig: Uses your current cluster access—no additional authentication setup required.
Flexible transport: Choose between stdio for local development or HTTP/SSE for shared team access.
# Clone and build
git clone https://github.com/wenhuwang/mcp-k8s-eye.git
cd mcp-k8s-eye
go build -o mcp-k8s-eye
# Add to your MCP client config
{
"mcpServers": {
"k8s-eye": {
"command": "/path/to/mcp-k8s-eye",
"env": {
"HOME": "/your/home/dir"
}
}
}
}
Your AI assistant now has direct cluster access. Ask it to diagnose issues, scale deployments, check resource usage, or analyze any K8s resource—without leaving your chat interface.
Transform your Kubernetes troubleshooting from a series of manual commands into natural conversation with an AI that can see and interact with your cluster directly.