K8m

v1.0.0โ€ขCloud Servicesโ€ขstable

๐ŸŽ๏ธ โ˜๏ธ/๐Ÿ  - Provides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.

2faaiapigatewaychatgptdashboard
Share:
822
Stars
0
Downloads
0
Weekly
0/5

What is K8m?

K8m is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐ŸŽ๏ธ โ˜๏ธ/๐Ÿ  - provides mcp multi-cluster kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common devops and development scenarios. s...

๐ŸŽ๏ธ โ˜๏ธ/๐Ÿ  - Provides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • ๐ŸŽ๏ธ โ˜๏ธ/๐Ÿ  - Provides MCP multi-cluster Kubernetes management a

Use Cases

Multi-cluster Kubernetes management
50+ built-in DevOps and development tools
weibaohui

Maintainer

LicenseMIT License
Languagego
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx k8m

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use K8m

K8m is an AI-driven Kubernetes dashboard and MCP server that provides multi-cluster management through a web UI and nearly 50 built-in MCP tools enabling 100+ cluster operations through tool combination. It supports both standard Kubernetes resources and Custom Resource Definitions (CRDs), integrates with local LLMs (Ollama, Qwen, DeepSeek) and cloud AI models for log analysis, YAML translation, and resource recommendations, and enforces role-based access control so each user's AI operations are bounded by their cluster permissions.

Prerequisites

  • A running Kubernetes cluster with a valid kubeconfig file
  • Docker or a Kubernetes deployment for running k8m itself
  • An MCP-compatible client such as Claude Desktop or ChatGPT
  • An LLM API key or local Ollama instance for AI features (optional but recommended)
1

Run k8m with Docker Compose

The fastest way to start k8m is with Docker Compose. Mount your kubeconfig and data volume, then access the dashboard at port 3618.

# docker-compose.yml
services:
  k8m:
    image: registry.cn-hangzhou.aliyuncs.com/minik8m/k8m
    ports:
      - "3618:3618"
    volumes:
      - ./data:/app/data
      - ~/.kube/config:/root/.kube/config
2

Or deploy directly to Kubernetes

Deploy k8m inside your cluster using the official manifest. It will be accessible via NodePort 31999.

kubectl apply -f https://raw.githubusercontent.com/weibaohui/k8m/refs/heads/main/deploy/k8m.yaml
3

Access the dashboard and log in

Navigate to http://127.0.0.1:3618 and log in with the default credentials. Change the password immediately in production.

# Default credentials:
# Username: k8m
# Password: k8m
# Access: http://127.0.0.1:3618
4

Configure an AI model

In the dashboard settings, configure your preferred LLM for AI features: the built-in Qwen2.5-Coder-7B, a local Ollama instance, or a cloud API endpoint. This enables log analysis, YAML translation, and resource diagnostics.

5

Connect your MCP client

K8m exposes its 49 MCP tools via the MCP endpoint. Add it to your MCP client configuration with the k8m server URL.

K8m Examples

Client configuration

Claude Desktop configuration connecting to a running k8m MCP server.

{
  "mcpServers": {
    "k8m": {
      "command": "npx",
      "args": ["k8m"],
      "env": {
        "K8M_URL": "http://127.0.0.1:3618"
      }
    }
  }
}

Prompts to try

Example prompts for Kubernetes cluster management via k8m MCP tools.

- "List all pods in the production namespace and identify any that are not Running"
- "Analyze the logs from the payment-service pod and summarize any errors"
- "Scale the frontend deployment to 5 replicas"
- "What CRDs are installed in this cluster and which ones have active resources?"
- "Show resource usage across all nodes and recommend which pods to reschedule"

Troubleshooting K8m

k8m cannot connect to the Kubernetes cluster

Ensure your kubeconfig is mounted correctly (for Docker) or that k8m has the appropriate RBAC permissions when running in-cluster. Check that --kubeconfig flag points to a valid, accessible config file.

AI features show no results or errors

Configure an LLM in the dashboard settings. If using Ollama, ensure the Ollama service is reachable from the k8m container/pod. Verify the model name matches exactly what Ollama has downloaded (e.g., qwen2.5-coder:7b).

MCP client cannot invoke k8m tools

Verify k8m is running and the MCP endpoint is accessible. Check the dashboard logs for MCP invocation errors. Ensure the user account used for MCP has sufficient RBAC permissions for the operations being requested.

Frequently Asked Questions about K8m

What is K8m?

K8m is a Model Context Protocol (MCP) server that ๐ŸŽ๏ธ โ˜๏ธ/๐Ÿ  - provides mcp multi-cluster kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common devops and development scenarios. supports both standard and crd resources. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install K8m?

Follow the installation instructions on the K8m GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with K8m?

K8m works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is K8m free to use?

Yes, K8m is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "k8m": { "command": "npx", "args": ["-y", "k8m"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use K8m?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides