MCP ConfigsMay 14, 2026·2 min read

k8s-mcp-server — Kubernetes + Helm MCP Tools

Build k8s-mcp-server in Go to expose Kubernetes tools over MCP with stdio/SSE/streamable-http modes and an optional read-only flag.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 94/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Mcp
Install
Go
Trust
Trust: Established
Entrypoint
go build -o k8s-mcp-server main.go
Universal CLI install command
npx tokrepo install b87b1414-f0f9-5a34-ab79-86c0f3965d3a
Intro

Use k8s-mcp-server to connect an MCP-capable assistant to Kubernetes and Helm operations with a clear, flag-driven runtime mode.

Build k8s-mcp-server in Go to expose Kubernetes tools over MCP with stdio/SSE/streamable-http modes and an optional read-only flag.

Best for: platform engineers who want MCP-based Kubernetes tooling with explicit run modes for CLI and web integrations

Works with: Go, kubeconfig or env-based cluster auth, MCP clients (stdio) or web transports (SSE/streamable-http)

Setup time: ~10–20 minutes (clone + go build + first config)

Key facts (verified)

  • GitHub: 155 stars · 37 forks · pushed 2026-05-11.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • Entrypoint (README-backed): go build -o k8s-mcp-server main.go.

Main

  • Prefer --read-only for first runs; only enable write operations after you validate namespace scoping and auth paths.
  • Use stdio mode for desktop clients and SSE/HTTP modes for web deployments; keep configs separate per environment.
  • Keep kubeconfig and tokens out of agent prompts; pass them via env vars and mount paths as documented.

README excerpt (source)

# Kubernetes MCP Server

A Kubernetes Model Context Protocol (MCP) server that provides tools for interacting with Kubernetes clusters through a standardized interface.

## Hosted deployment

A hosted deployment is available on [Fronteir AI](https://fronteir.ai/mcp/reza-gholizade-k8s-mcp-server).

## Features

- **API Resource Discovery**: Get all available API resources in your Kubernetes cluster.
- **Resource Listing**: List resources of any type with optional namespace and label filtering.
- **Resource Details**: Get detailed information about specific Kubernetes resources.
- **Resource Description**: Get comprehensive descriptions of Kubernetes resources, similar to `kubectl describe`.
- **Pod Logs**: Retrieve logs from specific pods (optionally from a specific container, or all containers if unspecified).
- **Node Metrics**: Get resource usage metrics for specific nodes.
- **Pod Metrics**: Get CPU and Memory metrics for specific pods.
- **Event Listing**: List events within a namespace or for a specific resource.
- **Resource Creation/Updating**: Create new Kubernetes resources or update existing ones from a YAML or JSON manifest.

FAQ

Q: What modes are supported? A: The README documents stdio, SSE, and streamable-http modes with flags and env vars.

Q: Can I keep it read-only? A: Yes—use the --read-only flag as shown in the docs/config examples.

Q: How should I authenticate? A: Start with kubeconfig via env or mounted paths; avoid pasting tokens into chats.

🙏

Source & Thanks

Source: https://github.com/reza-gholizade/k8s-mcp-server > License: MIT > GitHub: 155 stars · 37 forks · pushed 2026-05-11

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets