K8m logo

K8m

by weibaohui

Manages multiple Kubernetes clusters through a dashboard and 49 built-in MCP tools for standard and CRD resources.

Install K8m

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for weibaohui/k8m, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

weibaohui/k8m MCP server connects AI models to Kubernetes clusters through a dashboard-backed MCP implementation. It provides 49 built-in tools for multi-cluster operations, including standard Kubernetes and CRD resources, with logging and MCP call records. The application also includes cluster permissions, Pod log and shell access, and API key support. Reach for it when an agent needs Kubernetes management across several clusters and must operate within configured user or group permissions.

Use cases

  • Manage resources across multiple Kubernetes clusters
  • Inspect Pod logs and execute Pod shell commands
  • Apply permission-aware MCP operations
  • Discover and operate on CRD resources
  • Automate cluster inspections and event forwarding

Key features

  • 49 built-in Kubernetes MCP tools
  • Multi-cluster registration and reconnection
  • Standard resource and CRD management
  • Pod logs, shell, and file operations
  • MCP call logging and permission mapping
  • Standalone, Docker, and Kubernetes deployment

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

21/22 checks healthy over the last 86d

Adoption & maintenance

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

GitHub stars892Stargazers on the source repository.
Last commit4d agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How K8m works

What weibaohui/k8m MCP server does

weibaohui/k8m MCP server combines a web-based Kubernetes console with MCP tools for managing multiple clusters. The project describes 49 built-in Kubernetes MCP tools that can be composed into more than 100 cluster operations. These tools cover standard Kubernetes resources and custom resources defined through CRDs.

The application can register and manage multiple clusters, including standard Kubernetes, Amazon EKS, k3s, kind, and k0s environments. It can use in-cluster configuration, or scan kubeconfig files from a configured path. Cluster connections support heartbeat checks and automatic reconnection.

The dashboard provides operational functions alongside MCP access. Operators can inspect Pod logs, download logs, search log output, execute shell commands in Pods, and manage files inside Pods. CRDs are discovered automatically and displayed in a resource tree. The system also records each MCP call and connects MCP permissions with the permissions of the user making the request.

How it works

K8M is built as a Go application with an AMIS-based frontend. It uses the kom project as its Kubernetes API client. The application can run as a standalone executable, in Docker Compose, or inside a Kubernetes cluster. When deployed, it exposes a web interface on port 3618 by default; the Kubernetes deployment example uses a NodePort on 31999.

Users and groups can receive permissions per cluster. The documented permission levels are read-only access, Exec command access, and cluster administrator access. Namespace allowlists and denylists can further restrict access. This permission model also applies to MCP calls, so an agent action is evaluated using the calling user’s configured access.

The wider application includes scheduled multi-cluster inspections, custom inspection rules using Lua scripts, Kubernetes Event forwarding, webhook notifications, Helm repository management, and optional AI features. These functions are part of the K8M console and surrounding platform, rather than individually documented here as MCP tools.

Setup and configuration

Download a release and start it with ./k8m, then open http://127.0.0.1:3618. The documented default login is k8m for both username and password; the README advises changing these credentials after deployment and enabling two-step verification.

Docker Compose is also supported. The example maps port 3618, uses the registry.cn-hangzhou.aliyuncs.com/minik8m/k8m image, and mounts ./data at /app/data. Kubernetes deployment manifests are available through the repository’s deploy directory and can be applied with kubectl.

Important command-line settings include --kubeconfig, --in-cluster, --connect-cluster, --port, --login-type, and --jwt-token-secret. The executable also accepts settings for the administrator account, logging level, shell images, and image-pull timeout.

Tools and capabilities

weibaohui/k8m MCP server supports:

  • Multi-cluster Kubernetes management
  • Standard resource and CRD operations
  • Pod log viewing and downloading
  • Pod shell execution
  • Pod file browsing and file transfers
  • MCP call logging
  • Permission-aware agent operations
  • API key access for external clients

The project runs on Linux, macOS, and Windows and supports x86 and ARM architectures. It can use SQLite, MySQL, or PostgreSQL for its database. Built-in AI support includes Qwen2.5-Coder-7B, with documented support for DeepSeek-R1-Distill-Qwen-7B and user-managed models including Ollama.

Reviews

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

Frequently Asked Questions about K8m

weibaohui/k8m is an MCP server that connects AI models to multiple Kubernetes clusters. Its 49 built-in tools cover standard resources, CRDs, Pod logs, shell execution, and related cluster operations. It also provides a dashboard, MCP call records, and permission mapping so agent actions use the calling user’s configured access.

Install it by downloading a GitHub release and running `./k8m`, or start the documented Docker Compose image. The application listens on port 3618 by default. Kubernetes manifests are also provided for deployment into a cluster.

Connect a cluster through in-cluster registration or a kubeconfig file. The `--in-cluster` option handles the host cluster, while `--kubeconfig` sets the kubeconfig path. K8M can scan configuration files from the configured location and register multiple clusters.

The project states that K8M can act as an MCP server for other large-model software, but it does not document a Cursor configuration or client-specific setup.

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