Back to Home
reza-gholizade icon

k8s-mcp-server

Verified Safe

by reza-gholizade

Overview

Interacting with Kubernetes clusters and Helm releases through a standardized Model Context Protocol (MCP) interface.

Installation

Run Command
docker run -i --rm -p 8080:8080 -v ~/.kube/config:/home/appuser/.kube/config:ro ginnux/k8s-mcp-server:latest --mode stdio

Environment Variables

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

Security Notes

The server uses standard Go client libraries for Kubernetes and Helm, which are generally robust. Authentication methods leverage secure practices (env vars, in-cluster service accounts, kubeconfig files). A critical security feature is the '--read-only' flag, which disables all write operations. The primary security considerations are proper RBAC configuration for the server's Kubernetes identity and ensuring the server's HTTP/stdio endpoints are not exposed to untrusted sources, as the server can perform powerful cluster operations. There are no obvious signs of 'eval' or direct command injection of untrusted strings.

Similar Servers

Stats

Interest Score55
Security Score8
Cost ClassLow
Avg Tokens500
Stars133
Forks31
Last Update2026-01-19

Tags

KubernetesHelmMCPObservabilityInfrastructure