kubectl-mcp-server
Kubectl MCP Tool is a Model Context Protocol server designed for Kubernetes, facilitating natural language interaction with AI assistants to manage clusters efficiently. It offers extensive features including core Kubernetes operations, natural language processing, monitoring, security, and diagnostics.
Kubectl MCP Tool
A Model Context Protocol (MCP) server for Kubernetes enabling AI assistants like Claude and Cursor to interact with Kubernetes clusters through natural language.
Features
- Core Kubernetes Operations: Manage pods, services, deployments; get logs; helm operations; context switching.
- Natural Language Processing: Process queries; intelligent command construction.
- Monitoring: Track cluster health, resource utilization, event monitoring.
- Security: Validate RBAC, secure connections, manage credentials.
- Diagnostics: Cluster diagnostics, error analysis.
- Advanced Features: Cross-namespace operations, batch operations, custom resource definitions.
Architecture
Implements MCP to allow AI assistants to interact with Kubernetes through a standardized interface, containing an MCP server, tools registry, and response formatter.
Installation
Install via PyPI using pip install kubectl-mcp-tool
. Prerequisites include Python 3.9+, kubectl CLI, and Kubernetes cluster access.
Usage with AI Assistants
Provides a robust MCP Server implementation compatible with various AI assistants like Claude Desktop, Cursor AI, and Windsurf.