K8s MCP Server (Go) logo

K8s MCP Server (Go)

Read-only-by-default Kubernetes inspection and controlled workload operations through MCP permission modes.

Install K8s MCP Server (Go)

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://claudemarketplaces.com/mcp/kaneg/k8s-mcp-go

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

K8s MCP Server (Go) MCP server connects AI assistants to Kubernetes for resource inspection, logs, events, health summaries, and selected operations. It runs as a native Go binary or MCPB bundle and uses Kubernetes configuration from KUBECONFIG, in-cluster credentials, or the default kubeconfig. Choose readonly, readwrite, or dangerous mode before startup to set the available action boundary. Reach for it when an agent needs Kubernetes visibility without unrestricted kubectl access.

Use cases

  • Inspect unhealthy pods across namespaces
  • Investigate deployment readiness and rollout progress
  • Review recent warning events and pod logs
  • Monitor node and pod CPU or memory usage
  • Scale or restart workloads in readwrite mode

Key features

  • Read-only-by-default Kubernetes access
  • Readonly, readwrite, and dangerous permission modes
  • Pod, workload, service, and cluster inspection
  • Pod logs, events, and live CPU or memory metrics
  • Native binary and MCPB distribution
  • Kubernetes configuration source selection

Tools38

What K8s MCP Server (Go) lets your agent do. Expand a tool for its parameters.

Self-reported~435 tokens of context

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.

14/14 checks healthy over the last 78d

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit5mo agoMost recent push to the default branch.
Tools exposed38Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How K8s MCP Server (Go) works

What K8s MCP Server (Go) MCP server does

K8s MCP Server (Go) MCP server exposes Kubernetes cluster operations through MCP while separating inspection from mutation. Its default readonly mode supports diagnosis and exploration without allowing workload changes. The server can inspect pods, deployments, StatefulSets, services, ConfigMaps, Secrets, PersistentVolumeClaims, Ingress resources, Jobs, nodes, namespaces, events, logs, and current CPU and memory usage.

The server also provides workload-oriented helpers. resolve_workload maps an application or workload name to matching resources and suggests follow-up tools, while get_cluster_overview summarizes cluster health. These capabilities suit incident investigation, deployment troubleshooting, and resource-usage checks from an AI client.

How it works

K8s MCP Server (Go) MCP server selects an authorization boundary at startup. readonly is the default and exposes inspection tools only. readwrite adds controlled actions such as scaling deployments, restarting deployments or StatefulSets, changing container images, checking rollout progress, creating namespaces, and patching deployments. dangerous enables destructive operations and arbitrary YAML application, including resource and namespace deletion.

The MCP client launches the server using the installed binary and a mode argument, for example -mode=readonly. Requests are then translated into Kubernetes API operations rather than unrestricted shell access. The server reports its version, selected mode, Kubernetes configuration source, and runtime details through get_server_info.

Setup and configuration

Install either an MCPB bundle from the project releases or a platform-specific native binary. MCPB-compatible clients can install the bundle directly. For a manual setup, place the binary on the system path and register it as the command for an MCP server entry. The supplied examples show configurations for Claude Desktop and Cursor.

Kubernetes credentials are selected in this order:

  • KUBECONFIG, when explicitly set
  • In-cluster ServiceAccount configuration
  • ~/.kube/config outside a cluster

An explicitly set but unloadable KUBECONFIG produces an error instead of falling back to another source. In-cluster operation uses the mounted ServiceAccount token, allowing projected token rotation to continue working.

Tools and capabilities

Readonly tools cover resource listing and detail retrieval, pod logs, ConfigMap data, Secret metadata and keys, cluster overview, events, node and pod metrics, and workload resolution. List operations for several resource types support all_namespaces=true.

Readwrite tools cover deployment scaling, deployment and StatefulSet restarts, image updates, rollout checks, namespace creation, and deployment patches. Dangerous tools cover deleting pods, deployments, StatefulSets, DaemonSets, other resources, or namespaces, as well as applying arbitrary YAML manifests.

Limitations and notes

The default mode does not modify workloads or delete resources. Readwrite mode remains narrower than full cluster control, while dangerous mode should be enabled only when unrestricted mutation is intentional. Secret listing returns keys only, and secret retrieval returns metadata and keys rather than secret values.

K8s MCP Server (Go) MCP server requires usable Kubernetes credentials and permissions for the requested API operations. The server does not replace Kubernetes RBAC; the selected mode controls which MCP tools are available, while the cluster identity still determines what those tools can do.

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 K8s MCP Server (Go)

K8s MCP Server (Go) is an MCP server that connects AI assistants to Kubernetes clusters. Its main tools inspect pods, workloads, services, nodes, namespaces, logs, events, and resource usage, with additional tools for scaling, restarting, image updates, rollout checks, namespace creation, and controlled or dangerous mutations.

Install it from an MCPB bundle or download a native binary from the project releases. MCPB-compatible clients can install the bundle directly; for a manual setup, place the binary on the system path and register it as the MCP command with a mode such as `-mode=readonly`.

Yes, K8s MCP Server (Go) works with Cursor. Add the binary as an MCP server in `.cursor/mcp.json`, pass a permission mode such as `-mode=readonly`, and restart Cursor before querying the Kubernetes cluster.

It checks `KUBECONFIG` first, then in-cluster ServiceAccount configuration, and finally `~/.kube/config` when running outside a cluster. An explicit but invalid `KUBECONFIG` causes an error instead of silently selecting another source.

Start it in `readwrite` mode to allow selected operations such as scaling, restarts, image updates, rollout checks, namespace creation, and deployment patches. Keep `readonly` for inspection only; `dangerous` enables deletion and arbitrary YAML application.

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