kubectl-mcp-server

The Kubectl MCP Tool is a Model Context Protocol server for Kubernetes, enabling AI assistants to interact with clusters using natural language for core operations and resource management.

386
18

Kubectl MCP Tool

A Model Context Protocol (MCP) server for Kubernetes, enabling AI assistants to interact with Kubernetes clusters using natural language. It supports core Kubernetes operations like managing pods, services, deployments, and nodes. Features include natural language processing for kubectl operations, cluster health monitoring, RBAC validation, and diagnostics.

Currently, there are known JSON parsing issues affecting Claude, Cursor, and Windsurf, which are being actively addressed.

The tool supports CLI and server modes. Installation is via pip install kubectl-mcp-tool. It integrates with AI assistants by configuring MCP servers in their settings, pointing to the kubectl_mcp_tool.minimal_wrapper. An installation script automates this process. Key features are demonstrated through examples like listing pods and deploying applications. The project structure includes modules for core functionality, security, monitoring, and testing. Contributions are welcome via pull requests. Licensed under MIT.

Repository

RO
rohitg00

rohitg00/kubectl-mcp-server

Created

March 23, 2025

Updated

March 28, 2025

Language

Python

Category

Developer Tools