Skip to content

Google Cloud CLI MCP (gcloud)

Let Claude run gcloud commands to manage services across your Google Cloud projects.

Officialby Google CloudHosted or on your computerChecked October 18, 2026

Google's gcloud MCP server gives Claude one tool that runs Google Cloud CLI commands with your signed-in account, so it can work with Cloud Run, Compute Engine, GKE, Cloud Storage and most other services. Google also hosts a remote version in Preview that runs the commands in a managed sandbox, next to product-specific remote servers for services such as Compute Engine and GKE.

Who it is for

  • Developers deploying to Google Cloud
  • Cloud engineers who work in the gcloud CLI
  • Teams exploring projects they did not set up

Prompts to try

Once it is connected, ask in plain words. Claude decides when to use the server and asks before it changes anything important.

Prompt 1
Deploy the container image in my Artifact Registry repo to Cloud Run in us-central1 and give me the service URL.
Prompt 2
List every Compute Engine VM in my project with its zone, machine type and status.
Prompt 3
Which service accounts in my project have the Owner role?

How to connect it

In Claude Code

  1. claude mcp add --transport stdio gcloud -- npx -y @google-cloud/gcloud-mcp

In the Claude desktop app

Add this to claude_desktop_config.json, then restart the app:

json
{
  "mcpServers": {
    "gcloud": {
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/gcloud-mcp"
      ]
    }
  }
}

Hosted address: https://cloudcli.googleapis.com/mcp

Good to know

Run gcloud auth login first; the hosted endpoint is in Preview and needs the Cloud CLI Execution API plus your own OAuth client for Claude.

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 150 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you the course and AI tips.

How we checked it

Checked the googleapis/gcloud-mcp repo (Apache-2.0, last commit 2026-07-15), the npm package @google-cloud/gcloud-mcp and Google's Cloud CLI remote MCP docs (Preview, updated 2026-10-13); the hosted endpoint answers an MCP initialize request.

Source: github.com/googleapis/gcloud-mcp