MCP K8s logo

MCP K8s

by silenceper

Manages Kubernetes resources and Helm releases through MCP tools, with configurable write permissions and kubeconfig-based cluster access.

Install MCP K8s

Run the project’s own setup commands, in order.

Setup steps from the project

silenceper/mcp-k8s installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    ./bin/mcp-k8s --kubeconfig=/path/to/kubeconfig --transport=sse --port=8080 --host=localhost --enable-create --enable-delete --enable-list --enable-update --enable-helm-install
    
  2. 2. Start the server
    ./bin/mcp-k8s --kubeconfig=/path/to/kubeconfig --transport=streamable-http --port=8080 --host=localhost --endpoint-path=/mcp --enable-create --enable-delete --enable-list --enable-update --enable-helm-install
    
  3. 3. Start the server
    docker run --rm -p 8080:8080 -i -v ~/.kube/config:/root/.kube/config ghcr.io/silenceper/mcp-k8s:latest --transport=sse
    
  4. 4. Start the server
    docker run --rm -p 8080:8080 -i -v ~/.kube/config:/root/.kube/config ghcr.io/silenceper/mcp-k8s:latest --transport=streamable-http --endpoint-path=/mcp
    
  5. 5. Install
    go install github.com/silenceper/mcp-k8s/cmd/mcp-k8s@latest
    
  6. 6. Install
    git clone https://github.com/silenceper/mcp-k8s.git
    

Overview

The silenceper/mcp-k8s MCP server exposes Kubernetes resource and Helm management through MCP tools. It connects to a cluster using kubeconfig and supports built-in resource types as well as custom resources. Read, write, and Helm operations can be enabled or disabled independently, allowing deployments to limit mutation capabilities. Reach for it when an MCP client needs to inspect or manage Kubernetes clusters through structured tool calls and natural-language workflows.

Use cases

  • Inspect Kubernetes resource types and cluster objects
  • Create and update test-environment resources
  • Manage Helm releases and repositories
  • Review Kubernetes configurations through an MCP client

Key features

  • Query built-in Kubernetes resources and CRDs
  • Read, create, update, and delete Kubernetes resources
  • Manage Helm releases
  • Manage Helm repositories
  • Independently enable or disable write operations
  • Support stdio, SSE, and Streamable HTTP transports

Security & health

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

ActiveLast checked

Recent health check succeeded.

27/28 checks healthy over the last 111d

Adoption & maintenance

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

GitHub stars152Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP K8s works

What silenceper/mcp-k8s MCP server does

The silenceper/mcp-k8s MCP server connects an MCP client to a Kubernetes cluster and exposes tools for resource discovery, resource operations, and Helm management. It supports built-in Kubernetes resources and custom resources defined through CRDs.

Resource tools can retrieve details for a specific object, list objects of a given type with filtering options, and create, update, or delete resources. The server also provides Helm tools for inspecting releases, installing or upgrading charts, removing releases, and managing Helm repositories.

Write operations are configurable. Create, update, and delete actions can each be enabled or disabled separately. Helm installation, upgrade, uninstall, repository addition, and repository removal also have independent controls.

How it works

The server is written in Go and uses the mcp-go SDK for MCP communication. Kubernetes access is provided through the client-go library, while Helm actions use the Helm v3 client library. Cluster credentials and connection details come from a kubeconfig file.

By default, the server communicates over standard input and output, which suits local MCP clients. It can also expose an HTTP endpoint using either Server-Sent Events or Streamable HTTP. SSE uses the /sse endpoint, while Streamable HTTP uses /mcp by default, with the host, port, and endpoint path configurable through command-line flags.

Setup and configuration

You can download a platform-specific binary from the project's releases, install it with Go, or build it from source using the repository's Makefile. The Go installation command is:

bash
go install github.com/silenceper/mcp-k8s/cmd/mcp-k8s@latest

A local stdio configuration points the MCP client at the compiled mcp-k8s executable and passes the kubeconfig path as --kubeconfig. Additional flags such as --enable-create, --enable-update, --enable-delete, and --enable-list control resource operations. Helm permissions use flags including --enable-helm-install and --enable-helm-upgrade.

Docker images are published at ghcr.io/silenceper/mcp-k8s:latest. The documented container setup mounts a kubeconfig file at /root/.kube/config and can run in stdio, SSE, or Streamable HTTP mode.

Tools and capabilities

The available tools include:

  • get_api_resources for discovering supported API resource types
  • get_resource and list_resources for reading Kubernetes objects
  • create_resource, update_resource, and delete_resource for mutations
  • list_helm_releases and get_helm_release for release inspection
  • install_helm_chart, upgrade_helm_chart, and uninstall_helm_chart for release actions
  • list_helm_repositories, add_helm_repository, and remove_helm_repository for repository management

These capabilities support cluster status checks, configuration work, test-environment management, and operator workflows where an LLM translates requests into Kubernetes actions.

Limitations and notes

The server requires access to a kubeconfig and the corresponding Kubernetes permissions. Enabling mutation or Helm tools allows the connected MCP client to perform changes, so operation flags should be selected according to the intended access level. The README specifically notes that remotely deployed SSE mode requires attention to security.

The silenceper/mcp-k8s MCP server is an interface to Kubernetes and Helm; it does not replace cluster authorization or the underlying permissions configured for the supplied kubeconfig.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

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

Frequently Asked Questions about MCP K8s

Install it with Go using `go install github.com/silenceper/mcp-k8s/cmd/mcp-k8s@latest`, download a release binary, or build it from source with the provided Makefile.

It documents stdio configuration for MCP clients generally.

It connects through a kubeconfig file passed with the `--kubeconfig` command-line option.

Yes. Create, update, and delete operations can be enabled or disabled independently, and Helm mutation operations have separate controls.

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