# Repository Briefing: googleapis/gcloud-mcp
> Source: https://repoforai.com/repo/googleapis/gcloud-mcp (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/googleapis/gcloud-mcp
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: Apache-2.0
- **Engineering Health**: A (76/100 · Maintenance 26/35 · Adoption 16/25 · Releases 14/20 · License 20/20)
- **Latest Release**: storage-mcp-v0.6.0 (2026-05-06) — https://github.com/googleapis/gcloud-mcp/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 962 ★ total (+1 24h / +5 7d) · 93 forks
- **When to Use**: Best for: Google Cloud teams that want an MCP client to inspect telemetry or assist with ad hoc gcloud tasks under a tightly scoped identity. Skip if: You need offline cloud access, an officially supported Google product, or a reviewed production procedure with fixed commands and parameters; use direct scripts or an existing runbook for that last case.

## Overview
```text
### Architecture & Core Mechanics
This TypeScript repository collects separate MCP server packages under `packages/`. In the documented local setup, the AI client launches a selected npm package via `npx` and communicates over stdio. The gcloud package exposes `run_gcloud_command`, which delegates to the installed gcloud CLI. Cloud access is governed by the active CLI identity rather than by a separate MCP permission model.

The observability package exposes named log and metric operations instead of a general command tool. The repository also ships Storage releases separately, and the root manifest lists `@google-cloud/storage`. For operators, package selection determines which tools the assistant sees; the credentials and IAM roles used by those tools determine what Google Cloud permits.

### Key Capabilities & Differentiators
The general gcloud tool lets an assistant translate requests into CLI operations and chain calls across a workflow. It is not an unrestricted command runner: the default deny list is intended to block selected commands that accept arbitrary input or start interactive sessions. Actual resource access still depends on the active identity's IAM permissions.

The observability server offers a narrower interface: it lists log entries and names, log buckets and views, sinks and scopes, metric descriptors, and time series. That is enough to inspect what telemetry is available and investigate a service issue without giving the assistant a broad CLI tool. Storage tool names and classifications should be checked against the exact version before wiring them into persistent workflows.

### Trade-offs & Limitations
Compared with direct gcloud scripts, the MCP bridge lets assistants choose flags and sequence calls without a predefined runbook for every task. The trade-off is predictability: keep reviewed scripts for routine production changes that need explicit, repeatable command sequences. For log and metric investigations, the dedicated observability server exposes fewer operations and makes the assistant's intended action easier to inspect.

The gcloud deny list is a guardrail, not a replacement for IAM or approval of sensitive changes. Use least-privilege roles, for example through service-account impersonation, and require separate approval for destructive operations where the client supports it. Apache-2.0 permits reuse under its terms, but the project is in preview, may introduce breaking changes, and is not an officially supported Google product.

### Hardware & Deployment Guide
Use Node.js 20 or newer and install the gcloud CLI for the gcloud package. For Gemini CLI or Gemini Code Assist, run `npx @google-cloud/gcloud-mcp init --agent=gemini-cli` from the home directory and verify registration with `gemini mcp list`. Other clients can launch `npx -y @google-cloud/gcloud-mcp` via stdio; VS Code workspace configuration uses the `servers` map in `.vscode/mcp.json`.

The MCP process runs locally, but Google Cloud operations still need valid credentials and network access. Test the effective identity and keep production roles narrow. Pin package versions for managed rollouts: Storage v0.5.1 reclassified `delete_object` from safe to destructive, while v0.6.0, released on May 6, 2026, removed `download_object_safe` as a breaking change. Check existing tool allowlists and workflows before upgrading.
```

## Key Capabilities
```text
- Transport: MCP clients launch the npm package as a local stdio subprocess.
- CLI execution: `run_gcloud_command` delegates to the installed gcloud CLI and denies selected commands by default.
- Observability: Named tools list log entries, buckets, views, sinks, and scopes, as well as metric descriptors and time series.
- Authorization: The gcloud server runs with the active CLI identity; service-account impersonation supports a narrower IAM role.
- Client integration: Gemini supports `init --agent=gemini-cli`; VS Code uses a `servers` map in `.vscode/mcp.json`.
- Storage compatibility: v0.5.1 moved `delete_object` to destructive tools; v0.6.0 removed `download_object_safe`.
```

## Quick Start / Clone
```bash
npx @google-cloud/[PACKAGE_NAME] init --agent=gemini-cli
```
