# mcp-k8s-eye

> mcp-k8s-eye is an open-source MCP server for developer tools. MCP server for managing Kubernetes resources and diagnosing workload health from AI. It is available on CLI and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/wenhuwang/mcp-k8s-eye
- **GitHub stars:** 29
- **License:** Apache-2.0
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-01

## About

Gives AI assistants direct access to a Kubernetes cluster through the Model Context Protocol. Once connected via kubeconfig, a client can read, create, update and delete resources across namespaces, including custom resource definitions, and run commands inside pods or scale deployments.

Beyond raw CRUD operations, the server includes diagnostic routines that inspect pods, deployments, StatefulSets, services, CronJobs, ingresses, network policies, webhooks and nodes, reporting on conditions such as unavailable replicas, selector mismatches and missing endpoints. It also reports CPU and memory usage for workloads in a namespace.

It is aimed at platform and DevOps engineers who want an assistant to help with cluster troubleshooting and routine operations. It runs over stdio or SSE and is written in Go.

## Features

- **Generic resource management:** List, get, create, update and delete native Kubernetes and custom resources in a namespace.
- **Pod exec and logs:** Run a command inside a pod or retrieve its container logs through the assistant.
- **Deployment scaling:** Change the replica count of a deployment without leaving the chat session.
- **Workload diagnostics:** Analyze pods, deployments, StatefulSets, services, CronJobs and ingresses for common faults.
- **Webhook and policy checks:** Inspect validating and mutating webhooks and network policies along with the pods they affect.
- **Resource usage reporting:** Report CPU and memory usage for pods, deployments, ReplicaSets, StatefulSets and DaemonSets.

## Good for

- Asking an assistant why a deployment has fewer available replicas than expected
- Scaling a deployment up or down during a traffic change
- Pulling logs or running a diagnostic command inside a failing pod
- Checking whether a service selector matches any ready endpoints
- Reviewing CPU and memory consumption of workloads in one namespace

## Tools

From the tool list in its README, going by the names, 1 of 19 tools deletes data and 2 change data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `resource_get` (name suggests: reads): Get detailed resource information about a specific resource in a namespace
- `resource_list` (name suggests: reads): List detailed resource information about all resources in a namespace
- `resource_create_or_update` (name suggests: changes): Create or update a resource in a namespace
- `resource_delete` (name suggests: deletes): Delete a resource in a namespace
- `resource_describe` (name suggests: reads): Describe a resource detailed information in a namespace
- `deployment_scale`: Scale a deployment in a namespace
- `pod_exec` (name suggests: changes): Execute a command in a pod in a namespace
- `pod_logs`: Get logs from a pod in a namespace
- `pod_analyze` (name suggests: reads): Diagnose all pods in a namespace
- `deployment_analyze` (name suggests: reads): Diagnose all deployments in a namespace
- `statefulset_analyze` (name suggests: reads): Diagnose all statefulsets in a namespace
- `service_analyze` (name suggests: reads): Diagnose all services in a namespace
- `cronjob_analyze` (name suggests: reads): Diagnose all cronjobs in a namespace
- `ingress_analyze` (name suggests: reads): Diagnose all ingresses in a namespace
- `networkpolicy_analyze` (name suggests: reads): Diagnose all networkpolicies in a namespace
- `validatingwebhook_analyze` (name suggests: reads): Diagnose all validatingwebhooks
- `mutatingwebhook_analyze` (name suggests: reads): Diagnose all mutatingwebhooks
- `node_analyze` (name suggests: reads): Diagnose all nodes in cluster
- `workload_resource_usage`: Get pod/deployment/replicaset/statefulset resource usage in a namespace (cpu, memory)

## FAQ

### How does the server connect to my cluster?

It reads the kubeconfig file from the HOME directory set in the client configuration, so it uses the same access as kubectl.

### Which transport protocols are supported?

It supports stdio and SSE transports.

### What do I need to build mcp-k8s-eye?

Go 1.23 or higher and a configured kubectl. The README builds it from source with go build.

### Is mcp-k8s-eye free?

Yes. mcp-k8s-eye is open source, so you can use and self-host it for free.

### What are the best alternatives to mcp-k8s-eye?

The closest alternatives to mcp-k8s-eye are k8s-mcp-server, mcp-k8s-go, K8s MCP Server (Go), mcp-k8s and Kubernetes MCP Server.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [k8s-mcp-server](https://ai-powered.com/mcp/k8s-mcp-server): k8s-mcp-server is an open-source MCP server for developer tools.
- [mcp-k8s-go](https://ai-powered.com/mcp/mcp-k8s-go): mcp-k8s-go is an open-source MCP server for cloud and infrastructure.
- [K8s MCP Server (Go)](https://ai-powered.com/mcp/k8s-mcp-server-go): K8s MCP Server (Go) is an open-source MCP server for developer tools.
- [mcp-k8s](https://ai-powered.com/mcp/mcp-k8s): mcp-k8s is an open-source MCP server for cloud and infrastructure.
- [Kubernetes MCP Server](https://ai-powered.com/mcp/kubernetes-mcp-server): Kubernetes MCP Server is an open-source MCP server for developer tools.
- [k8m](https://ai-powered.com/mcp/k8m): k8m is an open-source MCP server for cloud and infrastructure.
- [k8s-mcp-server](https://ai-powered.com/mcp/k8s-mcp-server-2): k8s-mcp-server is an open-source MCP server for cloud and infrastructure.
- [MCP Kubernetes](https://ai-powered.com/mcp/mcp-kubernetes): MCP Kubernetes is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-k8s-eye
