K8s MCP Server

Created By
alexei-leda year ago
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"
      ]
    }
  }
}
Project Info
Created At
a year ago
Updated At
a year ago
Author Name
alexei-led
Star
140
Language
Python
License
MIT license

Recommend Servers

View All
Ghl Command
@Elite DCs LLC

GoHighLevel MCP server for Claude. 212 tools across 43 modules, including the only programmatic GHL workflow builder (private API, reverse-engineered), funnel + page editor, form builder, pipeline builder, pre-deploy validator, multi-sub-account switching, bulk operations, and full account export. $97 one-time, lifetime updates. GHL Command gives Claude full programmatic control of GoHighLevel through 212 tools across 43 modules. Built for GoHighLevel agency operators who manage many client sub-accounts and want to onboard new clients in minutes instead of days. Exclusive capabilities (none of the free GHL MCPs have these): - Programmatic workflow builder. Create, edit, clone, publish, and validate complete GHL workflows from a single prompt. GHL's public API has no workflow write endpoints; this uses their internal API (the same one their UI calls). - Funnel + page editor and form builder (also private API). - Pipeline builder, goal event builder, full 57-native-trigger registry. - Pre-deploy validator that catches GHL's silent invalid-ID failure (a common workflow-breaking bug GHL never warns you about). - Multi-sub-account token registry. Switch between any client account mid-conversation; API keys swap automatically. - Bulk operations: tag, update, enroll, delete hundreds of contacts in one command. - Full account export and side-by-side location diff for audit or migration. Works with Claude Desktop App, Claude Code (terminal), and headless on a Linux server or droplet. $97 one-time, 3 machines, no subscription, lifetime updates. 30-day time-back guarantee: save 5+ hours on one real client build or full refund.

a day ago
Gelbooru

17 hours ago