================== /// MCP /// /// MCP /// ================== [server:online] [protocol:ready]
mcp-server-kubernetes
by Flux159
MCP (Model Context Protocol) server that exposes high-level Kubernetes and Helm management tools through the MCP interface. It auto-detects kubeconfig, supports non-destructive mode, and bundles many kubectl/helm operations for chat-based automation.
933
147
Open SourceInstallation
1. Prerequisites:
• Node.js >= 18
• kubectl configured to reach your Kubernetes cluster
• (Optional) A personal access token if your cluster requires RBAC authentication.
2. Install the package in your project directory:
npm install mcp-server-kubernetes --save
# or
yarn add mcp-server-kubernetes
3. Generate TypeScript types (recommended):
npx tsc --init # if you do not already have a tsconfig.json
4. Create a configuration file (mcp.config.js / .ts):
module.exports = {
kubeconfig: process.env.KUBECONFIG || '~/.kube/config',
namespace: 'default', // namespace MCP server should operate in
serviceAccount: 'mcp-server', // SA with the required ClusterRole bindings
port: 8080 // HTTP port the MCP server should listen on
};
5. Start the MCP server:
npx mcp-server-kubernetes start --config ./mcp.config.js
6. (Optional) Build a Docker image and run inside the cluster:
docker build -t your-org/mcp-server-kubernetes .
kubectl apply -f k8s/deployment.yaml
Documentation
License: MIT License
Updated 7/30/2025