Skip to content

MCP setupDevOps and cloud

Google Cloud MCP Server

Let the agent run gcloud commands through Google's MCP server (npx), under your own account or a limited service account.

npx workspacetemplates add gcloud-mcp --tool claude-code

Writes 1 file to your project root

.mcp.jsonmerge into your file11 lines · 145 BFile
{
  "mcpServers": {
    "gcloud": {
      "command": "npx",
      "args": [
        "-y",
        "@google-cloud/gcloud-mcp"
      ]
    }
  }
}

What it does

Google's gcloud MCP server exposes a single tool that runs gcloud commands. It lets an agent list projects, inspect resources and run the same operations you would type in a terminal, minus a deny list of interactive or arbitrary-input commands.

It has no credentials of its own: it uses the account active in your gcloud CLI. To narrow what it can do, authorize gcloud as a service account with a restricted role and use impersonation.

Example

you › List my Cloud Run services in europe-west1 and show which have more than one revision serving traffic.

agent › 4 services. checkout-api splits traffic 90/10 across two revisions; the other 3 serve a single revision.

Questions

What do I need installed?
Node.js 20 or newer and the gcloud CLI, already signed in.
How do I keep it safe?
Authorize gcloud as a service account that has a narrow role, since the server's rights equal those of the active account.
  • AWS Documentation MCP Server

    MCP setupDevOps and cloud

    Free
  • Azure MCP Server

    MCP setupDevOps and cloud

    Free
  • CircleCI MCP Server

    MCP setupDevOps and cloud

    Free
  • Cloudflare MCP Server

    MCP setupDevOps and cloud

    Free