kube-compare-mcp
Verified Safeby sakhoury
Overview
Enables AI assistants to compare Kubernetes cluster configurations against reference templates, including Red Hat Telco Reference Design Specifications (RDS), to detect configuration drift.
Installation
docker run -p 8080:8080 quay.io/sakhoury/kube-compare-mcp:latest --transport=http --port=8080 --log-format=json --log-level=debugEnvironment Variables
- DOCKER_CONFIG
- KUBE_COMPARE_MCP_MAX_FILE_SIZE
- KUBE_COMPARE_MCP_IMAGE_PULL_TIMEOUT
- KUBE_COMPARE_MCP_HTTP_VALIDATION_TIMEOUT
- KUBE_COMPARE_MCP_OCI_VALIDATION_TIMEOUT
- KUBECONFIG
Security Notes
The server implements strong security measures. It explicitly blocks exec-based authentication and auth provider plugins in provided kubeconfigs to prevent arbitrary code execution, enforces size limits on kubeconfig inputs, and sanitizes error messages to prevent leakage of sensitive information. Container image extraction includes path traversal prevention and file size limits. The Kubernetes deployment uses good security practices such as `runAsNonRoot`, `seccompProfile: RuntimeDefault`, `allowPrivilegeEscalation: false`, and `drop: ALL` capabilities. However, the `ClusterRole` grants broad read-only access (`apiGroups: ['*'], resources: ['*'], verbs: ['get', 'list', 'watch']`) to the cluster, which is a functional requirement for a configuration comparison tool but means the server has visibility into all cluster resources. The `readOnlyRootFilesystem: false` is necessary due to temporary file operations and container image extraction.
Similar Servers
mcp-server-kubernetes
This MCP server enables AI agents to connect to and manage Kubernetes clusters by executing kubectl and Helm commands.
terraform-mcp-server
Provides seamless integration with Terraform Registry APIs and HCP Terraform/Terraform Enterprise APIs, enabling AI assistants/LLMs to generate high-quality Terraform code and automate IaC workflows.
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-go
This MCP server enables interaction with Kubernetes clusters to list, get, apply, and execute commands on various resources through a conversational interface.