mcp-k8s-go
Verified Safeby strowk
Overview
An MCP server enabling AI assistants and users to interact with and manage Kubernetes clusters by listing, getting, applying, and executing commands on Kubernetes resources.
Installation
npx @strowk/mcp-k8sEnvironment Variables
- KUBECONFIG
Security Notes
The server provides powerful tools like 'apply-k8s-resource' for applying arbitrary YAML manifests and 'k8s-pod-exec' for executing commands in pods, which inherently carry significant security risks if exposed to untrusted users or contexts. Additionally, the 'get-k8s-resource' tool allows executing user-provided Go templates, introducing a potential template injection vulnerability. However, the `--allowed-contexts` and `--readonly` command-line flags offer crucial mechanisms to restrict access and modify capabilities, mitigating these risks when properly configured. The `--mask-secrets` flag is enabled by default to protect sensitive data.
Similar Servers
kubernetes-mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to interact with Kubernetes and OpenShift clusters, enabling AI-driven cluster management and diagnosis.
mcp-k8s
A Kubernetes MCP (Model Control Protocol) server that enables natural language interaction with Kubernetes clusters and Helm for resource and release management.
k8s-mcp-server
Provides a standardized interface (MCP) for interacting with Kubernetes clusters and managing Helm releases.
mkp
MKP is a Model Context Protocol (MCP) server for Kubernetes that enables LLM-powered applications to interact with Kubernetes clusters.