Kom logo

Kom

by weibaohui

Manage multiple Kubernetes clusters through MCP tools for resources, workloads, nodes, pods, logs, and Prometheus queries.

Install Kom

Pick your client, then add it in one click or paste the config.

SSE (Remote)
Server URL
http://IP:9096/sse

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The weibaohui/kom MCP server exposes multi-cluster Kubernetes administration through MCP, with support for stdio and SSE modes. It provides 59 documented tools for cluster discovery, resource inspection and mutation, deployment operations, node maintenance, pod management, and related diagnostics. The underlying Go package can also be embedded in another application and supports standard Kubernetes resources and CRDs. Reach for it when an agent needs to inspect or operate one or more Kubernetes clusters using kubeconfig or in-cluster credentials.

Use cases

  • Inspect resources across registered Kubernetes clusters
  • Operate Deployments during rollouts and scaling changes
  • Diagnose Pods through logs, commands, events, and files
  • Manage Node scheduling, taints, and draining
  • Query Kubernetes and Prometheus data through MCP

Key features

  • Multi-cluster Kubernetes management
  • stdio and SSE MCP transports
  • Standard resource and CRD support
  • Deployment and Node operations
  • Pod command and file operations
  • SQL-style and Prometheus queries

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.

27/28 checks healthy over the last 111d

Adoption & maintenance

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

GitHub stars150Stargazers on the source repository.
Last commit2mo agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Kom works

What weibaohui/kom MCP server does

The weibaohui/kom MCP server connects MCP clients to Kubernetes management functions across registered clusters. Its documented tool set covers cluster listing, dynamic resources, Deployments, DaemonSets, Nodes, Events, IngressClasses, and Pods. Resource operations include listing, retrieval, description, deletion, annotation, labeling, and patching, with support for custom resource definitions alongside built-in Kubernetes types.

Workload and node operations go beyond basic CRUD. Deployment tools can scale, restart, stop, restore, pause, resume, and roll back rollouts, update image tags, inspect rollout status and history, and retrieve related events or HPA data. Node tools cover taints, scheduling state, draining, resource usage, IP usage, top-node results, and pod counts. Pod tools can execute commands, inspect events and linked services or ingress objects, list or delete files, and read runtime environment information.

The library also documents SQL-style Kubernetes resource queries, cross-namespace queries, optional query caching, and Prometheus queries against an in-cluster or external Prometheus service. These capabilities are relevant when an agent needs operational inspection rather than only direct API calls.

How it works

Applications register Kubernetes clusters through the Go API. After initialization, the MCP server can be started from Go with mcp.RunMCPServer, using a server name, version, and port.

The weibaohui/kom MCP server supports two transport modes. A compiled local executable can be used through stdio, while the SSE mode exposes an endpoint at /sse; the example uses port 9096. Multiple clusters are registered within the same server, and tools accept cluster, namespace, resource type, and object identifiers where applicable.

Setup and configuration

The project is written in Go and the README demonstrates importing github.com/weibaohui/kom and its callbacks package. The initialization callback is registered before clusters are configured. For external cluster access, KUBECONFIG can point to a kubeconfig file. If that variable is absent, the shown example falls back to the user’s .kube/config path; in-cluster registration is also demonstrated.

The documented source workflow builds an executable with go build main.go, then runs the resulting binary. MCP clients can connect by supplying the executable as a stdio command, or by configuring the SSE URL. The README specifically lists Cursor, Claude Desktop, and Windsurf as suitable MCP integrations, noting that Claude Desktop uses stdio in the described setup.

Deployment therefore requires building or embedding the Go project rather than assuming a published executable package.

Tools and capabilities

  • List registered Kubernetes clusters.
  • Inspect, list, patch, label, annotate, and delete standard or custom resources.
  • Scale, restart, stop, restore, pause, resume, and roll back Deployments.
  • Cordon, uncordon, drain, taint, and inspect Nodes.
  • Execute commands in Pods and manage files inside them.
  • Query Pod events, linked Services, Ingresses, Endpoints, and environment data.
  • Query Kubernetes resources with SQL-style expressions and retrieve Prometheus data.

Limitations and notes

The weibaohui/kom MCP server performs Kubernetes operations using the credentials available to its process, so the reachable clusters and allowed actions depend on kubeconfig or in-cluster authorization. It also does not provide a prebuilt package-manager command or a hosted SSE service; the SSE address shown is produced by a locally built and started application.

The README contains a tool table documenting 59 MCP tools, while the shorter project description refers to nearly 50 built-in tools.

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 Kom

It shows building the Go source with `go build main.go`, then running the resulting executable.

Yes.

Set `KUBECONFIG` to a kubeconfig path, or register the in-cluster configuration. The example falls back to the user’s `.kube/config` when `KUBECONFIG` is not set.

Yes. Clusters can be registered with the Go API, and the MCP tools support multi-cluster management.

Yes. The project supports custom resource definitions as well as standard Kubernetes resources.

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 PreviewKom AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/weibaohui-kom?style=directory)](https://allmcps.com/mcp/weibaohui-kom)
HTML Embed
<a href="https://allmcps.com/mcp/weibaohui-kom"><img src="https://allmcps.com/api/badge/weibaohui-kom?style=directory" alt="Kom on AllMCPs" /></a>