CLI tool for interacting with Kubernetes clusters using natural language
Top 51.3% on sourcepulse
This project provides a Model Context Protocol (MCP) server for Kubernetes, enabling AI assistants like Claude and Cursor to interact with clusters via natural language. It targets developers and DevOps engineers seeking to leverage AI for Kubernetes management, offering a more intuitive and efficient way to perform complex operations.
How It Works
The tool implements the Model Context Protocol (MCP) by acting as a server that translates natural language queries into Kubernetes API operations. It registers various Kubernetes actions (listing pods, managing deployments, Helm operations, etc.) as MCP tools. A transport layer (stdio, SSE, HTTP) facilitates communication with AI clients, which then send requests to the server. The server processes these requests, executes the corresponding kubectl or Helm commands, formats the output, and returns it to the AI assistant.
Quick Start & Requirements
pip install kubectl-mcp-tool
kubectl
CLI configured, access to a Kubernetes cluster.kubectl-mcp --help
install.sh
script is provided for automated setup.Highlighted Details
Maintenance & Community
The project is actively maintained by rohitg00. Contributions are welcome via Pull Requests.
Licensing & Compatibility
Licensed under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
The project is currently experiencing JSON parsing issues affecting its functionality with Claude, Cursor, and Windsurf. The author is independently working on a resolution, which may take time. Users are encouraged to submit Pull Requests if they can help debug these issues.
2 weeks ago
1 day