kubectl-mcp-server

v2.0.0
kubectl-mcp-server Checked 9 hours ago Published 1 month ago

Stateless Model Context Protocol (MCP 2026-07-28) server for Kubernetes with 280+ tools, resources, and prompts

PyPI (uvx) verified

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add kubectl-mcp-server -- uvx kubectl-mcp-server==2.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kubectl-mcp-server": {
      "args": [
        "kubectl-mcp-server==2.0.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kubectl-mcp-server": {
      "args": [
        "kubectl-mcp-server==2.0.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "kubectl-mcp-server": {
      "args": [
        "kubectl-mcp-server==2.0.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kubectl-mcp-server]
command = "uvx"
args = ["kubectl-mcp-server==2.0.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: kubectl_get, kubectl_logs, kubectl_top, kubectl_scale, detect_ecosystem, install_helm_chart, upgrade_helm_chart, uninstall_helm_chart, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json