kubeview-mcp
Enables management of Argo Workflows and Argo CD applications, including listing and inspecting workflows and applications via the Kubernetes API or CLI.
Allows inspection of Helm releases, including values, manifests, notes, hooks, status, and history, primarily via the Kubernetes API with CLI fallback.
Provides read-only tools to inspect, diagnose, and debug Kubernetes clusters, including listing/getting resources, fetching metrics, streaming logs and events, executing commands in containers, port-forwarding, and network diagnostics.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kubeview-mcpshow me all pods in the default namespace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
KubeView MCP β Kubernetes Model Context Protocol Server
KubeView is a read-only Model Context Protocol (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
β¨ 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
# Run the server directly
npx -y kubeview-mcp
# Add to Claude Code
claude mcp add kubernetes -- npx kubeview-mcpMCP Client Configuration
Add to your mcpServers config (Cursor, Claude Desktop, etc.):
{
"mcpServers": {
"kubeview": {
"command": "npx",
"args": ["-y", "kubeview-mcp"]
}
}
}Environment Variables
Variable | Description | Default |
| Path to kubeconfig file |
|
| Transport: |
|
| Server mode: |
|
| Log level: |
|
| Mask sensitive data globally |
|
| HTTP bind host when |
|
| HTTP port when |
|
| Streamable HTTP endpoint path |
|
| Disable session IDs in HTTP mode |
|
| Prefer JSON responses over SSE |
|
| Comma-separated Host allowlist for HTTP mode | local defaults |
| 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.
MCP_TRANSPORT=http \
MCP_HTTP_HOST=127.0.0.1 \
MCP_HTTP_PORT=3000 \
npx -y kubeview-mcpThis starts a Streamable HTTP endpoint at http://127.0.0.1:3000/mcp.
Notes:
stdioremains the default and is still the right choice for MCP client configs such as Claude Desktop, Cursor, and Codex CLI.MCP_HTTP_STATELESS=truedisables session IDs. That is useful for simple request/response patterns, but stateful features such asplan_stephistory are not meaningful in that mode.If you bind HTTP mode to
0.0.0.0or::, you must setMCP_ALLOWED_HOSTS.HTTP mode is intended for manual deployment. The published MCP registry metadata still targets
stdio.
π οΈ Tools
Kubernetes
Tool | Description |
| List resources or get cluster diagnostics |
| Describe a specific resource (all K8s types supported) |
| Fetch CPU/memory metrics for nodes and pods |
| Fetch or stream container logs |
| Execute commands inside containers |
| Port-forward to pods or services |
| Run in-cluster network diagnostics |
Helm
Tool | Description |
| List Helm releases (Kubernetes API first, CLI fallback) |
| 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 |
| List Argo Workflows |
| Inspect a specific Argo Workflow |
| Inspect Argo CD applications |
Utilities
Tool | Description |
| Execute sandboxed TypeScript for complex tasks |
| 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, 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()andtools.list()let agents find capabilities at runtime without loading the full schema.Sandboxed Execution β Locked-down Node.js
vmenvironment with access only toconsoleand thetoolsglobal.
Enable code-only mode:
"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
# 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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikhae1/kubeview-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server