Kubernetes & Helm MCP Server

Kubernetes & Helm MCP Server

k8s-mcp-server-kopp0510•bykopp0510

An MCP server that exposes kubectl and Helm commands as tools for managing Kubernetes and Helm environments, with SSE support for n8n.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides kubectl tools covering resource queries, logs, describe, YAML output, resource usage monitoring, scaling, restarts, and HPA editing.
  • •Provides Helm tools for listing releases and repositories, checking release status, reading configuration values, and viewing release history.
  • •Uses Server-Sent Events for real-time bidirectional communication and exposes an SSE endpoint for clients such as n8n.

BEST FOR

  • •Connecting n8n workflows to a Kubernetes and Helm management MCP server.
  • •Operating Kubernetes clusters and Helm releases through MCP tools.

ABOUT K8S-MCP-SERVER-KOPP0510

Kubernetes & Helm MCP Server is cataloged as an MCP server attributed to kopp0510. An MCP server that exposes kubectl and Helm commands as tools for managing Kubernetes and Helm environments, with SSE support for n8n. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Kubernetes & Helm MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How can the server be run for n8n integration?

It can be started in SSE mode with a chosen port to serve the SSE and message endpoints used by n8n.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 87271aa43bfd · 采集于 2026-11-13 12:59:10 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Kubernetes & Helm MCP Server

A simple, reliable MCP (Model Context Protocol) Server designed for Kubernetes and Helm environment management, with n8n integration support.

Features

  • Native n8n Support - Perfect support for n8n MCP Client nodes
  • SSE Connection - Uses Server-Sent Events for real-time bidirectional communication
  • Kubernetes Integration - Provides complete kubectl tool access
  • Helm Support - Provides Helm chart and release management functionality
  • Modular Architecture - Clear separation between entry point and server implementation

File Structure

k8s-mcp-server/
├── src/                           # Source code directory
│   ├── index.js                   # Main program entry, handles lifecycle and parameter parsing
│   ├── server.js                  # MCP + Express integration, server implementation
│   ├── tools/                     # Tool modules
│   │   ├── base-tool.js           # Base tool class
│   │   ├── kubectl-get.js         # Resource query tool (supports label filtering)
│   │   ├── kubectl-logs.js        # Pod log viewing tool
│   │   ├── kubectl-describe.js    # Resource detailed description tool
│   │   ├── kubectl-cluster-info.js # Cluster information query tool
│   │   ├── kubectl-get-yaml.js    # Resource YAML format output tool
│   │   ├── kubectl-top-nodes.js   # Node resource usage monitoring
│   │   ├── kubectl-top-pods.js    # Pod resource usage monitoring
│   │   ├── kubectl-top-containers.js # Container resource usage monitoring
│   │   ├── kubectl-scale-deployment.js # Deployment scaling tool
│   │   ├── kubectl-restart-deployment.js # Deployment restart tool
│   │   ├── kubectl-edit-hpa.js    # HPA editing tool
│   │   ├── helm-list.js           # Helm release list tool
│   │   ├── helm-status.js         # Helm release status tool
│   │   ├── helm-repo-list.js      # Helm repository list tool
│   │   ├── helm-get-values.js     # Helm release configuration values tool
│   │   └── helm-history.js        # Helm release history tool
│   └── utils/                     # Utility functions
│       ├── logger.js              # Logging system
│       ├── validator.js           # Input validation (including label validation)
│       ├── kubectl.js             # kubectl execution tool
│       └── helm.js                # helm execution tool
├── package.json                   # Project configuration and dependencies
├── package-lock.json              # Dependency lock file
├── Dockerfile                     # Docker container build file
├── build.sh                       # Docker build script
├── .gitignore                     # Git ignore file configuration
├── .cursorignore                  # Cursor editor ignore file configuration
└── README.md                      # Project documentation

Architecture Description

  • src/index.js - Main program entry, responsible for:

    • Command line parameter parsing
    • Environment variable configuration
    • Lifecycle management
    • Graceful shutdown handling
    • Error handling
  • src/server.js - Server implementation, responsible for:

    • MCP Server configuration and tool registration
    • Express application creation (SSE mode)
    • MCP message processing
    • SSE connection management

Quick Start

Local Development

  1. Install Dependencies
npm install
  1. Start SSE Mode (for n8n)
npm run start:http
# Or specify port
npm run start:http -- --port 3001
  1. Check Service Status
curl http://localhost:3001/health

Docker Deployment

1. Build Image

docker build -t k8s-mcp-server .

2. Start Container (requires kubeconfig mounting)

⚠️ Important: When starting the container, you need to mount the local .kube/config to the container's /home/nodejs/.kube/config path so that the MCP Server can access the Kubernetes cluster.

# Use local kubeconfig
docker run -p 3001:3000 \
  -v ~/.kube/config:/home/nodejs/.kube/config:ro \
  k8s-mcp-server

3. Custom kubeconfig Path

# Use custom kubeconfig file
docker run -p 3001:3000 \
  -v /path/to/your/kubeconfig:/home/nodejs/.kube/config:ro \
  k8s-mcp-server

4. Use Service Account Token (Kubernetes Internal Deployment)

# When deploying inside a Kubernetes cluster, you can use service account
docker run -p 3001:3000 \
  -v /var/run/secrets/kubernetes.io/serviceaccount:/var/run/secrets/kubernetes.io/serviceaccount:ro \
  -e KUBERNETES_SERVICE_HOST \
  -e KUBERNETES_SERVICE_PORT \
  k8s-mcp-server

5. Verify Connection

After the container starts, you can check the Kubernetes connection status:

# Check service status
curl http://localhost:3001/health

# Test Kubernetes connection
curl -X POST http://localhost:3001/messages \
  -H "Content-Type: application/json" \
  -d '{
    "method": "tools/call",
    "params": {
      "name": "kubectl_get",
      "arguments": {"resource": "nodes"}
    }
  }'

6. Important Notes

Permission Requirements:

  • Ensure the kubeconfig file has appropriate Kubernetes cluster access permissions
  • It's recommended to use read-only service accounts for improved security
  • The container runs as the nodejs user, ensure mounted files have appropriate read permissions

Troubleshooting:

# Check kubeconfig file permissions
ls -la ~/.kube/config

# Verify kubeconfig validity
kubectl --kubeconfig ~/.kube/config get nodes

# Check kubeconfig inside container
docker exec -it <container-id> cat /home/nodejs/.kube/config

Docker Compose Example:

version: '3.8'
services:
  k8s-mcp-server:
    build: .
    ports:
      - "3001:3000"
    volumes:
      - ~/.kube/config:/home/nodejs/.kube/config:ro
    environment:
      - NODE_ENV=production
    restart: unless-stopped

Using with n8n

Step 1: Start MCP Server

Ensure the MCP Server is running in SSE mode:

cd k8s-mcp/k8s-mcp-server
npm run start:http -- --port 3001

After the server starts, you will see:

MCP Server started at http://localhost:3001
SSE endpoint: http://localhost:3001/sse (n8n connects here)
Message endpoint: http://localhost:3001/messages
Health check: http://localhost:3001/health
SSE mode - designed for n8n

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Kubernetes & Helm MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/k8s-mcp-server-kopp0510)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps