Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMay 14, 2026·2 min de lecture

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.

MCP Hub
MCP Hub · Community
Prêt pour agents

Staging sûr pour cet actif

Cet actif est d'abord staged. Le prompt copié demande à l'agent d'inspecter les fichiers staged avant d'activer scripts, config MCP ou config globale.

Stage only · 17/100Policy : staging
Surface agent
Tout agent MCP/CLI
Type
Mcp Config
Installation
Stage only
Confiance
Confiance : Established
Point d'entrée
Asset
Commande de staging sûr
npx -y tokrepo@latest install b87b1414-f0f9-5a34-ab79-86c0f3965d3a --target codex

Stage les fichiers d'abord; l'activation exige la revue du README et du plan staged.

Introduction

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 et remerciements

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

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires