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 964 GitHub stars, is released under the MIT license and runs locally with npx -y kubectl-mcp-server.
github.com/rohitg00/kubectl-mcp-server (opens in a new tab)
Data as of from the GitHub API; description from the project's repository. Report an error
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, and manage Helm charts, 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
StackQL MCP Server
stackql/stackql
SQL-native query and provisioning engine for cloud infrastructure, served over MCP.
Active · last commit Oct 25, 2026
OfficialCloud & DevOpsGoMCP Nixos
utensils/mcp-nixos
MCP-NixOS - Model Context Protocol Server for NixOS resources.
Active · last commit Oct 26, 2026
OfficialCloud & DevOpsPythonSearch2ai
fatwang2/search2ai
Self-hosted search gateway for AI agents.
Active · last commit Oct 22, 2026
Cloud & DevOpsTypeScriptGolf
golf-mcp/golf
Production-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents.
Active · last commit Sep 9, 2026
Cloud & DevOpsPythonMCPJungle
mcpjungle/MCPJungle
One place to manage & connect to all your MCP servers.
Active · last commit Oct 25, 2026
Cloud & DevOpsGoSSH — policy-gated remote access
tufantunc/ssh-mcp
Policy-gated, audited SSH for Linux and Windows hosts: roles, approvals, and an audit log.
Active · last commit Oct 26, 2026
Cloud & DevOpsTypeScript
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 Oct 22, 2026. The latest release is v2.0.0, published Oct 22, 2026. appsgit only lists MCP servers with a commit in the last six months.