Back to MCP Servers

Kubernetes Server

Manage Kubernetes clusters, pods, deployments, and services through natural language commands

kubernetesk8scontainersdevopsinfrastructurecommunity

Installation

npm install -g @mcp/kubernetes-server

Configuration

{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": ["-y", "@mcp/kubernetes-server"],
      "env": {
        "KUBECONFIG": "~/.kube/config"
      }
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes