Enable MCP-compatible AI agents to interact with Google Kubernetes Engine.
-
Install the tool:
go install github.com/GoogleCloudPlatform/gke-mcp@latest
The
gke-mcpbinary will be installed in the directory specified by theGOBINenvironment variable. IfGOBINis not set, it defaults to$GOPATH/binand, ifGOPATHis also not set, it falls back to$HOME/go/bin.You can find the exact location by running
go env GOBIN. If the command returns an empty value, rungo env GOPATHto find the installation directory. -
Install it as a
gemini-cliextension:gke-mcp install gemini-cli
This will create a manifest file in
./.gemini/extensions/gke-mcpthat points to the installedgke-mcpbinary.
cluster_toolkit: Creates AI optimized GKE Clusters.list_clusters: List your GKE clusters.get_cluster: Get detailed about a single GKE Cluster.giq_generate_manifest: Generate a GKE manifest for AI/ML inference workloads using Google Inference Quickstart.list_recommendations: List recommendations for your GKE clusters.
In addition to the tools above, a lot of value is provided through the bundled context instructions.
- Cost: The provided instructions allows the AI to answer many questions related to GKE costs, including queries related to clusters, namespaces, and Kubernetes workloads.
To compile the binary and update the gemini-cli extension with your local changes, follow these steps:
-
Build the binary from the root of the project:
go build -o gke-mcp . -
Run the installation command to update the extension manifest:
./gke-mcp install gemini-cli
This will make
gemini-cliuse your locally compiled binary.