Use Claude Code’s AI capabilities to manage multiple Kubernetes clusters simultaneously with natural language.
kubestellar-mcp is an AI-powered kubectl plugin designed for managing multiple clusters simultaneously. It integrates with Claude Code, enabling you to:
brew tap kubestellar/tap
brew install kubectl-claude
The Homebrew formula is published automatically during releases using GoReleaser. This installs the
kubectl-claudekubectl plugin.
In Claude Code, run:
/plugin marketplace add kubestellar/claude-plugins
Then go to /plugin → Discover tab and install kubestellar-mcp.
Run /mcp in Claude Code to see connected MCP servers:
plugin:kubestellar-mcp:kubestellar-mcp · ✓ connected
To avoid permission prompts for each tool call, add to ~/.claude/settings.json:
{
"permissions": {
"allow": [
"mcp__plugin_kubestellar-mcp_kubestellar-mcp__*"
]
}
}
Or run in Claude Code:
/allowed-tools add mcp__plugin_kubestellar-mcp_kubestellar-mcp__*
The kubestellar-mcp plugin provides specialized slash commands for common Kubernetes operations:
Check the health of all Kubernetes clusters in your kubeconfig.
/k8s-health
This will:
Find all issues across your Kubernetes clusters.
/k8s-issues
Checks for:
Perform a comprehensive analysis of a Kubernetes namespace.
/k8s-analyze
Provides insights on:
Analyze RBAC permissions for any subject (user, group, or service account).
/k8s-rbac
Shows:
Perform a security audit across all clusters.
/k8s-security
Finds:
Audit your kubeconfig and clean up stale clusters.
/k8s-audit-kubeconfig
Shows:
| Tool | Description |
|---|---|
list_clusters | Discover clusters from kubeconfig |
get_cluster_health | Check cluster health status |
get_nodes | List cluster nodes with status |
audit_kubeconfig | Audit all clusters for connectivity |
| Tool | Description |
|---|---|
get_pods | List pods with filtering options |
get_deployments | List deployments |
get_services | List services |
get_events | Get recent events |
describe_pod | Get detailed pod information |
get_pod_logs | Retrieve pod logs |
| Tool | Description |
|---|---|
get_roles | List Roles in a namespace |
get_cluster_roles | List ClusterRoles |
get_role_bindings | List RoleBindings |
get_cluster_role_bindings | List ClusterRoleBindings |
can_i | Check if you can perform an action |
analyze_subject_permissions | Full RBAC analysis for any subject |
describe_role | Detailed view of Role/ClusterRole rules |
| Tool | Description |
|---|---|
find_pod_issues | Find CrashLoopBackOff, OOMKilled, pending pods |
find_deployment_issues | Find stuck rollouts, unavailable replicas |
check_resource_limits | Find pods without CPU/memory limits |
check_security_issues | Find privileged containers, root users |
analyze_namespace | Comprehensive namespace analysis |
get_warning_events | Get Warning events |
kubestellar-mcp also works as a standalone kubectl plugin:
# List all clusters
kubectl kubestellar-mcp clusters list
# Check cluster health
kubectl kubestellar-mcp clusters health
# Natural language queries (requires ANTHROPIC_API_KEY)
kubectl kubestellar-mcp "show me failing pods"