Kubernetes cluster operations through MCP
Bridging the Gap: Kubernetes Integration with LLMs via the Model Context Protocol
Unlock the power of Large Language Models (LLMs) within your Kubernetes environment using the Model Context Protocol (MCP). This Golang-based server provides a seamless interface for LLMs to interact with your cluster, enabling intelligent automation, insightful analysis, and more.
This MCP server empowers LLMs with the ability to:
Quickly explore the capabilities of this MCP server using the Inspector tool:
npx @modelcontextprotocol/inspector npx @strowk/mcp-k8s
This command launches the Inspector, allowing you to interact with the server and discover its functionalities.
This MCP server is designed for easy integration with Claude, enabling you to leverage the power of LLMs within your Kubernetes workflows.
Choose the installation method that best suits your environment:
Method | Prerequisites | Claude Setup |
---|---|---|
Smithery | Node.js | Automatic |
mcp-get | Node.js | Automatic |
Pre-built NPM | Node.js | Manual |
GitHub Releases | None | Manual |
Build from Source | Golang | Manual |
Docker | Docker | Manual |
Automated installation via Smithery:
npx -y @smithery/cli install @strowk/mcp-k8s --client claude
Automated installation via mcp-get:
npx @michaellatman/mcp-get@latest install @strowk/mcp-k8s
Install the package globally:
npm install -g @strowk/mcp-k8s
Verify the installation:
mcp-k8s --version
Configure Claude by adding the following to your claude_desktop_config.json
:
{ "mcpServers": { "mcp_k8s": { "command": "mcp-k8s", "args": [] } } }
Alternatively, use npx
for execution:
npx @strowk/mcp-k8s
And configure Claude:
{ "mcpServers": { "mcp_k8s": { "command": "npx", "args": [ "@strowk/mcp-k8s" ] } } }
Download the appropriate binary from the GitHub releases page.
Extract the archive and place the mcp-k8s-go
binary in your system's PATH.
Configure Claude by adding the following to your claude_desktop_config.json
:
{ "mcpServers": { "mcp_k8s": { "command": "mcp-k8s-go", "args": [] } } }
Ensure you have Golang installed.
Obtain and install the project:
go get github.com/strowk/mcp-k8s-go go install github.com/strowk/mcp-k8s-go
Configure Claude by adding the following to your claude_desktop_config.json
:
{ "mcpServers": { "mcp_k8s_go": { "command": "mcp-k8s-go", "args": [] } } }
Run the Docker image, mounting your Kubernetes configuration:
docker run -i -v ~/.kube/config:/home/nonroot/.kube/config --rm mcpk8s/server:latest
Note: Windows users may need to adjust the path to their kubeconfig
file (e.g., //c/Users/<username>/.kube/config
in Git Bash).
Configure Claude by adding the following to your claude_desktop_config.json
:
{ "mcpServers": { "mcp_k8s_go": { "command": "docker", "args": [ "run", "-i", "-v", "~/.kube/config:/home/nonroot/.kube/config", "--rm", "mcpk8s/server:latest" ] } } }
KUBECONFIG
: Specifies the path to your Kubernetes configuration file (defaults to ~/.kube/config
).--allowed-contexts=<ctx1,ctx2,...>
: Restricts access to specific Kubernetes contexts. If omitted, all contexts are accessible.--help
: Displays help information.--version
: Displays version information.By integrating this MCP server, you can unlock a new level of intelligence and automation within your Kubernetes environment, empowering LLMs to drive efficiency and innovation.
๐ A gateway demo for MCP SSE Server.
๐ โ๏ธ A lightweight mcp server that tells you exactly what time is it.
#๏ธโฃ ๐ A C# SDK for building MCP servers on .NET 9 with NativeAOT compatibility โก ๐
โ Java SDK for building MCP servers using Quarkus.