MCP K8s Eye logo

MCP K8s Eye

by wenhuwang

Manage Kubernetes resources, inspect workloads, diagnose common health issues, and review workload CPU and memory usage over MCP.

Install MCP K8s Eye

Run the project’s own setup commands, in order.

Setup steps from the project

wenhuwang/mcp-k8s-eye installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/wenhuwang/mcp-k8s-eye.git
    
  2. 2. Install
    go build -o mcp-k8s-eye
    

Overview

Manage Kubernetes clusters with the wenhuwang/mcp-k8s-eye MCP server through resource operations, pod access, deployment scaling, diagnostics, and workload monitoring. It uses the Kubernetes configuration available to kubectl and supports both Stdio and SSE transport modes. Diagnostics cover workloads, services, networking resources, webhooks, ingresses, cron jobs, and nodes. Reach for the wenhuwang/mcp-k8s-eye MCP server when an AI client needs operational visibility or controlled Kubernetes management rather than only read-only cluster search.

Use cases

  • Inspect Kubernetes workload health by namespace
  • Retrieve pod logs and execute diagnostic commands
  • Scale Deployments from an AI client
  • Analyze services, ingress, and network policy configuration
  • Review workload CPU and memory usage

Key features

  • Generic Kubernetes resource CRUD operations
  • Pod logs and in-container command execution
  • Deployment scaling
  • Workload and infrastructure diagnostics
  • CPU and memory usage monitoring
  • Stdio and SSE transport support

Tools19

What MCP K8s Eye lets your agent do. Expand a tool for its parameters.

Self-reported~282 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/14 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars29Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Tools exposed19Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP K8s Eye works

What wenhuwang/mcp-k8s-eye MCP server does

The wenhuwang/mcp-k8s-eye MCP server exposes Kubernetes management and analysis functions through MCP. It can work with standard Kubernetes objects such as Pods, Deployments, Services, StatefulSets, and Ingresses, as well as CustomResourceDefinition-backed resources. Resource operations include listing, retrieving, creating or updating, deleting, and describing objects within a namespace.

It also provides focused operational actions. An agent can retrieve pod logs, execute commands inside a pod, and scale a Deployment. These operations make the server suitable for workflows that combine inspection with changes to an application environment.

How it works

The server connects to a Kubernetes cluster using the configuration available to kubectl. The README requires kubectl to be configured before use, so cluster access and credentials are supplied through the local Kubernetes setup rather than through an MCP-specific API key.

Two transport modes are documented. Stdio runs the compiled server as a local process and can receive a HOME value to identify the directory containing the kubeconfig. SSE uses an HTTP endpoint, shown in the configuration as http://localhost:8080/sse, after an SSE server has been started.

The wenhuwang/mcp-k8s-eye MCP server includes analysis tools that inspect object status and related configuration. Workload monitoring reports CPU and memory usage for Pods, Deployments, ReplicaSets, and StatefulSets, while node analysis checks node conditions.

Setup and configuration

Building the wenhuwang/mcp-k8s-eye MCP server requires Go 1.23 or newer. The documented setup is to clone the repository, enter its directory, and build a binary named mcp-k8s-eye with Go. The Stdio client configuration must then point its command value to the resulting binary; the README uses a placeholder path, so the actual path depends on the local checkout.

For Stdio use, set HOME to the user home directory when that is needed to locate the kubeconfig. For SSE use, configure the client with the server's actual SSE URL. The example uses an endpoint on localhost and does not document authentication settings.

Tools and capabilities

Resource tools include resource_get, resource_list, resource_create_or_update, resource_delete, and resource_describe. Operational tools include deployment_scale, pod_exec, and pod_logs.

Analysis tools cover Pods, Deployments, StatefulSets, Services, CronJobs, Ingresses, NetworkPolicies, ValidatingWebhooks, MutatingWebhooks, and Nodes. The monitoring tool, workload_resource_usage, reports CPU and memory usage for supported workload types.

Limitations and notes

Cluster-wide diagnostics and cluster-level CPU or memory capacity analysis are listed as unsupported. Resource explanation is also not implemented. The documented monitoring scope does not include node or cluster utilization, even though node condition analysis is available.

Kubernetes permissions, namespace access, and the effect of mutating operations depend on the configured cluster credentials and RBAC rules.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP K8s Eye

Clone the repository, enter its directory, and build the binary with Go 1.23 or newer using `go build -o mcp-k8s-eye`. Kubectl must already be configured for cluster access.

It uses the Kubernetes configuration available to kubectl. In Stdio mode, the HOME environment variable can identify the home directory used to locate kubeconfig.

Yes. It includes separate analysis tools for services and deployments, along with diagnostics for several other Kubernetes resource types.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP K8s Eye AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wenhuwang-mcp-k8s-eye?style=directory)](https://allmcps.com/mcp/wenhuwang-mcp-k8s-eye)
HTML Embed
<a href="https://allmcps.com/mcp/wenhuwang-mcp-k8s-eye"><img src="https://allmcps.com/api/badge/wenhuwang-mcp-k8s-eye?style=directory" alt="MCP K8s Eye on AllMCPs" /></a>