Submit

K8s MCP Server

@alexei-led

K8s-mcp-server is a Model Context Protocol (MCP) server that enables AI assistants like Claude to securely execute Kubernetes commands. It provides a bridge between language models and essential Kubernetes CLI tools including kubectl, helm, istioctl, and argocd, allowing AI systems to assist with cluster management, troubleshooting, and deployments
Overview

What is K8s MCP Server?

K8s MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude to securely execute Kubernetes commands. It acts as a bridge between language models and essential Kubernetes CLI tools such as kubectl, helm, istioctl, and argocd, facilitating cluster management, troubleshooting, and deployments.

How to use K8s MCP Server?

To use K8s MCP Server, you need to run it in a Docker container with your Kubernetes configuration mounted. You can then interact with it through an AI assistant like Claude to perform Kubernetes operations.

Key features of K8s MCP Server?

  • Secure execution of Kubernetes CLI commands with validation and error handling.
  • Support for multiple Kubernetes CLI tools: kubectl, helm, istioctl, argocd.
  • Command piping capabilities with popular Linux CLI tools.
  • Detailed command validation and safety checks.
  • Context and namespace management.
  • Pre-built prompt templates for common Kubernetes operations.

Use cases of K8s MCP Server?

  1. Deploying applications using Helm.
  2. Managing Kubernetes resources with kubectl.
  3. Troubleshooting issues in a Kubernetes cluster using istioctl and argocd.

FAQ from K8s MCP Server?

  • Can K8s MCP Server execute all Kubernetes commands?

Yes, it can execute a wide range of commands securely, but some commands may be restricted based on security settings.

  • Is K8s MCP Server free to use?

Yes, it is open-source and free to use.

  • How does K8s MCP Server ensure security?

It validates commands before execution and runs in a containerized environment to prevent unauthorized access.

Server Config

{
  "mcpServers": {
    "k8s-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--network=host",
        "-v",
        "/Users/YOUR_USER_NAME/.kube:/home/appuser/.kube",
        "ghcr.io/alexei-led/k8s-mcp-server:latest"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.