mcp-k8s-eye
mcp-k8s-eye is a tool that can manage kubernetes cluster and analyze workload status.
Features
Core Kubernetes Operations
Diagnostics
-  Pod diagnostics (analyze pod status, container status, pod resource utilization)
 
-  Service diagnostics (analyze service selector configuration, not ready endpoints, events)
 
-  Deployment diagnostics (analyze available replicas)
 
-  StatefulSet diagnostics (analyze statefulset service if exists, pvc if exists, available replicas)
 
-  CronJob diagnostics (analyze cronjob schedule, starting deadline, last schedule time)
 
-  Ingress diagnostics (analyze ingress class configuration, related services, tls secrets)
 
-  NetworkPolicy diagnostics (analyze networkpolicy configuration, affected pods)
 
-  ValidatingWebhook diagnostics (analyze webhook configuration, referenced services and pods)
 
-  MutatingWebhook diagnostics (analyze webhook configuration, referenced services and pods)
 
-  Node diagnostics (analyze node conditions)
 
-  Cluster diagnostics and troubleshooting
 
Monitoring
Advanced Features
Requirements
- Go 1.23 or higher
 
- kubectl configured
 
Installation
# clone the repository
git clone https://github.com/malepuppet/mcp-k8s-eye.git
cd mcp-k8s-eye
# build the binary
go build -o mcp-k8s-eye
Usage
Stdio mode
{
  "mcpServers": {
    "k8s eye": {
      "command": "YOUR mcp-k8s-eye PATH",
      "env": {
        "HOME": "USER HOME DIR"
      },
    }
  }
}
env.HOME is used to set the HOME directory for kubeconfig file.
SSE mode
- start your mcp sse server
 
- config your mcp server
 
{
  "mcpServers": {
    "k8s eye": {
      "url": "http://localhost:8080/sse",
      "env": {}
    }
  }
}
cursor tools
