mcp-server-k8s-go
If you are the rightful owner of mcp-server-k8s-go and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
mcp-server-k8s-go is a sample Model Context Protocol (MCP) server for Kubernetes, implemented in Go.
mcp-server-k8s-go
Sample MCP server for Kubernetes, written in Go
codespace setup
Run the following command to start minikube.
minikube start
Optionally, create a sample deployment to test and verify the MCP server.
kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
Run the following command to build the MCP server:
go install github.com/magefile/mage@latest
mage
testing MCP server in shell
Run the following command to communicate with the MCP server in the studio transport, which allows interaction through standard input and output.
mcp-server-k8s-go < <(ls examples | xargs -I{} bash -c 'echo $(cat examples/{})')
cline setup
Add the following configuration to set up MCP servers:
{
"mcpServers": {
"local-kubernetes": {
"command": "/go/bin/mcp-server-k8s-go",
"env": {
"KUBECONFIG": "/home/codespace/.kube/config"
}
}
}
}