Skip to main content
ClaudeWave

A fast, read-only MCP server enabling code-driven AI analysis of Kubernetes clusters

MCP ServersOfficial Registry5 stars2 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
100/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Mature repo (>1y old)
  • Documented (README)
Last scanned: 8/6/2026
Install in Claude Code / Claude Desktop
Method: NPX · kubeview-mcp
Claude Code CLI
claude mcp add kubeview-mcp -- npx -y kubeview-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "kubeview-mcp": {
      "command": "npx",
      "args": ["-y", "kubeview-mcp"],
      "env": {
        "MCP_HTTP_HOST": "<mcp_http_host>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Detected environment variables
MCP_HTTP_HOST
Use cases

MCP Servers overview

# KubeView MCP – Kubernetes Model Context Protocol Server

[![npm version](https://img.shields.io/npm/v/kubeview-mcp)](https://www.npmjs.com/package/kubeview-mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Node.js Version](https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen)](https://nodejs.org/)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.8+-blue)](https://www.typescriptlang.org/)

**KubeView** is a read-only [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that lets AI agents (Cursor, Claude Code, Codex CLI, Gemini CLI, etc.) safely inspect, diagnose, and debug Kubernetes clusters. It covers Kubernetes core, Helm, Argo Workflows, and Argo CD.

> Read more: [Evicting MCP tool calls from your Kubernetes cluster](https://dev.to/mikhae1/evicting-mcp-tool-calls-from-your-kubernetes-cluster-428k)

---

## ✨ Features

- **🧠 Code Mode** – Sandboxed TypeScript runtime for complex reasoning and multi-step workflows.
- **🛡️ Read-Only & Safe** – Zero write access; sensitive data masking for production clusters.
- **☸️ Kubernetes** – List/get resources, fetch metrics, stream logs and events, exec into containers, diagnose network issues.
- **📦 Helm (API-first)** – Inspect releases, values, manifests, and history via the Kubernetes API with CLI fallback.
- **🐙 Argo Ecosystem** – Manage Argo Workflows and Argo CD via the Kubernetes API or CLI.

---

## 🚀 Quick Start

### Prerequisites

- Node.js ≥ 18
- Access to a Kubernetes cluster
- Optional CLIs in `$PATH`: `helm` (fallback only), `argo`, `argocd`

### Installation

```bash
# Run the server directly
npx -y kubeview-mcp

# Add to Claude Code
claude mcp add kubernetes -- npx kubeview-mcp
```

### MCP Client Configuration

Add to your `mcpServers` config (Cursor, Claude Desktop, etc.):

```json
{
  "mcpServers": {
    "kubeview": {
      "command": "npx",
      "args": ["-y", "kubeview-mcp"]
    }
  }
}
```

### Environment Variables

| Variable             | Description                                  | Default          |
| -------------------- | -------------------------------------------- | ---------------- |
| `KUBECONFIG`         | Path to kubeconfig file                      | `~/.kube/config` |
| `MCP_TRANSPORT`      | Transport: `stdio` (default) or `http`       | `stdio`          |
| `MCP_MODE`           | Server mode: `all`, `code`, or `tools`       | `all`            |
| `MCP_LOG_LEVEL`      | Log level: `error`, `warn`, `info`, `debug`  | `info`           |
| `MCP_HIDE_SENSITIVE` | Mask sensitive data globally                 | `false`          |
| `MCP_HTTP_HOST`      | HTTP bind host when `MCP_TRANSPORT=http`     | `127.0.0.1`      |
| `MCP_HTTP_PORT`      | HTTP port when `MCP_TRANSPORT=http`          | `3000`           |
| `MCP_HTTP_PATH`      | Streamable HTTP endpoint path                | `/mcp`           |
| `MCP_HTTP_STATELESS` | Disable session IDs in HTTP mode             | `false`          |
| `MCP_HTTP_JSON_RESPONSE` | Prefer JSON responses over SSE           | `false`          |
| `MCP_ALLOWED_HOSTS`  | Comma-separated Host allowlist for HTTP mode | local defaults   |
| `MCP_ALLOWED_ORIGINS`| Comma-separated Origin allowlist for HTTP mode | unset         |

### Streamable HTTP Mode

KubeView can also run as a standalone **Streamable HTTP** server for hosted or manually managed deployments.

```bash
MCP_TRANSPORT=http \
MCP_HTTP_HOST=127.0.0.1 \
MCP_HTTP_PORT=3000 \
npx -y kubeview-mcp
```

This starts a Streamable HTTP endpoint at `http://127.0.0.1:3000/mcp`.

Notes:

- `stdio` remains the default and is still the right choice for MCP client configs such as Claude Desktop, Cursor, and Codex CLI.
- `MCP_HTTP_STATELESS=true` disables session IDs. That is useful for simple request/response patterns, but stateful features such as `plan_step` history are not meaningful in that mode.
- If you bind HTTP mode to `0.0.0.0` or `::`, you must set `MCP_ALLOWED_HOSTS`.
- HTTP mode is intended for manual deployment. The published MCP registry metadata still targets `stdio`.

---

## 🛠️ Tools

### Kubernetes

| Tool           | Description                                              |
| -------------- | -------------------------------------------------------- |
| `kube_list`    | List resources or get cluster diagnostics                |
| `kube_get`     | Describe a specific resource (all K8s types supported)   |
| `kube_metrics` | Fetch CPU/memory metrics for nodes and pods              |
| `kube_logs`    | Fetch or stream container logs                           |
| `kube_exec`    | Execute commands inside containers                       |
| `kube_port`    | Port-forward to pods or services                         |
| `kube_net`     | Run in-cluster network diagnostics                       |

### Helm

| Tool        | Description                                                       |
| ----------- | ----------------------------------------------------------------- |
| `helm_list` | List Helm releases (Kubernetes API first, CLI fallback)           |
| `helm_get`  | Fetch release values, manifests, notes, hooks, status, history    |

**Helm execution strategy:** Tools read Helm metadata directly from Kubernetes storage (Secrets / ConfigMaps) by default — no `helm` binary needed for standard read-only use. CLI fallback is used for non-JSON formatting or non-Kubernetes storage backends (e.g. SQL).

### Argo

| Tool          | Description                              |
| ------------- | ---------------------------------------- |
| `argo_list`   | List Argo Workflows                      |
| `argo_get`    | Inspect a specific Argo Workflow         |
| `argocd_app`  | Inspect Argo CD applications             |

### Utilities

| Tool        | Description                                                    |
| ----------- | -------------------------------------------------------------- |
| `run_code`  | Execute sandboxed TypeScript for complex tasks                 |
| `plan_step` | Persist step-by-step planning state across long investigations |

**Why `plan_step`?** It keeps the chat context clean by storing progress externally, gives agents a structured state machine (plan → execute → verify → branch), and encourages the think-then-act rhythm that produces better results on complex workflows.

---

## 🧠 Code Mode

Inspired by [Code execution with MCP](https://www.anthropic.com/engineering/code-execution-with-mcp), KubeView ships a sandboxed code runtime for agents to explore the API and run complex workflows.

- **MCP Bridge** – All registered MCP tools are callable from within `run_code`.
- **Dynamic TypeScript Definitions** – Tool schemas are auto-converted to a typed `global.d.ts`, preventing hallucinated parameters.
- **Tool Discovery** – `tools.search()` and `tools.list()` let agents find capabilities at runtime without loading the full schema.
- **Sandboxed Execution** – Locked-down Node.js `vm` environment with access only to `console` and the `tools` global.

Enable code-only mode:

```json
"env": { "MCP_MODE": "code" }
```

### Built-in `code-mode` Prompt

The server includes a **`code-mode`** MCP prompt that injects full TypeScript API docs and examples into the agent context. In Cursor, type `/kubeview/code-mode` in the prompt bar to activate it.

---

## 💻 Local Development

```bash
# Clone and install
git clone https://github.com/mikhae1/kubeview-mcp.git
cd kubeview-mcp
npm install

# Build and run
npm run build
npm start

# Test
npm test

# Run a tool directly via CLI
npm run command -- kube_list --namespace=default
```

---

## 📄 License

MIT © [mikhae1](https://github.com/mikhae1/kubeview-mcp)
ai-agentsai-toolsargocode-modecode-mode-mcpdevopsdiagnosticshelmkubectlkuberneteskubernetes-toolsllm-toolsmcpmcp-code-executionmcp-server

What people ask about kubeview-mcp

What is mikhae1/kubeview-mcp?

+

mikhae1/kubeview-mcp is mcp servers for the Claude AI ecosystem. A fast, read-only MCP server enabling code-driven AI analysis of Kubernetes clusters It has 5 GitHub stars and its last recorded update is dated 2026-08-05.

How do I install kubeview-mcp?

+

You can install kubeview-mcp by cloning the repository (https://github.com/mikhae1/kubeview-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is mikhae1/kubeview-mcp safe to use?

+

Our security agent has analyzed mikhae1/kubeview-mcp and assigned a Trust Score of 100/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains mikhae1/kubeview-mcp?

+

mikhae1/kubeview-mcp is maintained by mikhae1. The last recorded GitHub activity is dated 2026-08-05, with 0 open issues.

Are there alternatives to kubeview-mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy kubeview-mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: mikhae1/kubeview-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/mikhae1-kubeview-mcp)](https://claudewave.com/repo/mikhae1-kubeview-mcp)
<a href="https://claudewave.com/repo/mikhae1-kubeview-mcp"><img src="https://claudewave.com/api/badge/mikhae1-kubeview-mcp" alt="Featured on ClaudeWave: mikhae1/kubeview-mcp" width="320" height="64" /></a>

More MCP Servers

kubeview-mcp alternatives