Skip to main content
Glama

k8s-pilot-ci

대장간 배지

쿠버네티스 플릿을 위한 중앙 파일럿 ✈️✈️

k8s_pilot 은 여러 개의 Kubernetes 클러스터를 동시에 관리하기 위한 가볍고 중앙 집중화된 제어 평면 서버입니다.
강력한 도구와 직관적인 API를 통해 하나의 조종석에서 모든 클러스터를 관찰하고 제어할 수 있습니다.


🚀 개요

  • 🔄 멀티 클러스터 컨텍스트 전환 지원

  • 🔧 가장 일반적인 Kubernetes 리소스에 대한 CRUD 작업을 활성화합니다.

  • ⚙️ Claude AI 및 그 이상을 위한 MCP 기반


Related MCP server: Multi-Cluster MCP Server

🧰 필수 조건

  • Python 3.13 이상

  • uv 패키지 관리자

  • Kubernetes 클러스터에 액세스( ~/.kube/config 또는 클러스터 내 구성)

지엑스피1

설치

# Clone the repository
git clone https://github.com/bourbonkk/k8s-pilot.git
cd k8s-pilot

# Launch with uv + MCP
uv run --with mcp[cli] mcp run k8s_pilot.py

Claude Desktop과 함께 사용

Claude 내에서 k8s_pilot MCP 서버를 실행하려면 이 구성을 사용하세요.

{
  "mcpServers": {
    "k8s_pilot": {
      "command": "uv",
      "args": [
        "--directory",
        "<path-to-cloned-repo>/k8s-pilot",
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "k8s_pilot.py"
      ]
    }
  }
}

저장소를 복제한 실제 디렉토리로 바꾸세요.

대본

pypy 네임스페이스에서 nginx:latest 이미지를 사용하여 배포를 만들고, 이에 연결하는 서비스도 만듭니다. 배포와 서비스생성(영어

주요 특징

다중 클러스터 관리

  • 여러 Kubernetes 클러스터와 원활하게 상호 작용

  • 컨텍스트 인식 작업 수행

  • MCP 프롬프트를 통해 클러스터 간을 쉽게 전환합니다.

자원 제어

  • 보기, 생성, 업데이트, 삭제:

    • 배포, 서비스, 포드

    • ConfigMaps, Secrets, Ingresses

    • StatefulSets, DaemonSets

    • 역할, 클러스터 역할

    • 영구 볼륨 및 클레임

네임스페이스 작업

  • 네임스페이스 생성/삭제

  • 네임스페이스의 모든 리소스 나열

  • 레이블 및 리소스 할당량 관리

노드 관리

  • 노드 세부 정보 및 조건 보기

  • Cordon/uncordon, 레이블/오염 노드

  • 노드당 포드 나열

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 라이선스 파일을 참조하세요.

Available Tools

57 tools
add_namespace_labelB

Add or update a label on a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to add label_value: The label value to set

Returns: JSON string containing the updated namespace labels

Inputs: label_key (required), namespace (required), label_value (required), context_name (required).

add_node_labelB

Add or update a label to a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to add label_value: The label value to set

Returns: JSON string containing the updated node labels

Inputs: label_key (required), node_name (required), label_value (required), context_name (required).

clusterrole_createC

Create a ClusterRole in the cluster.

Args: context_name: The Kubernetes context name name: The ClusterRole name rules: List of policy rules

Returns: Status of the creation operation

Inputs: name (required), rules (required), context_name (required).

clusterrole_deleteB

Delete a ClusterRole from the cluster.

Args: context_name: The Kubernetes context name name: The ClusterRole name

Returns: Status of the deletion operation

Inputs: name (required), context_name (required).

clusterrole_getC

Get details of a specific ClusterRole.

Args: context_name: The Kubernetes context name name: The ClusterRole name

Returns: Detailed information about the ClusterRole

Inputs: name (required), context_name (required).

clusterrole_listC

List all ClusterRoles in the cluster.

Args: context_name: The Kubernetes context name

Returns: List of ClusterRole basic information

Inputs: context_name (required).

configmap_createB

Create a ConfigMap in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name data: The data to store in the ConfigMap

Returns: Status of the creation operation

Inputs: data (required), name (required), namespace (required), context_name (required).

configmap_deleteB

Delete a ConfigMap from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

configmap_getB

Get details of a specific ConfigMap.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name

Returns: Detailed information about the ConfigMap

Inputs: name (required), namespace (required), context_name (required).

configmap_listB

List all ConfigMaps in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ConfigMap basic information

Inputs: namespace (required), context_name (required).

configmap_updateB

Update an existing ConfigMap in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ConfigMap name data: The new data to update in the ConfigMap

Returns: Status of the update operation

Inputs: data (required), name (required), namespace (required), context_name (required).

create_namespaceB

Create a new namespace.

Args: context_name: The Kubernetes context name namespace: The name for the new namespace labels: Optional dictionary of labels to apply to the namespace

Returns: JSON string containing information about the created namespace

Inputs: namespace (required), context_name (required), labels.

daemonset_updateC

Update an existing DaemonSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name image: The new container image to update

Returns: Status of the update operation

Inputs: name (required), image (required), namespace (required), context_name (required).

delete_namespaceB

Delete a namespace and all resources within it.

Args: context_name: The Kubernetes context name namespace: The name of the namespace to delete

Returns: JSON string containing the result of the operation

Inputs: namespace (required), context_name (required).

deployment_deleteB

Delete a Deployment from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

deployment_listB

List all Deployments in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Deployment basic information

Inputs: namespace (required), context_name (required).

deployment_updateB

Update an existing Deployment in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Deployment name image: The new container image to update replicas: The new number of replicas

Returns: Status of the update operation

Inputs: name (required), image (required), replicas (required), namespace (required), +1 more.

get_clustersC

Get all clusters from the kubeconfig file. :return:

Inputs: no named parameters.

get_current_clusterC

Get the current cluster from the kubeconfig file. :return:

Inputs: no named parameters.

get_namespace_detailsC

Get detailed information about a specific namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace to get details for

Returns: JSON string containing detailed information about the namespace

Inputs: namespace (required), context_name (required).

get_node_detailsC

Get detailed information about a specific node.

Args: context_name: The Kubernetes context name node_name: The name of the node to get details for

Returns: JSON string containing detailed information about the node

Inputs: node_name (required), context_name (required).

ingress_createB

Create an Ingress in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name host: The host for the Ingress service_name: The backend service name service_port: The backend service port

Returns: Status of the creation operation

Inputs: host (required), name (required), namespace (required), context_name (required), +2 more.

ingress_deleteB

Delete an Ingress from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

ingress_getC

Get details of a specific Ingress.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name

Returns: Detailed information about the Ingress

Inputs: name (required), namespace (required), context_name (required).

ingress_listB

List all Ingresses in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Ingress basic information

Inputs: namespace (required), context_name (required).

ingress_updateB

Update an existing Ingress in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name host: The new host for the Ingress service_name: The new backend service name service_port: The new backend service port

Returns: Status of the update operation

Inputs: host (required), name (required), namespace (required), context_name (required), +2 more.

list_namespacesB

List all namespaces in the Kubernetes cluster.

Args: context_name: The Kubernetes context name

Returns: JSON string containing basic information about all namespaces

Inputs: context_name (required).

list_nodesB

List all nodes in the Kubernetes cluster.

Args: context_name: The Kubernetes context name

Returns: JSON string containing basic information about all nodes

Inputs: context_name (required).

pod_detailC

Get details of a specific pod.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name

Returns: Detailed information about the pod

Inputs: name (required), namespace (required), context_name (required).

pod_logsB

Get logs from a pod or a specific container within the pod.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name container: Optional container name (if pod has multiple containers) tail_lines: Number of lines to retrieve from the end of the logs previous: Whether to get logs from a previous instance of the container

Returns: Pod logs

Inputs: name (required), namespace (required), context_name (required), previous, +2 more.

pod_updateB

Update an existing pod's metadata (only labels can be updated for an existing pod).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The pod name labels: New labels to apply to the pod

Returns: Information about the updated pod

Inputs: name (required), namespace (required), context_name (required), labels.

pvc_deleteB

Delete a PersistentVolumeClaim from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

pvc_getC

Get details of a specific PersistentVolumeClaim.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The PersistentVolumeClaim name

Returns: Detailed information about the PersistentVolumeClaim

Inputs: name (required), namespace (required), context_name (required).

pvc_listB

List all PersistentVolumeClaims in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of PersistentVolumeClaim basic information

Inputs: namespace (required), context_name (required).

pv_createB

Create a PersistentVolume in the cluster.

Args: context_name: The Kubernetes context name name: The PersistentVolume name capacity: The storage capacity (e.g., "10Gi") access_modes: List of access modes (e.g., ["ReadWriteOnce"]) storage_class: The storage class name host_path: The host path for the volume

Returns: Status of the creation operation

Inputs: name (required), capacity (required), host_path (required), access_modes (required), +2 more.

pv_deleteC

Delete a PersistentVolume from the cluster.

Args: context_name: The Kubernetes context name name: The PersistentVolume name

Returns: Status of the deletion operation

Inputs: name (required), context_name (required).

pv_updateC

Update an existing PersistentVolume's metadata (e.g., labels).

Args: context_name: The Kubernetes context name name: The PersistentVolume name labels: New labels to apply to the PersistentVolume

Returns: Status of the update operation

Inputs: name (required), labels (required), context_name (required).

remove_namespace_labelC

Remove a label from a namespace.

Args: context_name: The Kubernetes context name namespace: The name of the namespace label_key: The label key to remove

Returns: JSON string containing the updated namespace labels

Inputs: label_key (required), namespace (required), context_name (required).

remove_node_labelC

Remove a label from a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify label_key: The label key to remove

Returns: JSON string containing the updated node labels

Inputs: label_key (required), node_name (required), context_name (required).

remove_node_taintB

Remove a taint from a node.

Args: context_name: The Kubernetes context name node_name: The name of the node to modify taint_key: The taint key to remove

Returns: JSON string containing the updated node taints

Inputs: node_name (required), taint_key (required), context_name (required).

replicaset_createB

Create a ReplicaSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name image: The container image to use replicas: Number of replicas labels: Labels to apply to the ReplicaSet

Returns: Status of the creation operation

Inputs: name (required), image (required), labels (required), replicas (required), +2 more.

replicaset_getC

Get details of a specific ReplicaSet.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The ReplicaSet name

Returns: Detailed information about the ReplicaSet

Inputs: name (required), namespace (required), context_name (required).

replicaset_listB

List all ReplicaSets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ReplicaSet basic information

Inputs: namespace (required), context_name (required).

role_createB

Create a Role in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name rules: List of policy rules

Returns: Status of the creation operation

Inputs: name (required), rules (required), namespace (required), context_name (required).

role_deleteB

Delete a Role from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

role_getB

Get details of a specific Role.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Role name

Returns: Detailed information about the Role

Inputs: name (required), namespace (required), context_name (required).

role_listC

List all Roles in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Role basic information

Inputs: namespace (required), context_name (required).

secret_createB

Create a Secret in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name data: A dictionary of key-value pairs (values will be base64 encoded) secret_type: The type of the Secret (default is "Opaque")

Returns: Status of the creation operation

Inputs: data (required), name (required), namespace (required), context_name (required), +1 more.

secret_deleteA

Delete a Secret from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Secret name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

secret_listC

List all Secrets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of Secret basic information

Inputs: namespace (required), context_name (required).

serviceaccount_listC

List all ServiceAccounts in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of ServiceAccount basic information

Inputs: namespace (required), context_name (required).

service_createB

Create a Service in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name selector: A dictionary of labels to select the target pods ports: A list of ports (e.g., [{"port": 80, "target_port": 8080}]) service_type: The type of the Service (default is "ClusterIP")

Returns: Status of the creation operation

Inputs: name (required), ports (required), selector (required), namespace (required), +2 more.

service_deleteC

Delete a Service from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

service_updateC

Update an existing Service's metadata (e.g., labels).

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Service name labels: New labels to apply to the Service

Returns: Status of the update operation

Inputs: name (required), labels (required), namespace (required), context_name (required).

statefulset_createC

Create a StatefulSet in the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name image: The container image to use replicas: Number of replicas labels: Labels to apply to the StatefulSet

Returns: Status of the creation operation

Inputs: name (required), image (required), labels (required), replicas (required), +2 more.

statefulset_deleteB

Delete a StatefulSet from the specified namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The StatefulSet name

Returns: Status of the deletion operation

Inputs: name (required), namespace (required), context_name (required).

uncordon_nodeC

Uncordon a node (mark as schedulable).

Args: context_name: The Kubernetes context name node_name: The name of the node to uncordon

Returns: JSON string containing the result of the operation

Inputs: node_name (required), context_name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 57 tools

    Disambiguation5/5

    Each tool targets a distinct Kubernetes resource or operation (e.g., clusterrole_create vs clusterrole_delete, pod_logs vs pod_detail). There is no ambiguity between tools as they clearly differentiate by resource and action.

    Naming Consistency2/5

    Tool names mix styles: some use verb_noun (e.g., create_namespace), others use noun_verb (e.g., configmap_create). Additionally, there are inconsistencies like plural vs singular (list_namespaces vs clusterrole_list). This makes naming unpredictable.

    Tool Count3/5

    57 tools is high for a Kubernetes MCP server. While the scope is broad, many tools are redundant or could be combined (e.g., separate add/remove label tools for namespaces and nodes). The count exceeds typical ranges, but it is still manageable.

    Completeness2/5

    The server covers various resources but has notable gaps: missing deployment_create and deployment_get, no pod creation, no support for common resources like HPA, NetworkPolicy, or RBAC bindings. This limits its ability to perform complete workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A Model Context Protocol server that enables AI assistants to interact with Kubernetes clusters through natural language, supporting core Kubernetes operations, monitoring, security, and diagnostics.
      280 npm
      976
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      A gateway for Generative AI systems to interact with multiple Kubernetes clusters through Model Context Protocol, enabling comprehensive Kubernetes resource operations and multi-cluster management.
      4
      5
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables interaction with multiple Kubernetes clusters simultaneously, providing comprehensive tools for cluster management, resource operations, and diagnostics across different environments.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that lets AI assistants query multiple Kubernetes clusters simultaneously using natural language.
      3
      MIT