alibabacloud-ack-mcp-server
Verified Safeby aliyun
Overview
This MCP server unifies ACK cluster/resource management, Kubernetes native operations, and container observability, security auditing, and diagnostic inspection capabilities into an AI-native, standardized toolset.
Installation
No command providedEnvironment Variables
- ACCESS_KEY_ID
- ACCESS_KEY_SECRET
- REGION_ID
- KUBECONFIG_MODE
- KUBECONFIG_PATH
- PROMETHEUS_ENDPOINT_MODE
- ENABLE_EXECUTION_LOG
- CACHE_TTL
- CACHE_MAX_SIZE
- FASTMCP_LOG_LEVEL
- DEVELOPMENT
- DIAGNOSE_TIMEOUT
- DIAGNOSE_POLL_INTERVAL
- KUBECTL_TIMEOUT
- API_TIMEOUT
Security Notes
The server correctly handles sensitive credentials by reading them from environment variables or command-line arguments, rather than hardcoding them. It also implements checks in `kubectl_handler.py` to prevent write operations and interactive commands in read-only mode, which is a good security practice. However, the `subprocess.run` and `subprocess.Popen` calls in `kubectl_handler.py` use `shell=True`. While the command string is constructed with the kubeconfig path and the provided command, using `shell=True` with user-controlled input (even if pre-processed by an LLM) can introduce shell injection vulnerabilities if the input is not perfectly sanitized. The current `is_write_command` and `is_interactive_command` functions are based on simple string checks, not robust command parsing, which leaves a potential attack surface. The file management for temporary kubeconfigs in `~/.kube` is reasonable, with cleanup mechanisms in place.
Similar Servers
mcp-server-kubernetes
Provides an MCP (Model Context Protocol) server for interacting with and managing Kubernetes clusters using kubectl commands and Helm operations.
kmcp
KMCP is a Kubernetes controller and CLI tool that provides a declarative way to deploy, manage, and scale Model Context Protocol (MCP) servers in Kubernetes environments.
mcp-k8s-go
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.
k8s-mcp-server
Provides a standardized Model Context Protocol (MCP) interface for interacting with Kubernetes clusters and Helm releases, enabling programmatic control and observation.