Manage Your Kubernetes Cluster with k8s mcp-server
# Add to your Claude Code skills
git clone https://github.com/reza-gholizade/k8s-mcp-serverA Kubernetes Model Context Protocol (MCP) server that provides tools for interacting with Kubernetes clusters through a standardized interface.
kubectl describe.stdio mode for CLI tools, sse mode, or streamable-http mode for web applications, and for no change in the cluster.--readonlykubectl configured with appropriate cluster accessClone the repository:
git clone https://github.com/reza-gholizade/k8s-mcp-server.git
cd k8s-mcp-server
Install dependencies:
go mod download
Build the server:
go build -o k8s-mcp-server main.go
The server can run in three modes, configurable via command-line flags or environment variables.
This mode uses standard input/output for communication.
./k8s-mcp-server --mode stdio
Or using environment variables:
SERVER_MODE=stdio ./k8s-mcp-server
This mode starts an HTTP server with Server-Sent Events support.
Default (port 8080):
./k8s-mcp-server --mode sse
Specify a port:
./k8s-mcp-server --mode sse --port 9090
Or using environment variables:
SERVER_MODE=sse SERVER_PORT=9090 ./k8s-mcp-server
This mode starts an HTTP server with streamable-http transport support, following the MCP specification.
Default (port 8080):
./k8s-mcp-server --mode streamable-http
Specify a port:
./k8s-mcp-server --mode streamable-http --port 9090
Or using envi...