Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
npm install -g skillkitConfig
{
"mcpServers": {
"kubernetes": {
"command": "npx",
"args": ["-y", "kubectl-mcp-server"]
}
}
}Exposed MCP Tools (5)
get_podsRetrieves a list of pods in a specified namespace.
Read-only operation, no modification of cluster state.
create_deploymentCreates a new deployment in the Kubernetes cluster.
Creates resources, but doesn't directly impact existing critical components.
scale_deploymentScales the number of replicas for a given deployment.
Modifies the number of pods, potentially impacting application availability.
exec_podExecutes a command inside a specified pod.
Allows arbitrary command execution within a pod, potentially leading to security breaches.
delete_podDeletes a pod from the cluster.
Destructive operation that can cause service disruption.
Safety Assessment
kubectl-mcp-server offers a convenient way to interact with Kubernetes using natural language. It's relatively safe for read-only operations and exploration. However, caution is advised when performing write operations, and proper RBAC configuration is crucial to mitigate risks.
- Supports non-destructive mode to prevent accidental changes
- RBAC validation ensures actions are authorized
- Secret masking protects sensitive information
- Provides read-only access for safe exploration
- Can perform write operations on the cluster
- Requires kubectl to be configured correctly, which can be complex
- Potential for privilege escalation if RBAC is misconfigured
- Exposes Kubernetes API to AI assistant, increasing attack surface
- Incorrect natural language commands could lead to unintended actions
