Back to MCP Servers

Kubectl

A Model Context Protocol (MCP) server for Kubernetes that enables AI assistants like Claude, Cursor, and others to interact with Kubernetes clusters through natural language.

cloud-platformskubernetesai

Installation

npx -y kubectl-mcp-server

Configuration

{
  "mcpServers": {
    "kubectl-mcp-server": {
      "command": "npx",
      "args": ["-y", "kubectl-mcp-server"]
    }
  }
}

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
View source on GitHub