weibaohui/kom logo

weibaohui/kom

Free

提供 MCP 多集群 Kubernetes 管理和操作。可作为 SDK 集成到项目中,含近 50 个内置工具 (支持标准/CRD)。

FreeFree tier
Type
Open Source

About weibaohui/kom

Kom (Kubernetes Operations Manager) is an open-source Go library and MCP server that provides an SDK-level wrapper around kubectl and client-go for managing Kubernetes resources. It supports multi-cluster operations, custom resource definitions (CRDs), and includes 59 built-in MCP tools for common Kubernetes tasks such as creating, updating, deleting, querying resources, reading logs, and manipulating files inside pods. Kom can be integrated as a Go SDK into projects or run as a standalone MCP server supporting both stdio and SSE modes. Additional features include chain calls, cross-namespace queries, SQL-based querying of Kubernetes resources, query caching, Prometheus monitoring integration, and high-level operations like deployment scaling, restarting, and rollback. A companion lightweight management UI (k8m) is also available.

Key Features

Multi-cluster Kubernetes management (supports AWS EKS)
MCP server with 59 built-in tools (supports stdio and SSE modes)
CRD support: manage both standard and custom resources
Chain calls for intuitive resource operations
Cross-namespace queries
File operations inside pods (upload, download, delete)
High-frequency operations: restart, scale, stop, restore, rollback deployments
SQL query support: query Kubernetes resources using SQL syntax
Query caching for improved performance in batch queries
Prometheus query integration for monitoring data

Pros & Cons

Pros
  • Simple and easy-to-use chain API compared to raw kubectl or client-go
  • Multi-cluster and cross-namespace support out of the box
  • 59 built-in MCP tools covering a wide range of Kubernetes operations
  • Supports both stdio and SSE MCP modes for flexible integration
  • Can be used as a Go SDK or standalone server
  • Full CRD support for custom resources
  • Includes advanced features like SQL queries, caching, and Prometheus integration
Cons
  • Primarily documented in Chinese, though an English README is available
  • Requires Go knowledge for SDK integration
  • Relatively new project with a smaller community compared to mature tools

Best For

Multi-cluster Kubernetes management and operationsIntegrate Kubernetes capabilities into Go applications as an SDKProvide an MCP server for AI tools (e.g., Cursor, Claude Desktop) to manage Kubernetes resourcesPerform Kubernetes resource CRUD operations via SQL-like queriesAutomate deployment operations such as scaling, restarting, and rollbackManage files inside pods without kubectl exec

FAQ

What is kom?
Kom is an open-source Kubernetes Operations Manager that provides an SDK-level wrapper around kubectl and client-go, offering a unified interface for managing Kubernetes resources across multiple clusters. It can also be run as an MCP server.
Does kom support custom resources (CRDs)?
Yes, kom supports both standard Kubernetes resources and custom resource definitions (CRDs).
Can kom be used as an MCP server?
Yes, kom can be run as an MCP server supporting both stdio and SSE modes, with 59 built-in tools for Kubernetes operations. It can be integrated with AI tools like Cursor and Claude Desktop.
How do I integrate kom into my project?
You can import kom as a Go module and use its chain API to perform Kubernetes operations. After registering callbacks and clusters, you can directly use methods like kom.Cluster().Namespace().Get() or kom.Clusters().RegisterByPathWithID(). See the installation and usage examples in the README.
Does kom support multi-cluster management?
Yes, kom supports multi-cluster management through the RegisterCluster method, allowing you to manage multiple Kubernetes clusters, including AWS EKS clusters.