MCP.so
Sign In

Kubectl MCP Tool

@rohitg00

Basic information

Category

Other

Last updated

License

MIT

Transports

stdio

Author

rohitg00

About Kubectl MCP Tool

Published in CNCF Landscape: A MCP server for Kubernetes.

Kubectl MCP Tool config

Add this server to your MCP-compatible client using the configuration below.

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

Kubectl MCP Tool tools

26

List or get any Kubernetes resource, including custom resources (kubectl get).

Get container logs (kubectl logs).

CPU and memory usage of pods or nodes from metrics-server (kubectl top).

Scale a deployment, statefulset, replicaset or any scalable resource (kubectl scale).

Detect installed operators (Flux, Argo CD, cert-manager, Kyverno, Istio, ...) and local CLIs, and report which toolsets or dedicated MCP servers cover them.

Install a Helm chart.

Upgrade a Helm release.

Uninstall a Helm release.

List Helm releases with optional filtering.

Get the status of a Helm release.

Get the revision history of a Helm release.

Get details of a Helm release: values, manifest, notes, hooks, or all.

Rollback a Helm release to a previous revision.

Apply a YAML manifest to the cluster.

Describe a Kubernetes resource in detail.

Execute any kubectl command. Use with caution.

Patch a Kubernetes resource.

Manage rollouts (restart, status, history, undo, pause, resume).

Delete a Kubernetes resource.

Execute a command inside a pod.

Automated diagnosis of pod crash loops and failures.

Find pending pods and explain why they are not scheduled.

List all available kubectl contexts with detailed info. Returns all contexts from kubeconfig with cluster, user, namespace info.

Perform a cluster health check.

Explain a Kubernetes resource.

Get available API resources.

Overview

What is Kubectl MCP Tool?

Kubectl MCP Tool lets you control Kubernetes infrastructure through natural language conversations with AI. It integrates with any MCP-compatible AI assistant and kubectl to manage clusters, debug issues, deploy apps, and audit security.

How to use Kubectl MCP Tool?

Install via npx (npx -y kubectl-mcp-server) or pip (pip install kubectl-mcp-server), then add the server configuration to your AI assistant’s MCP settings file (e.g., claude_desktop_config.json or .cursor/mcp.json). Once connected, use natural language commands to interact with your cluster.

Key features of Kubectl MCP Tool?

  • 253 powerful tools and 8 workflow prompts
  • AI-powered crash and network diagnostics
  • Built-in cost optimization analysis
  • Enterprise OAuth 2.1 authentication and RBAC validation
  • Interactive HTML dashboards with live metrics
  • Works with all major MCP-compatible AI assistants

Use cases of Kubectl MCP Tool?

  • Debugging a crashing pod with logs, events, and resource analysis
  • Deploying a Redis cluster with best practices via natural language
  • Auditing RBAC permissions and security across all namespaces
  • Identifying idle resources and cost optimization opportunities
  • Visualizing cluster dashboards with live metrics and event timelines

Frequently asked questions

1

What are the dependencies to run Kubectl MCP Tool?

You need Python 3.9+ (for pip) or Node.js 14+ (for npx), kubectl installed and configured, and access to a Kubernetes cluster.

2

Which AI assistants are supported?

Kubectl MCP Tool works natively with Claude Desktop, Cursor, Windsurf, GitHub Copilot, Gemini CLI, Goose, Roo Code, and 15+ other MCP-compatible clients.

3

Can I manage multiple Kubernetes clusters?

Yes, the

Comments

More Other MCP servers