home / mcp / mcp-k8swizard mcp server
π€ AI-powered Kubernetes management with 37+ tools via natural language. Transform complex Kubectl commands into simple conversations. Perfect for DevOps teams using VSCode / Cursor AI. Built with Go.
Configuration
View docs{
"mcpServers": {
"heniv96-mcp-k8swizard": {
"command": "/path/to/mcp-k8swizard",
"args": [
"--verbose"
]
}
}
}MCP-K8sWizard is an MCP server that provides AI-powered, natural language interfaces for Kubernetes operations. It enables you to manage clusters, monitor resources, and troubleshoot tasks through conversational prompts, while supporting multi-cluster contexts and RBAC-aware workflows.
You interact with the MCP-K8sWizard server through an MCP client. Start by ensuring your MCP client can reach the local or remote MCP server, then speak natural language prompts to perform cluster management, resource operations, diagnostics, and scaling tasks. The server exposes a rich set of tools organized into Kubernetes operations, kubectl-like actions, context management, and AI-guided guidance. Use simple, task-focused prompts to perform actions such as checking cluster health, listing resources, viewing logs, scaling deployments, and diagnosing issues. The system will guide you through steps when troubleshooting and provide suggestions tailored to your current context.
Prerequisites: You need a Go toolchain and access to a Kubernetes cluster. Ensure kubeconfig is configured and you have permission to access your clusters.
Step-by-step setup is illustrated by the following commands.
git clone https://github.com/heniv96/mcp-k8swizard.git
cd mcp-k8swizard
make install
# Configure Cursor AI with the MCP server entry shown below in your Cursor AI settings
# In Cursor AI, add a MCP entry at ~/.cursor/mcp.json with the following snippet.{
"mcpServers": {
"k8s-wizard": {
"command": "/path/to/mcp-k8swizard",
"args": ["--verbose"]
}
}
}Restart Cursor AI after saving the MCP entry, then begin using natural language prompts to interact with Kubernetes resources through MCP-K8sWizard.
Retrieve high-level information about Kubernetes clusters, including version, nodes, and statuses.
Check health and readiness across all connected clusters and surface any issues.
Perform connectivity checks to Kubernetes API endpoints or other MCP components.
List resources across namespaces or specific resource types.
Fetch detailed information for a single Kubernetes resource.
Retrieve logs for pods, containers, or deployments.
Show recent events and state changes in the cluster.
Execute commands inside a running pod for debugging.
Translate natural language questions into Kubernetes queries or actions.
Retrieve resources using kubectl-style read operations.
Show detailed descriptions of resources.
Create new resources from definitions or inline specs.
Apply configuration changes to resources.
Delete resources by name, type, or label.
Switch or view the current Kubernetes context.
Scale deployments or stateful sets to a desired replica count.
Patch resources to modify fields without full replacement.
Manage application rollouts and view rollout status.
Execute generic kubectl commands beyond predefined helpers.
Explain the purpose and configuration of a Kubernetes resource.
List available API resources and their capabilities.
Set the active multi-cluster context for subsequent commands.
Display the currently active context.
List all configured contexts for easy switching.
Clear stored context information.
Perform AI-guided diagnostics to identify problems.
Step-by-step troubleshooting prompts for common issues.
Suggest optimizations for resource usage and configurations.
Assess and improve security posture across clusters.
Monitor and optimize performance metrics.
Assist with deployment strategies and rollouts.
Provide context-aware prompt suggestions for different scenarios.