# kom

> kom is an open-source MCP server for cloud and infrastructure. Go library and MCP server for managing Kubernetes clusters, resources and pods. It is available on CLI, API, Self-hosted and Web.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Web
- **Repository:** https://github.com/weibaohui/kom
- **GitHub stars:** 150
- **License:** MIT
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Kom wraps client-go in a chainable Go API so developers can create, read, update, delete and watch built-in and custom resources across several registered clusters, including AWS EKS. It also lets you run SQL-style queries against cluster objects, read pod logs, exec into containers, transfer files and query Prometheus.

Beyond the library, the project can run as an MCP server over stdio or SSE, exposing a large set of Kubernetes operations such as deployment rollouts, scaling, node cordon and drain, and pod file management to AI clients like Cursor, Claude Desktop and Windsurf. Callbacks let teams hook custom logic into each operation without tying it to Kubernetes calls.

It suits platform engineers and Go developers who want to script cluster operations or give an AI assistant controlled access to one or more clusters. The companion k8m binary provides a ready-made web console built on the same code.

## Features

- **Multi-cluster registration:** Register in-cluster, kubeconfig-based and AWS EKS clusters and address each one by ID.
- **Chainable resource API:** Create, get, list, patch, delete and watch built-in and CRD resources with a fluent interface.
- **SQL queries on resources:** Select Kubernetes objects with SQL-like filters, ordering and pagination.
- **Deployment and node operations:** Scale, restart, roll back, pause, cordon, drain and taint workloads and nodes.
- **Pod access tools:** Read logs, run commands, port-forward and list, upload or download files inside containers.
- **MCP server mode:** Expose cluster operations as MCP tools over stdio or SSE for AI assistants.
- **Prometheus queries:** Run instant and range PromQL queries against in-cluster or external Prometheus.

## Good for

- Scripting routine deployment rollouts and rollbacks from Go code
- Letting an AI coding assistant inspect pods and events in a cluster
- Managing several EKS and on-prem clusters from one program
- Querying pods or deployments across namespaces with SQL-style filters
- Draining and cordoning nodes during maintenance

## Tools

From the tool list in its README, going by the names, 2 of 14 tools delete data and 1 changes data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `list_k8s_clusters` (name suggests: reads): List all registered Kubernetes clusters
- `scale_k8s_deployment`: Scale a Deployment by setting its replica count
- `restart_k8s_deployment`: Restart a Deployment by cluster, namespace and name
- `get_k8s_resource` (name suggests: reads): Get details of a Kubernetes resource
- `list_k8s_resource` (name suggests: reads): List Kubernetes resources by cluster and resource type
- `delete_k8s_resource` (name suggests: deletes): Delete a Kubernetes resource
- `drain_k8s_node`: Drain pods from a node and prevent new scheduling
- `cordon_k8s_node`: Mark a node as unschedulable
- `run_command_in_k8s_pod` (name suggests: changes): Run a command inside a Pod
- `list_k8s_pod` (name suggests: reads): Get a list of Pods
- `GetPodLogsTool` (name suggests: reads): Get Pod logs
- `apply_k8s_yaml`: Create or update Kubernetes resources from YAML
- `delete_k8s_yaml` (name suggests: deletes): Delete Kubernetes resources defined in YAML
- `get_k8s_deployment_rollout_status` (name suggests: reads): Query a Deployment's rollout status

## FAQ

### Which MCP transports does kom support?

It runs as an MCP server over stdio or SSE, and the SSE endpoint can be shared by several users.

### Can kom work with AWS EKS?

Yes, clusters can be registered with an AWS access key, secret, region and cluster name, with optional IAM role assumption.

### Are custom resources supported?

Yes, CRDs can be created, read, updated, deleted and watched using group, version and kind.

### Where are AWS credentials stored?

They are kept in memory only and are cleared when the program restarts.

### Is kom free?

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

### What are the best alternatives to kom?

The closest alternatives to kom are Kubernetes MCP Server, k8m, mcp-k8s-go, mcp-k8s and mcp-k8s-eye.

## Where this comes from

- Description: written from the project's README.

## Alternatives

- [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.
- [mcp-k8s-go](https://ai-powered.com/mcp/mcp-k8s-go): mcp-k8s-go is an open-source MCP server for cloud and infrastructure.
- [mcp-k8s](https://ai-powered.com/mcp/mcp-k8s): mcp-k8s is an open-source MCP server for cloud and infrastructure.
- [mcp-k8s-eye](https://ai-powered.com/mcp/mcp-k8s-eye): mcp-k8s-eye is an open-source MCP server for developer tools.
- [k8s-mcp-server](https://ai-powered.com/mcp/k8s-mcp-server): k8s-mcp-server is an open-source MCP server for developer tools.
- [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.
- [mkp](https://ai-powered.com/mcp/mkp): mkp is an open-source MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/kom
