Skip to content
appsgit

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.

github.com/rohitg00/kubectl-mcp-server (opens in a new tab)

Install Kubectl MCP Server

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "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-server

Cursor

.cursor/mcp.json
{
  "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

.vscode/mcp.json
{
  "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.

NameRequiredDescription
KUBECONFIGNoShown 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

FAQ

Kubectl MCP Server FAQ

Still curious? Email info@appsgit.com.

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.