kubeaid-mcp
An MCP server that lets AI assistants manage KubeAid GitOps clusters, inspecting ArgoCD apps, pods, events, and resources, with optional write operations like syncing apps and scaling deployments through your own kubeconfig credentials.
README
KubeAid MCP
An MCP server for KubeAid-managed Kubernetes clusters. Plug it into Claude Code, Claude Desktop, Cursor or any MCP-compatible client and ask questions like "which apps are out of sync?", "why is kube-prometheus degraded?" or "sync the cert-manager app" — the model answers by calling this server's tools, which talk to your cluster through your own kubeconfig credentials.
Built in TypeScript on the official
@modelcontextprotocol/sdk
and @kubernetes/client-node.
Author: Deep Poharkar
Why KubeAid-specific?
KubeAid runs clusters the GitOps way: every application is an ArgoCD
Application generated from your kubeaid-config repo, and auto-sync is
disabled by default — drift between Git and the cluster is normal and waits
for a deliberate sync. A generic Kubernetes assistant doesn't understand
that workflow. This server does:
- The ArgoCD
ApplicationCR is a first-class citizen: sync status, health, failing conditions and drifted resources are one tool call away. - Syncing is modeled as the explicit "deploy now" decision it is in KubeAid —
gated behind an opt-in flag, with
dry_runsupport, and never allowed on contexts you mark as protected. - The bundled prompts encode KubeAid operational habits: review drift before syncing, fix things in the kubeaid-config repo rather than hand-editing the cluster.
Tools
Read tools — always registered:
| Tool | What it does |
|---|---|
list_contexts |
Kubeconfig contexts the server can target, with default and write-protection flags. |
list_argocd_apps |
Every KubeAid-managed ArgoCD app with sync status, health, revision and auto-sync flag. Supports only_problems. |
describe_argocd_app |
One app in depth: sources, error conditions, drifted/unhealthy resources, last sync result, deploy history. |
list_namespaces |
Namespaces with status and age. |
list_nodes |
Nodes with Ready status, roles, kubelet version, internal IP. |
list_pods |
Pods with kubectl-style derived status (CrashLoopBackOff etc.), ready count, restarts, node, age. |
describe_pod |
Per-container states and last-crash details, conditions, and the pod's recent events. |
get_pod_logs |
Tail container logs; previous: true reads the crashed instance's logs. |
list_deployments |
Deployments with ready/up-to-date/available counts. |
get_events |
Recent events, optionally warnings-only, per namespace or cluster-wide. |
describe_resource |
Any resource by apiVersion/kind/name — including CRDs like SealedSecret or Certificate. |
Write tools — registered only when KUBEAID_MCP_ALLOW_WRITES=true:
| Tool | What it does |
|---|---|
sync_argocd_app |
Trigger an ArgoCD sync (the KubeAid "deploy now" action). Supports revision, prune, dry_run. |
scale_deployment |
Set a deployment's replica count. |
rollout_restart |
Rolling-restart a deployment/statefulset/daemonset. |
delete_pod |
Delete a stuck pod so its controller replaces it. |
Every tool takes an optional context argument to target any cluster in your
kubeconfig from a single server process.
Prompts
Prompts appear as slash commands / menu items in the client and walk the model through a workflow using the tools above:
| Prompt | Workflow |
|---|---|
diagnose_app |
Root-cause a Degraded/OutOfSync app: conditions → resources → pod logs → recommendation. |
sync_review |
List all drifted apps, assess the risk of each pending sync, then ask before syncing anything. |
cluster_health_check |
Sweep nodes, apps, pods and warning events; report findings by severity. |
Quick start
Requires 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"
Read-only by default. To enable writes while keeping production untouchable:
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
Enable Settings → Developer → Local MCP servers, then add to the config file that page opens:
{
"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"
}
}
}
}
Fully quit and reopen the app afterwards.
Configuration
All configuration is environment variables, read once at startup:
| Variable | Default | Meaning |
|---|---|---|
KUBECONFIG |
client-node default lookup (~/.kube/config) |
Kubeconfig path. |
KUBEAID_MCP_CONTEXT |
follows current-context live | Pin a fixed default context. When unset, kubectl config use-context retargets the server mid-session; per-call context arguments always win. |
KUBEAID_MCP_ARGOCD_NAMESPACE |
argocd |
Namespace holding ArgoCD's Application CRs. |
KUBEAID_MCP_ALLOW_WRITES |
false |
Register the mutating tools at all. |
KUBEAID_MCP_PROTECTED_CONTEXTS |
none | Comma-separated contexts that refuse every mutating call, even with writes enabled. |
Safety model
Three independent layers:
- Capability gating — with writes disabled (the default), mutating tools are never registered, so the model cannot even see them.
- Protected contexts — every mutating handler re-checks the target
context against
KUBEAID_MCP_PROTECTED_CONTEXTSand refuses protected ones, whatever the model asks for. - Client confirmation — tools carry MCP
readOnlyHint/destructiveHintannotations, so well-behaved clients prompt you before risky calls.
The server holds no credentials of its own; it can only do what your kubeconfig identity is already authorized to do via RBAC.
Development
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
The smoke test needs no cluster — it drives the raw JSON-RPC protocol over stdio.
Roadmap
check_chart_updates: compare deployed chart versions against the upstream KubeAidargocd-helm-chartsdirectory.- Sealed-secrets helpers: list
SealedSecretstatus, flag failed unseals. - Prometheus/Alertmanager tools: surface firing alerts from the kube-prometheus stack KubeAid ships.
Acknowledgements
- KubeAid by Obmondo — the cluster management stack this server is built for.
- Argo CD — the GitOps engine underneath KubeAid.
License
MIT © 2026 Deep Poharkar
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.