executeLABSCO SUMMARY
Full kubectl, with your permissions and no extra guard rails.
Because the execute request passes the command through, everything your kubectl can do is in reach — including delete and apply — and the server adds no authorization of its own. That makes context switching the most important tool here, not a convenience: point it at a kubeconfig scoped to the cluster and namespace you are willing to have driven, and confirm the current context before you let it act.
What it is
A Go MCP server that executes kubectl commands on your machine on behalf of an MCP client, and manages which context those commands run against.
What you get
- An execute request that runs any kubectl command and returns its output
- A request that lists the Kubernetes contexts available to you
- A request that reports the current context, and one that sets it
- Stdio by default, or HTTP transport by starting the binary with a port flag
- A single-line client config — no arguments needed once the binary is on PATH
Requirements
Go 1.23 or higher to go install it, kubectl on your PATH, and a valid kubeconfig. The server itself implements no authentication or authorization — it runs as you, with your kubeconfig.
Setup effort
One command — go install github.com/BhagyaAmarasinghe/mcp-kubernetes@latest
USE CASES
Asking what is running
Have the assistant list pods or services in a namespace and summarise what is unhealthy.
Making sure you are on the right cluster
Read the current context and switch it explicitly before running anything that changes state.
Checking a rollout
Ask for the status of a named deployment rather than composing the kubectl invocation yourself.
4 tools
Listed in project docs. Your client may show a different list.
get-contextscurrent-contextset-contextBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation.
Requires
- mcp-kubernetes on PATH
- Go 1.23 or later
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
go install github.com/BhagyaAmarasinghe/mcp-kubernetes@latestMCP Clients
Claude Desktop
{
"mcpServers": {
"kubernetes": {
"command": "mcp-kubernetes"
}
}
}