Back to Home
containers icon

kubernetes-mcp-server

Verified Safe

by containers

Overview

Facilitates AI agent interaction with Kubernetes and OpenShift clusters by exposing management and observability tools via the Model Context Protocol.

Installation

Run Command
npx -y kubernetes-mcp-server@latest

Environment Variables

  • KUBECONFIG
  • KIALI_URL
  • CLUSTER_STATE_POLL_INTERVAL_MS
  • CLUSTER_STATE_DEBOUNCE_WINDOW_MS
  • KUBECONFIG_DEBOUNCE_WINDOW_MS
  • KUBE_CLIENT_QPS
  • KUBE_CLIENT_BURST

Security Notes

The server is implemented in Go, directly interacting with the Kubernetes API, which is generally more secure than shell-based wrappers. It features robust OAuth/OIDC authentication with token exchange capabilities, can enforce read-only operation, and allows disabling destructive tools. A critical security feature is the `AccessControlRoundTripper` which enables fine-grained denial of specific Kubernetes resources at the API proxy level, regardless of the ServiceAccount's broader permissions. Deployment guides recommend using dedicated, least-privileged ServiceAccounts. Sensitive data redaction in logs is also implemented. The main binaries are distributed via npm/PyPI wrappers that `spawn` the native Go executable, which is a common and acceptable pattern for such distributions. No direct 'eval' or obvious malicious patterns were found.

Similar Servers

Stats

Interest Score99
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars1008
Forks223
Last Update2026-01-19

Tags

KubernetesOpenShiftAI AgentsKialiCloud Native