Kubectl MCP Server
Kubernetes infrastructure management via natural language AI conversations.
Data last scanned today · Reviewed today
Overview
The Kubectl MCP Server provides a bridge between AI models and Kubernetes environments. It enables users to perform complex cluster operations—such as debugging pods, deploying applications, auditing security, and managing Helm charts—by issuing natural language commands rather than manual command-line inputs. The server is designed for interactive DevOps workflows, allowing AI assistants to visualize cluster dashboards and optimize resource costs directly. It is part of the CNCF landscape and supports integration across multiple AI interfaces using the Model Context Protocol.
Our verdict
This server carries a high-risk score of 42/100, primarily due to the fact that it is community-maintained and not backed by an official Kubernetes vendor, alongside its status as not yet editorially reviewed. Given that the authentication and read-only access modes remain unreviewed, users should exercise extreme caution when granting this tool access to sensitive production clusters until security audits are performed.
- Supports zero direct dependencies for a reduced supply-chain surface
- Comprehensive documentation provided within the repository
- Maintains an active development status with 941 GitHub stars
- Licensed under the permissive MIT license
- Security-critical authentication methods have not been externally reviewed
- Lacks verification of read-only mode, posing potential configuration risks
- High-risk score due to reliance on community maintenance
- Last repository commit occurred over four months ago
Setup
{
"mcpServers": {
"kubectl-mcp-server": {
"args": [
"-y",
"kubectl-mcp-server"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| get_pods | List pods in the cluster | low |
| get_logs | Retrieve logs from a specific pod | low |
| get_pod_events | Fetch events associated with a pod | low |
| check_pod_health | Analyze the health of a pod | low |
| exec_in_pod | Execute commands inside a container in a pod | high |
| cleanup_pods | Delete pods according to specified criteria | high |
| get_pod_conditions | Get status conditions for a pod | low |
| get_previous_logs | Retrieve logs from the previous container instance | low |
| get_deployments | List deployments in the cluster | low |
| create_deployment | Create a new deployment | medium |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf | ||||
| ChatGPT |
Frequently asked questions
›What are the language requirements to install this server?
The server requires Python 3.9 or higher if using pip, or a Node.js environment if using npx.
›How can I enable interactive dashboard features?
You can install the server with the optional UI features using the command 'pip install kubectl-mcp-server[ui]'.
›Is it possible to run this server without a permanent installation?
Yes, you can run the server directly using 'npx -y kubectl-mcp-server' for a zero-install experience.
›Does this server support managing multiple Kubernetes clusters?
Yes, the server includes multi-cluster support for managing your infrastructure.
›Can the server be deployed directly inside a Kubernetes cluster?
Yes, the README mentions support for in-cluster deployment.
Changelog
- Newv1.24.0 - 3D Cluster Topology Viewer
2026-02-20
- Security
- Fixv1.23.0
2026-02-03
- New
- Newv1.21.0 - vind, kind & Enhanced Skills
2026-01-30
- Newv1.19.3
2026-01-27
- Newv1.19.2
2026-01-27
- Improvedv1.19.1
2026-01-27
- New
- Security
Badge
Maintain this server? Add the live badge to your README.