Back to Home
reza-gholizade icon

k8s-mcp-server

Verified Safe

by reza-gholizade

Overview

Provides a standardized interface (MCP) for interacting with Kubernetes clusters and managing Helm releases.

Installation

Run Command
docker run -p 8080:8080 -e KUBECONFIG_DATA="$(cat ~/.kube/config)" ginnux/k8s-mcp-server:latest

Environment Variables

  • SERVER_MODE
  • SERVER_PORT
  • KUBECONFIG_DATA
  • KUBERNETES_SERVER
  • KUBERNETES_TOKEN
  • KUBERNETES_CA_CERT
  • KUBERNETES_CA_CERT_PATH
  • KUBERNETES_INSECURE
  • KUBECONFIG
  • HELM_DRIVER

Security Notes

The server offers powerful capabilities, including creating, updating, and deleting Kubernetes resources, as well as managing Helm charts and repositories. If exposed publicly without robust authentication, authorization, and network segmentation, it could serve as a significant attack vector. The `CreateOrUpdateResourceJSON` function can create namespaces, which is a high-privilege action. The ability to add arbitrary Helm repositories (`HelmRepoAdd`) can introduce untrusted software. The `--read-only` flag and non-root execution in Docker are positive security features, but the provided example `ClusterRole` grants broad `*` permissions, necessitating careful RBAC configuration for deployments. Using `KUBERNETES_INSECURE=true` is explicitly discouraged but possible.

Similar Servers

Stats

Interest Score57
Security Score6
Cost ClassMedium
Avg Tokens1000
Stars122
Forks24
Last Update2025-11-27

Tags

KubernetesHelmMCPGoAPI Management