Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ☁️ Cloud Platforms
  3. MCP Server Kubernetes
MCP Server Kubernetes logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 5:47:06 PM

MCP Server Kubernetes

User RatingsBe the first to rate and review this MCP server!
View Repository1.6k GitHub StarsTotal stargazers on GitHub for the source repository (1,578 stars).Visit Website

TypeScript MCP server for managing Kubernetes clusters via kubectl commands and kubeconfig authentication.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "flux159-mcp-server-kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-kubernetes"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives☁️ More in Cloud Platforms

Overview

This MCP server connects to Kubernetes clusters using kubeconfig and exposes kubectl operations as API commands. It supports managing pods, deployments, services, and other Kubernetes resources through standard kubectl verbs like get, create, apply, delete, and scale. Use it to automate cluster management tasks or integrate Kubernetes control into AI agent workflows.

Use cases

•List and describe Kubernetes resources in a cluster
•Create, update, or delete Kubernetes manifests programmatically
•Retrieve logs from pods for debugging
•Manage kubectl contexts and switch between clusters
•Scale deployments and manage rollout status

Key features

•Connects to Kubernetes clusters using kubeconfig from multiple sources
•Supports kubectl commands: get, describe, create, apply, delete, logs, scale, patch
•Manages kubectl contexts and explains resource schemas
•Compatible with Helm v3 for optional chart management
•Integrates with MCP clients like Claude Code, Codex CLI, Claude Desktop, VS Code, and Cursor

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Server Kubernetes.

Extracted Tool Capabilities
Connects to Kubernetes clusters using kubeconfig from multiple sources
Supports kubectl commands: get, describe, create, apply, delete, logs, scale, patch
Manages kubectl contexts and explains resource schemas
Compatible with Helm v3 for optional chart management
Integrates with MCP clients like Claude Code, Codex CLI, Claude Desktop, VS Code, and Cursor

Documentation Overview

MCP Server Kubernetes

CI Language Kubernetes Docker Stars Issues PRs Welcome Last Commit

MCP Server that can connect to a Kubernetes cluster and manage it. Supports loading kubeconfig from multiple sources in priority order.

https://github.com/user-attachments/assets/f25f8f4e-4d04-479b-9ae0-5dac452dd2ed

Installation & Usage

Prerequisites

Before using this MCP server with any tool, make sure you have:

  1. kubectl installed and in your PATH
  2. A valid kubeconfig file with contexts configured
  3. Access to a Kubernetes cluster configured for kubectl (e.g. minikube, Rancher Desktop, GKE, etc.)
  4. Helm v3 installed and in your PATH (no Tiller required). Optional if you don't plan to use Helm.

You can verify your connection by running kubectl get pods in a terminal to ensure you can connect to your cluster without credential issues.

By default, the server loads kubeconfig from ~/.kube/config. For additional authentication options (environment variables, custom paths, etc.), see ADVANCED_README.md.

Claude Code

Add the MCP server to Claude Code using the built-in command:

Terminal
claude mcp add kubernetes -- npx mcp-server-kubernetes

This will automatically configure the server in your Claude Code MCP settings.

Codex

Add the MCP server to Codex CLI using the built-in command:

bash
codex mcp add kubernetes -- npx mcp-server-kubernetes

This registers the server globally in ~/.codex/config.toml and makes its tools available in all Codex sessions.

Claude Desktop

Add the following configuration to your Claude Desktop config file:

config.json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": ["mcp-server-kubernetes"]
    }
  }
}

Claude Desktop Connector via mcpb

MCP Server Kubernetes is also available as a mcpb (formerly dxt) extension. In Claude Desktop, go to Settings (Cmd+, on Mac) -> Extensions -> Browse Extensions and scroll to find mcp-server-kubernetes in the modal. Install it & it will install & utilize kubectl via command line & your kubeconfig.

To manually install, you can also get the .mcpb by going to the latest Release and downloading it.

VS Code

Install Kubernetes MCP in VS Code

For VS Code integration, you can use the MCP server with extensions that support the Model Context Protocol:

  1. Install a compatible MCP extension (such as Claude Dev or similar MCP clients)
  2. Configure the extension to use this server:
config.json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": ["mcp-server-kubernetes"],
      "description": "Kubernetes cluster management and operations"
    }
  }
}

Cursor

Cursor supports MCP servers through its AI integration. Add the server to your Cursor MCP configuration:

config.json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": ["mcp-server-kubernetes"]
    }
  }
}

The server will automatically connect to your current kubectl context. You can verify the connection by asking the AI assistant to list your pods or create a test deployment.

Usage with mcp-chat

mcp-chat is a CLI chat client for MCP servers. You can use it to interact with the Kubernetes server.

Terminal
npx mcp-chat --server "npx mcp-server-kubernetes"

Alternatively, pass it your existing Claude Desktop configuration file from above (Linux should pass the correct path to config):

Mac:

Terminal
npx mcp-chat --config "~/Library/Application Support/Claude/claude_desktop_config.json"

Windows:

Terminal
npx mcp-chat --config "%APPDATA%\Claude\claude_desktop_config.json"

Features

  • Connect to a Kubernetes cluster
  • Unified kubectl API for managing resources
    • Get or list resources with kubectl_get
    • Describe resources with kubectl_describe
    • List resources with kubectl_get
    • Create resources with kubectl_create
    • Apply YAML manifests with kubectl_apply
    • Delete resources with kubectl_delete
    • Get logs with kubectl_logs
    • Manage kubectl contexts with kubectl_context
    • Explain Kubernetes resources with explain_resource
    • List API resources with list_api_resources
    • Scale resources with kubectl_scale
    • Update field(s) of a resource with kubectl_patch
    • Manage deployment rollouts with kubectl_rollout
    • Execute any kubectl command with kubectl_generic
    • Verify connection with ping
  • Advanced operations
    • Scale deployments with kubectl_scale (replaces legacy scale_deployment)
    • Port forward to pods and services with port_forward
    • Run Helm operations
      • Install, upgrade, and uninstall charts
      • Support for custom values, repositories, and versions
      • Template-based installation (helm_template_apply) to bypass authentication issues
      • Template-based uninstallation (helm_template_uninstall) to bypass authentication issues
    • Pod cleanup operations
      • Clean up problematic pods (cleanup_pods) in states: Evicted, ContainerStatusUnknown, Completed, Error, ImagePullBackOff, CrashLoopBackOff
    • Node management operations
      • Cordoning, draining, and uncordoning nodes (node_management) for maintenance and scaling operations
  • Troubleshooting Prompt (k8s-diagnose)
    • Guides through a systematic Kubernetes troubleshooting flow for pods based on a keyword and optional namespace.
  • Non-destructive mode for read and create/update-only access to clusters
  • Secrets masking for security (masks sensitive data in kubectl get secrets commands, does not affect logs)
  • OpenTelemetry Observability (opt-in)
    • Distributed tracing for all tool calls
    • Export to Jaeger, Tempo, Grafana, or any OTLP backend
    • Configurable sampling strategies
    • Rich span attributes (tool name, duration, K8s context, errors)
    • See docs/OBSERVABILITY.md for details

Observability

The MCP Kubernetes server includes optional OpenTelemetry integration for comprehensive observability. This feature is disabled by default and can be enabled via environment variables or Helm configuration.

Quick Start

Enable observability with environment variables:

server.ts
export ENABLE_TELEMETRY=true
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317

npx mcp-server-kubernetes

What Gets Traced

  • All tool calls: kubectl_get, kubectl_apply, kubectl_logs, etc.
  • Execution duration: How long each operation takes
  • Success/failure status: Automatic error tracking
  • Kubernetes context: Namespace, context, resource type
  • Rich metadata: Host, process, and custom attributes

Backends Supported

Works with any OTLP-compatible backend:

  • Jaeger (open source)
  • Grafana Tempo (open source)
  • Grafana Cloud (commercial)
  • Datadog, New Relic, Honeycomb, Lightstep, AWS X-Ray

Configuration

See docs/OBSERVABILITY.md for comprehensive documentation including:

  • Configuration options
  • Deployment examples (Kubernetes, Helm, Claude Code)
  • Sampling strategies
  • Production best practices
  • Troubleshooting guide

Example with Jaeger

server.ts
# Start Jaeger
docker run -d --name jaeger \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 16686:16686 \
  -p 4317:4317 \
  jaegertracing/all-in-one:latest

# Enable telemetry
export ENABLE_TELEMETRY=true
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
export OTEL_TRACES_SAMPLER=always_on

# Run server
npx mcp-server-kubernetes

# View traces: http://localhost:16686

Prompts

The MCP Kubernetes server includes specialized prompts to assist with common diagnostic operations.

/k8s-diagnose Prompt

This prompt provides a systematic troubleshooting flow for Kubernetes pods. It accepts a keyword to identify relevant pods and an optional namespace to narrow the search. The prompt's output will guide you through an autonomous troubleshooting flow, providing instructions for identifying issues, collecting evidence, and suggesting remediation steps.

Local Development

Make sure that you have bun installed. Clone the repo & install dependencies:

bash
git clone https://github.com/Flux159/mcp-server-kubernetes.git
cd mcp-server-kubernetes
bun install

Development Workflow

Read the full README →View source on GitHub →

Related MCP Servers

View all in Cloud Platforms View all alternatives
  • Next Devtools MCP logoNext Devtools MCP
    Verified

    Official Next.js MCP server for coding agents. Provides runtime diagnostics, route inspection, dev server logs, docs search, and upgrade guides. Requires Next.js 16+ dev server for full runtime features.

    ☁️ Cloud Platforms5 views
    Compare vs Next Devtools MCP →
  • MCP Redis Cloud logoMCP Redis Cloud

    Manage your Redis Cloud resources effortlessly using natural language. Create databases, monitor subscriptions, and configure cloud deployments with simple commands.

    ☁️ Cloud Platforms5 views
    Compare vs MCP Redis Cloud →
  • Docker MCP logoDocker MCP

    Docker container management and operations through MCP

    ☁️ Cloud Platforms3 views
    Compare vs Docker MCP →
  • MCP Server Docker logoMCP Server Docker

    Integrate with Docker to manage containers, images, volumes, and networks.

    ☁️ Cloud Platforms3 views
    Compare vs MCP Server Docker →

Adoption & maintenance

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

GitHub stars
1.6k
Stargazers on the source repository.
npm downloads
48k
Package downloads in the last 30 days.
Last commit
11d ago
Most recent push to the default branch.

Reviews

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

Frequently Asked Questions about MCP Server Kubernetes

You need kubectl and Helm v3 installed in your PATH, a valid kubeconfig with cluster access, and a Kubernetes cluster configured.

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 PreviewMCP Server Kubernetes AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/flux159-mcp-server-kubernetes?style=directory)](https://allmcps.com/mcp/flux159-mcp-server-kubernetes)
HTML Embed
<a href="https://allmcps.com/mcp/flux159-mcp-server-kubernetes"><img src="https://allmcps.com/api/badge/flux159-mcp-server-kubernetes?style=directory" alt="MCP Server Kubernetes on AllMCPs" /></a>

Technical Specs & Signals

Category☁️Cloud Platforms
More technical detailsExpand ▾
TransportSTDIO
RuntimeNode.js
Last updatedAug 31, 2026
11/11 checks healthy over the last 33d
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1,578
GitHub Star CountTotal stargazers on GitHub representing community popularity (1,578 stars).
Last commit11d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 31, 2026
npm downloads48,568/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
48Quality signal: Fair · 48/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership6/20
Documentation & tools16/30
Adoption & activity14/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

3 high-severity advisories on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 0High 3Medium 2Low 0

Scanned 15d ago via OSV.dev · mcp-server-kubernetes (npm)

★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ☁️ Cloud Platforms →Best MCP servers for Cloud Platforms →Alternatives to MCP Server Kubernetes →Install in Claude DesktopInstall in CursorInstall in VS Code