CommunityCloud & Infrastructure

Kubernetes MCP Server

by Containers community

Operate Kubernetes and OpenShift clusters from an assistant: inspect pods, events and logs, and create or change resources.

Best for

Platform and DevOps engineers who want an assistant to inspect and debug clusters, including OpenShift, through the Kubernetes API rather than shell wrappers.

Connect Kubernetes MCP Server

Choose your client

Local

This server runs on your machine. Pick your client for the matching config; placeholders stand in for any secrets.

Before you connect

With your kubeconfig it can create, change and delete resources and run commands inside pods. For production, the README points to a setup with a dedicated ServiceAccount and read-only access.

claude_desktop_config.json
{
  "mcpServers": {
    "kubernetes": {
      "command": "npx",
      "args": [
        "-y",
        "kubernetes-mcp-server"
      ]
    }
  }
}
  • Add this under the existing mcpServers key if the file already has one, then fully restart Claude Desktop.

Format checked Oct 30, 2026 against Claude Desktop documentation. Client settings change, so confirm with the client's own docs.

Connection details

Packages

npm package · stdio
kubernetes-mcp-server@0.1.0

Python package (PyPI) · stdio
kubernetes-mcp-server@0.1.0

Docker image · streamable-http
ghcr.io/containers/kubernetes-mcp-server:v0.1.0

Overview

This is a native Go MCP server that talks to the Kubernetes API server directly instead of wrapping kubectl or helm. By default an assistant gets the core and config toolsets: it can list and inspect pods, read logs and events, run a command in a pod, and create, update or delete any resource. Helm, Tekton, KubeVirt, Kiali and observability tools are optional toolsets you enable in the configuration. It uses your kubeconfig, so it reaches the clusters and contexts that file defines, including several at once. It ships as a single native binary, an npm or Python package, and a container image. It is a community project.

What it can do

  • Creates, reads, updates and deletes any Kubernetes or OpenShift resource, with dedicated tools for pods: list, get, delete, logs, top, exec and run.
  • Optional toolsets, off by default, add Helm release management (install, list, uninstall), Tekton pipeline tools, KubeVirt virtual machines, Kiali, and Loki, Prometheus and trace queries.
  • Works against several clusters at once, as defined in your kubeconfig files, and picks up kubeconfig changes automatically.
  • Optional OpenTelemetry tracing and metrics, plus TOML configuration files for settings such as toolsets and read-only behavior.

What you need

Sign-in and credentials

No separate credentials: it uses your kubeconfig, or the in-cluster configuration when it runs inside a cluster.

Runs as

npm package, Python package (PyPI), Docker image (started with uvx)

Sources

MCP Registry
Listed in the MCP Registry as io.github.containers/kubernetes-mcp-server
Last checked
Oct 31, 2026
Record reviewed
Oct 31, 2026

Statements on this page come from

Listing on HistChat is not an endorsement or a security review. MCP servers can access data or perform actions, so review the source and permissions before connecting.

  • Cloudflare MCP Servers

    CloudflareOfficial

    Cloudflare's product-specific remote servers for docs, containers, Browser Run, DEX and CASB, plus several deprecated ones.

    Category
    Cloud & Infrastructure
    Connection
    Remote
    GitHub stars
    4.4k
  • Azure MCP Server

    MicrosoftOfficial

    Work across many Azure services from an assistant through one local server that uses your existing Azure sign-in.

    Category
    Cloud & Infrastructure
    Connection
    Local
  • Terraform

    HashiCorpOfficial

    Look up Terraform providers and modules and manage HCP Terraform workspaces from an assistant.

    Category
    Cloud & Infrastructure
    Connection
    Local
    GitHub stars
    1.5k
  • Cloudflare API

    CloudflareOfficial

    Reach the whole Cloudflare API from an assistant with a few code-mode tools instead of thousands of endpoint tools.

    Category
    Cloud & Infrastructure
    Connection
    Remote
    GitHub stars
    1k
  • Vercel

    VercelOfficial

    Manage Vercel projects and deployments, analyze deployment logs and query Web Analytics from an AI assistant.

    Category
    Cloud & Infrastructure
    Connection
    Remote
  • AWS MCP Server

    Amazon Web ServicesOfficial

    Give an assistant access to AWS services and current AWS documentation through a managed server that runs under your IAM credentials.

    Category
    Cloud & Infrastructure
    Connection
    Remote