Back to Home
sakhoury icon

kube-compare-mcp

Verified Safe

by 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

Run Command
docker run -p 8080:8080 quay.io/sakhoury/kube-compare-mcp:latest --transport=http --port=8080 --log-format=json --log-level=debug

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens50000
Stars0
Forks0
Last Update2026-01-19

Tags

KubernetesConfigurationComparisonAI AssistantMCP