Kubectl MCP Server
Kubectl MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Published in CNCF Landscape: A MCP server for Kubernetes. It has 962 GitHub stars, is released under the MIT license and runs locally with npx -y kubectl-mcp-server.
- Cloud & DevOps
- MIT
- Maintained
Install Kubectl MCP Server
Generated from the server's published package. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"kubectl-mcp-server": {
"command": "npx",
"args": [
"-y",
"kubectl-mcp-server"
],
"env": {
"KUBECONFIG": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env KUBECONFIG=your-value --transport stdio kubectl-mcp-server -- npx -y kubectl-mcp-serverCursor
{
"mcpServers": {
"kubectl-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubectl-mcp-server"
],
"env": {
"KUBECONFIG": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"kubectl-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kubectl-mcp-server"
],
"env": {
"KUBECONFIG": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
KUBECONFIG | No | Shown in the README's example configuration. |
About Kubectl MCP Server
Control your entire Kubernetes infrastructure through natural language conversations with AI. Talk to your clusters like you talk to a DevOps expert. Debug crashed pods, optimize costs, deploy applications, audit security, manage Helm charts, and visualize dashboards, all through natural language. Part of CNCF Landscape, Next to Terraform
- ai
- deployment
- devops
- genai
- kubernetes
- kubernetes-cluster
- llms
- mcp
- mcp-server
- kubernetes-tools
Similar MCP servers
More cloud & devops MCP servers
Worldmonitor
koala73/worldmonitor
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface.
Cloud & DevOpsTypeScriptNetdata
netdata/netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Cloud & DevOpsGoopenstatus
openstatusHQ/openstatus
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
OfficialCloud & DevOpsTypeScriptMCP Server Cloudflare
cloudflare/mcp-server-cloudflare
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems.
OfficialCloud & DevOpsTypeScriptDagu
dagucloud/dagu
Self-hostable workflow orchestrator for teams whose main work isn't orchestration.
Cloud & DevOpsGoAzure MCP Server
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.
OfficialCloud & DevOpsC#
What is Kubectl MCP Server?
Kubectl MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Published in CNCF Landscape: A MCP server for Kubernetes. It has 962 GitHub stars, is released under the MIT license and runs locally with npx -y kubectl-mcp-server. The source code is at github.com/rohitg00/kubectl-mcp-server.
How do I install the Kubectl MCP Server MCP server?
Add the command npx -y kubectl-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Kubectl MCP Server free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is Kubectl MCP Server actively maintained?
The most recent commit was on Apr 8, 2026. The latest release is v1.24.0, published Feb 20, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.