Skip to main content
Glama

KubeAid MCP

KubeAid로 관리되는 Kubernetes 클러스터를 위한 MCP 서버입니다. Claude Code, Claude Desktop, Cursor 또는 MCP 호환 클라이언트에 연결하여 "어떤 앱이 동기화되지 않았지?", "kube-prometheus가 왜 degraded 상태지?", "cert-manager 앱을 동기화해줘" 같은 질문을 할 수 있습니다 — 모델은 이 서버의 도구를 호출하여 답변하며, 이 도구들은 사용자 자신의 kubeconfig 자격 증명을 통해 클러스터와 통신합니다.

공식 @modelcontextprotocol/sdk와 @kubernetes/client-node를 기반으로 TypeScript로 구축되었습니다.

저자: Deep Poharkar

왜 KubeAid 전용인가?

KubeAid는 GitOps 방식으로 클러스터를 운영합니다: 모든 애플리케이션은 kubeaid-config 저장소에서 생성된 ArgoCD Application이며, 자동 동기화는 기본적으로 비활성화되어 있습니다 — Git과 클러스터 간의 드리프트는 정상적인 현상이며 의도적인 동기화를 기다립니다. 일반적인 Kubernetes 어시스턴트는 이러한 워크플로우를 이해하지 못합니다. 이 서버는 이해합니다:

  • ArgoCD Application CR은 일급 시민입니다: 동기화 상태, 상태, 실패 조건, 드리프트된 리소스가 한 번의 도구 호출로 확인됩니다.

  • 동기화는 KubeAid에서의 명시적인 "지금 배포" 결정으로 모델링됩니다 — 옵트인 플래그로 제한되고, dry_run을 지원하며, 보호 대상으로 표시한 컨텍스트에서는 절대 허용되지 않습니다.

  • 번들된 프롬프트는 KubeAid 운영 습관을 인코딩합니다: 동기화 전에 드리프트를 검토하고, 클러스터를 직접 수정하는 대신 kubeaid-config 저장소에서 수정합니다.

Related MCP server: mcp-kubernetes-server

도구

읽기 도구 — 항상 등록됨:

도구

기능

list_contexts

서버가 대상으로 할 수 있는 kubeconfig 컨텍스트와 기본값 및 쓰기 보호 플래그.

list_argocd_apps

동기화 상태, 상태, 개정판, 자동 동기화 플래그를 포함한 모든 KubeAid 관리 ArgoCD 앱. only_problems 지원.

describe_argocd_app

한 앱을 심층적으로: 소스, 오류 조건, 드리프트/비정상 리소스, 마지막 동기화 결과, 배포 기록.

list_namespaces

상태와 수명이 포함된 네임스페이스.

list_nodes

Ready 상태, 역할, kubelet 버전, 내부 IP가 포함된 노드.

list_pods

kubectl 스타일 파생 상태(CrashLoopBackOff 등), 준비 수, 재시작, 노드, 수명이 포함된 Pod.

describe_pod

컨테이너별 상태와 마지막 크래시 세부 정보, 조건, Pod의 최근 이벤트.

get_pod_logs

컨테이너 로그 테일; previous: true는 크래시된 인스턴스의 로그를 읽습니다.

list_deployments

준비/최신/사용 가능 수가 포함된 배포.

get_events

최근 이벤트, 선택적으로 경고만, 네임스페이스별 또는 클러스터 전체.

describe_resource

apiVersion/kind/name으로 모든 리소스 — SealedSecret 또는 Certificate 같은 CRD 포함.

쓰기 도구 — KUBEAID_MCP_ALLOW_WRITES=true일 때만 등록됨:

도구

기능

sync_argocd_app

ArgoCD 동기화 트리거(KubeAid "지금 배포" 작업). revision, prune, dry_run 지원.

scale_deployment

배포의 복제본 수 설정.

rollout_restart

배포/statefulset/daemonset 롤링 재시작.

delete_pod

멈춘 pod 삭제하여 컨트롤러가 교체하도록 함.

모든 도구는 선택적 context 인수를 사용하여 단일 서버 프로세스에서 kubeconfig의 모든 클러스터를 대상으로 할 수 있습니다.

프롬프트

프롬프트는 클라이언트에서 슬래시 명령/메뉴 항목으로 나타나며 위 도구를 사용하여 모델을 워크플로우로 안내합니다:

프롬프트

워크플로우

diagnose_app

Degraded/OutOfSync 앱의 근본 원인: 조건 → 리소스 → pod 로그 → 권장 사항.

sync_review

모든 드리프트된 앱 나열, 각 대기 중인 동기화의 위험 평가, 그런 다음 아무것도 동기화하기 전에 질문.

cluster_health_check

노드, 앱, pod, 경고 이벤트 검사; 심각도별로 결과 보고.

빠른 시작

Node.js 20+ 필요.

git clone <your-repo-url> kubeaid-mcp
cd kubeaid-mcp
npm install
npm run build

Claude Code

claude mcp add kubeaid -- node "$(pwd)/dist/index.js"

기본적으로 읽기 전용입니다. 프로덕션을 건드릴 수 없게 하면서 쓰기를 활성화하려면:

claude mcp add kubeaid \
  -e KUBEAID_MCP_ALLOW_WRITES=true \
  -e KUBEAID_MCP_PROTECTED_CONTEXTS=prod-cluster-1,prod-cluster-2 \
  -- node "$(pwd)/dist/index.js"

Claude Desktop

설정 → 개발자 → 로컬 MCP 서버를 활성화한 다음, 해당 페이지에서 열리는 구성 파일에 추가하세요:

{
  "mcpServers": {
    "kubeaid": {
      "command": "node",
      "args": ["/absolute/path/to/kubeaid-mcp/dist/index.js"],
      "env": {
        "KUBEAID_MCP_ALLOW_WRITES": "true",
        "KUBEAID_MCP_PROTECTED_CONTEXTS": "prod-cluster-1"
      }
    }
  }
}

이후 앱을 완전히 종료하고 다시 엽니다.

구성

모든 구성은 환경 변수이며 시작 시 한 번 읽습니다:

변수

기본값

의미

KUBECONFIG

client-node 기본 조회(~/.kube/config)

Kubeconfig 경로.

KUBEAID_MCP_CONTEXT

현재 컨텍스트를 실시간으로 따름

고정 기본 컨텍스트를 지정. 설정되지 않으면 kubectl config use-context가 세션 중 서버를 다시 대상으로 지정; 호출별 context 인수가 항상 우선.

KUBEAID_MCP_ARGOCD_NAMESPACE

argocd

ArgoCD의 Application CR을 보유한 네임스페이스.

KUBEAID_MCP_ALLOW_WRITES

false

변경 도구를 등록할지 여부.

KUBEAID_MCP_PROTECTED_CONTEXTS

없음

쓰기가 활성화된 경우에도 모든 변경 호출을 거부하는 쉼표로 구분된 컨텍스트.

안전 모델

세 가지 독립적인 계층:

  1. 기능 게이팅 — 쓰기가 비활성화된 경우(기본값), 변경 도구는 절대 등록되지 않으므로 모델이 볼 수조차 없습니다.

  2. 보호 컨텍스트 — 모든 변경 핸들러는 대상 컨텍스트를 KUBEAID_MCP_PROTECTED_CONTEXTS와 다시 확인하고, 모델이 무엇을 요청하든 보호된 컨텍스트를 거부합니다.

  3. 클라이언트 확인 — 도구는 MCP readOnlyHint/destructiveHint 주석을 포함하므로, 잘 동작하는 클라이언트는 위험한 호출 전에 사용자에게 확인을 요청합니다.

서버는 자체 자격 증명을 보유하지 않습니다. kubeconfig ID가 RBAC를 통해 이미 권한을 부여받은 작업만 수행할 수 있습니다.

개발

npm run typecheck   # strict TS, no emit
npm run build       # compile to dist/
npm run smoke       # spawn the server, MCP handshake, list tools + prompts
KUBEAID_MCP_ALLOW_WRITES=true npm run smoke   # verify write tools register

스모크 테스트는 클러스터가 필요 없습니다 — stdio를 통해 원시 JSON-RPC 프로토콜을 구동합니다.

로드맵

  • check_chart_updates: 배포된 차트 버전을 업스트림 KubeAid argocd-helm-charts 디렉토리와 비교.

  • Sealed-secrets 도우미: SealedSecret 상태 나열, 실패한 unseal 플래그.

  • Prometheus/Alertmanager 도구: KubeAid가 제공하는 kube-prometheus 스택에서 발생하는 알림 표시.

감사의 말

  • KubeAid by Obmondo — 이 서버가 구축된 클러스터 관리 스택.

  • Argo CD — KubeAid의 기반이 되는 GitOps 엔진.

라이선스

MIT © 2026 Deep Poharkar

Available Tools

11 tools
describe_argocd_appA
Read-only

Full detail for one ArgoCD Application: Git/Helm sources, sync and health status, error conditions, the resources that are OutOfSync or unhealthy, last sync operation result and recent deploy history. Use this to diagnose why an app is Degraded or a sync failed.

Inputs: name (required), context.

describe_podA
Read-only

Deep-dive one pod: per-container state (waiting/termination reasons, last crash exit code), conditions and the pod's recent events.

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

describe_resourceA
Read-only

Fetch any Kubernetes resource (including CRDs like SealedSecret or Certificate) by apiVersion, kind and name. Returns the full object.

Inputs: kind (required), name (required), context, namespace, +1 more.

get_eventsA
Read-only

Recent cluster events, newest last. Filter to one namespace and/or Warning-type events only.

Inputs: context, namespace, only_warnings.

get_pod_logsA
Read-only

Tail a container's logs. Set previous=true to read the prior (crashed) instance's logs — essential for CrashLoopBackOff.

Inputs: name (required), namespace (required), lines, context, +2 more.

list_argocd_appsA
Read-only

List the ArgoCD Applications KubeAid manages in this cluster, with sync status (Synced/OutOfSync), health (Healthy/Degraded/...), deployed revision and whether auto-sync is on. KubeAid disables auto-sync by default, so OutOfSync apps are usually awaiting a deliberate sync. Start here for any GitOps question.

Inputs: context, project, only_problems.

list_contextsA
Read-only

List the kubeconfig contexts (clusters) this server can target, including which one is the default and which are write-protected.

Inputs: no named parameters.

list_deploymentsA
Read-only

List deployments with ready/up-to-date/available replica counts and age.

Inputs: context, namespace.

list_namespacesA
Read-only

List namespaces in the cluster with their status and age.

Inputs: context.

list_nodesA
Read-only

List cluster nodes with Ready status, roles, kubelet version and internal IP.

Inputs: context.

list_podsA
Read-only

List pods with derived status (CrashLoopBackOff, ImagePullBackOff, Terminating, ...), ready count, restarts, node and age.

Inputs: context, namespace.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct resource/action - nodes, events, ArgoCD apps, pods, deployments, generic resource fetch, contexts, namespaces - with no overlapping purposes. The list/describe pairs for pods and ArgoCD apps are clearly separated by summary vs. detail, and describe_resource is explicitly generic.

    Naming Consistency5/5

    Naming follows a consistent verb_noun pattern: list_* for summary listings, describe_* for detailed views, and get_pod_logs as a specific action. Even though get_events uses 'get' instead of 'list', the pattern is predictable and readable, so deviation is minor and not confusing.

    Tool Count5/5

    With 11 tools, the set is well-scoped for a Kubernetes diagnostic server. Each tool addresses a common troubleshooting need (node health, pod issues, logs, ArgoCD sync, deployments) without excess or missing core operations.

    Completeness5/5

    The surface covers the main diagnostic workflows: listing and describing nodes, pods, deployments, and ArgoCD apps; retrieving events and logs; fetching any resource via describe_resource; and listing contexts/namespaces. For a read-only troubleshooting tool, this is comprehensive with no critical dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      An MCP (Model Context Protocol) server that integrates with the ArgoCD API, enabling AI assistants and large language models to manage ArgoCD applications and resources through natural language interactions.
      10
      12
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI assistants to interact with Kubernetes clusters by translating natural language into kubectl and Helm operations. It allows users to query, manage, and diagnose Kubernetes resources and cluster states through a seamless integration.
      20
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A lightweight MCP server that enables AI assistants to deploy, inspect, and operate Kubernetes workloads through high-level workflow tools, reducing token usage with structured outputs.
      3
      MIT