Kubectl MCP Server

The `kubectl-mcp` plugin implements a [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) server for kubectl. This server enables

Local serverstdioGo

What is the Kubectl MCP MCP server?

Kubectl mcp mcp server connects Kubectl MCP to AI assistants that speak the Model Context Protocol. The kubectl-mcp plugin implements a Model Context Protocol (MCP) server for kubectl. This server enables AI assistants like Amazon Q to interact with kubectl functionality directly through a standardized protocol, allowing for seamless integration of.

What Kubectl MCP does

The kubectl-mcp plugin implements a Model Context Protocol (MCP) server for kubectl. This server enables AI assistants like Amazon Q to interact with kubectl functionality directly through a standardized protocol, allowing for seamless integration of kubectl commands into AI-powered workflows.

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • Discoverability — AI assistants can discover available commands and their parameters
  • Context-Aware — Provides rich context about Kubernetes resources

Installing the kubectl mcp mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Where it fits

Cloud and DevOps servers put infrastructure on speaking terms with your assistant, so "why is this broken?" is answered from real state rather than a generic checklist. Kubectl MCP sits in that group, and the shape of its toolset — Discoverability, Context-Aware — tells you what it is really for. Worth comparing against the other cloud devops servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by dims, written in Go.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the kubectl mcp mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
DiscoverabilityAI assistants can discover available commands and their parameters
Context-AwareProvides rich context about Kubernetes resources

How to install the Kubectl MCP MCP server

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

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Kubectl MCP to Discoverability.
  • Use Kubectl MCP to Context-Aware.

Frequently asked questions

It connects Kubectl MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Discoverability, Context-Aware) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Kubectl MCP directly.