mcp-k8s-go
by strowk
Overview
This MCP server enables interaction with Kubernetes clusters to list, get, apply, and execute commands on various resources through a conversational interface.
Installation
npx @strowk/mcp-k8sEnvironment Variables
- KUBECONFIG
Security Notes
The 'k8s-pod-exec' tool directly executes user-provided commands using 'sh -c' within a Kubernetes pod. While this is the intended functionality for remote execution, it poses a critical security risk if input is not strictly sanitized or if the tool is exposed to untrusted users or unconstrained AI agents, potentially leading to arbitrary code execution or privilege escalation within the cluster. Although a '--readonly' flag exists to disable this tool, it is not enabled by default. The server does include a '--mask-secrets' flag which is true by default, mitigating some data exposure risks for Kubernetes secrets.
Similar Servers
kubernetes-mcp-server
Facilitates AI agent interaction with Kubernetes and OpenShift clusters by exposing management and observability tools via the Model Context Protocol.
mcp-k8s
Facilitates natural language interaction and automation for Kubernetes cluster management and Helm operations via the Model Control Protocol (MCP).
k8s-mcp-server
Interacting with Kubernetes clusters and Helm releases through a standardized Model Context Protocol (MCP) interface.
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes, enabling LLM-powered applications to interact with Kubernetes clusters by providing tools for resource listing, getting, applying, deleting, and executing commands.