Kubeview logo

Kubeview

Read-only Model Context Protocol server that surfaces Kubernetes, Helm, and Argo insights safely.

Install Kubeview

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kubeview": {
      "command": "npx",
      "args": [
        "-y",
        "kubeview-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 2 tools correctly (1d ago).

Overview

Tools2

What Kubeview lets your agent do. Expand a tool for its parameters.

Verified live~750 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

5/5 checks healthy over the last 46d

What it can do

From the 2 tools this server returned when we ran it; 2 declare their own safety hints.

Runs commands · 2Can delete or modify data · 1Makes network requests · 2
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceNot published
Package age450 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · kubeview-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads2.3kPackage downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed2Callable tools this server registers over MCP.

From the project README

KubeView MCP

npm version License: MIT Node.js MCP

Read-only Model Context Protocol server for Kubernetes diagnostics. Instead of exposing dozens of tools, it gives the agent a sandboxed TypeScript runtime: a single run_code call can query Kubernetes, Helm, Argo Workflows, and Argo CD, correlate the results, and return only the answer. Intermediate payloads never pass through the model's context window. Based on the code execution with MCP pattern.

Background: Evicting MCP tool calls from your Kubernetes cluster

How it works

v2 publishes exactly two public tools: run_code and an approval-gated kube_pod_exec. Everything else is discovered inside the sandbox via tools.list(), tools.search(), and tools.help(), following the MCP progressive discovery and programmatic calling guidance.

run_code executes bounded TypeScript with top-level await. One call can list workloads, correlate events, fetch logs, and diff Helm state without shipping intermediate payloads back through the model:

server.ts
const pods = await tools.kubernetes.list({ namespace: 'payments' });
const unhealthy = pods.items.filter((p) => p.status?.phase !== 'Running');

return Promise.all(
  unhealthy.map(async (pod) => ({
    pod: pod.metadata?.name,
    logs: await tools.kubernetes.logs({
      namespace: 'payments',
      podName: pod.metadata?.name,
      tailLines: 100,
    }),
  })),
);
  • Sensitive isolation — kube_pod_exec is unreachable from sandboxed code. Top-level exec requires MCP elicitation, is bound to the argument digest, expires after 10 minutes, and fails closed. kube_port_forward is never a top-level tool and is denied inside code mode by default. tools.disabled() reports which policy blocked a capability and whether that denial is configurable.
  • API-driven discovery — Argo Workflows and Argo CD are detected from the Kubernetes API, scoped to the active kube context, cached for 60 s. An unavailable optional API never blocks startup.
  • Native reads — resources, metrics, logs, events, and network probes go through the Kubernetes API. Helm releases are parsed from cluster Secrets or ConfigMaps; a local helm binary is a fallback, not a prerequisite.

Quick start

Prerequisites: Node.js ≥ 22 and access to a cluster (KUBECONFIG or in-cluster service account).

Terminal
npx -y kubeview-mcp

# Claude Code
claude mcp add kubernetes -- npx kubeview-mcp
config.json
{
  "mcpServers": {
    "kubeview": {
      "command": "npx",
      "args": ["-y", "kubeview-mcp"]
    }
  }
}

In Cursor, /kubeview/code-mode injects the typed API into context.

Configuration

Cluster

VariableDescriptionDefault
KUBECONFIGKubeconfig path(s); multiple files are merged like kubectl~/.kube/config
MCP_KUBE_CONTEXTDefault context (name or alias); defaults to the active contextunset
MCP_KUBE_CONTEXTSContext allowlist and aliases, e.g. dev,staging-*,prod=arn:…/prod (details)all contexts
MCP_K8S_SKIP_TLS_VERIFYSkip TLS verification for the Kubernetes API (true/1)false
MCP_TIMEOUTDefault operation timeout in msplugin default
MCP_HIDE_SENSITIVEMask sensitive data globallyfalse
MCP_DISABLE_KUBERNETES_PLUGINDisable the Kubernetes plugin (true/1)unset
MCP_DISABLE_HELM_PLUGINDisable the Helm plugin (true/1)unset

Mode and capabilities

VariableDescriptionDefault
MCP_MODEcode (default), all (alias), or toolscode
MCP_CODE_MODE_DISABLED_TOOLSComma-separated code-mode denials; empty enables allJSON/default
MCP_ARGO_TOOLSArgo override: auto, on, offauto
MCP_ARGOCD_TOOLSArgo CD override: auto, on, offauto
MCP_LOG_LEVELerror, warn, info, debuginfo
KUBE_MCP_FORCE_VM_SANDBOXForce node:vm in the standalone runtimeunset

HTTP transport

VariableDescriptionDefault
MCP_TRANSPORTstdio or httpstdio
MCP_HTTP_HOST / _PORTHTTP bind (when MCP_TRANSPORT=http)127.0.0.1:3000
MCP_HTTP_PATHStreamable HTTP endpoint path/mcp
MCP_HTTP_JSON_RESPONSEPrefer JSON over SSE (drops mid-call notifications)false
MCP_ALLOWED_HOSTSHost allowlist (required when binding to 0.0.0.0/::)local defaults
MCP_ALLOWED_ORIGINSOrigin allowlist for HTTPunset
MCP_APPROVAL_STATE_SECRETShared 32+ byte signing secret; required for HTTP approvalsephemeral (stdio)
MCP_APPROVAL_REPLAY_DIRAbsolute shared-volume directory for one-time HTTP approvalsunset
bash
mkdir -p /tmp/kubeview-mcp-approvals
MCP_APPROVAL_STATE_SECRET='replace-with-at-least-32-random-bytes' \
MCP_APPROVAL_REPLAY_DIR=/tmp/kubeview-mcp-approvals \
MCP_TRANSPORT=http MCP_HTTP_HOST=127.0.0.1 MCP_HTTP_PORT=3000 npx -y kubeview-mcp

Endpoint: http://127.0.0.1:3000/mcp. HTTP follows the MCP 2026-07-28 stateless core: a fresh server per request, no initialize, no Mcp-Session-Id. Each request carries protocol version, client identity, and capabilities in _meta; modern requests add Mcp-Method/Mcp-Name for gateway routing. 2025-era clients use the SDK's stateless fallback on the same endpoint. State that must survive across calls has to be passed as tool arguments or handles.

HTTP mode refuses to start without both approval variables. Multi-replica deployments need the same secret and a shared writable replay directory; the /tmp example is for a single process only. The published MCP registry entry still targets stdio.

Tool surfaces

MCP_MODEExposed tools
unset / code / allrun_code, kube_pod_exec
toolskube_list, kube_get, kube_logs, kube_contexts, helm, kube_pod_exec, plus detected argo and argocd

Domain tools use an operation discriminator:

  • helm — list | get | debug
  • argo — list | get | logs | cron_list (when Workflow or CronWorkflow is discoverable)
  • argocd — list | get | resources | logs | history | status (when Application is discoverable, or with ARGOCD_SERVER + ARGOCD_AUTH_TOKEN)

Discovery is cached per kube context for 60 s. Missing optional APIs are omitted, not fatal. argo and argocd are registered when the API exists in the default context or in any exact context name listed in MCP_KUBE_CONTEXTS.

Multiple clusters

Every cluster tool accepts an optional context argument (a kubeconfig context name or an MCP_KUBE_CONTEXTS alias); kube_contexts lists the contexts you can target. Without it, calls behave as before: MCP_KUBE_CONTEXT, then the kubeconfig current-context. Context is per call rather than per session, which keeps HTTP mode stateless and lets one script query several clusters concurrently.

MCP_KUBE_CONTEXTS is a comma-separated list. Plain entries are context names with optional * wildcards; alias=context entries map a short name to a real context. Once set, only matching contexts, alias targets, and MCP_KUBE_CONTEXT are reachable, including for Helm/Argo/Argo CD CLI fallbacks, which receive --kube-context/--context for the resolved context. Add * to keep every context while defining aliases.

bash
MCP_KUBE_CONTEXT=dev \
MCP_KUBE_CONTEXTS='dev,staging-*,prod=arn:aws:eks:eu-west-1:123456789012:cluster/prod' \
npx -y kubeview-mcp

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Kubeview

kubeview is an MCP server that provides read-only Kubernetes diagnostics through a sandboxed TypeScript runtime. It can query Kubernetes resources, metrics, logs, events, Helm state, Argo Workflows, and Argo CD, while keeping intermediate results out of the model context. Its public tools are run_code and approval-gated kube_pod_exec.

kubeview uses its bounded run_code tool to execute TypeScript with top-level await inside a sandbox. The code can call discovered Kubernetes, Helm, and Argo capabilities, correlate results, and return only the final answer, so intermediate payloads do not pass through the model’s context window.

Yes, kubeview supports Helm, Argo Workflows, and Argo CD insights. Helm releases are read from cluster Secrets or ConfigMaps, with a local helm binary as a fallback. Argo APIs are detected through Kubernetes, scoped to the active context, cached for 60 seconds, and treated as optional.

Pod command execution is available only through the approval-gated kube_pod_exec tool. It is unreachable from sandboxed code, requires MCP elicitation, is bound to the argument digest, expires after 10 minutes, and fails closed. kube_port_forward is not a top-level tool and is denied inside code mode by default.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKubeview AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kubeview?style=directory)](https://allmcps.com/mcp/kubeview)
HTML Embed
<a href="https://allmcps.com/mcp/kubeview"><img src="https://allmcps.com/api/badge/kubeview?style=directory" alt="Kubeview on AllMCPs" /></a>