This workflow is designed for DevOps engineers, platform engineers, and Kubernetes administrators who want to interact with their Kubernetes clusters through natural language queries in n8n. It's perfect for teams who need quick cluster insights without memorizing complex kubectl commands or switching between multiple cluster contexts manually.
The workflow operates in three intelligent stages:
The workflow supports multi-cluster environments and can handle queries like:
Clone the MCP Server
git clone https://github.com/aadarshjain/kubectl-mcp-server
cd kubectl-mcp-server
Configure your kubeconfig - Ensure your ~/.kube/config
contains all the clusters you want to access
Set up MCP STDIO credentials in n8n
Import the workflow into your n8n instance
Configure OpenAI credentials for the GPT-4o models
Test the workflow using the chat interface with queries like "show pods in [cluster-name]"