googleapis/gcloud-mcp
A local MCP bridge for gcloud CLI operations and Google Cloud observability
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
run_gcloud_command delegates to the installed gcloud CLI and denies selected commands by default.init --agent=gemini-cli; VS Code uses a servers map in .vscode/mcp.json.delete_object to destructive tools; v0.6.0 removed download_object_safe.Google Cloud teams that want an MCP client to inspect telemetry or assist with ad hoc gcloud tasks under a tightly scoped identity.
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.
Quick Start & Installation
npx @google-cloud/[PACKAGE_NAME] init --agent=gemini-cli
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| gcloud-mcp ★ | 962 | +5 | TypeScript | Apache-2.0 | A local MCP bridge for gcloud CLI operations and Google Cloud observability |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
| chrome-devtools-mcp | 60.4k | +801 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| OpenSpec | 76.4k | +495 | TypeScript | MIT | A CLI and agent-skill layer for keeping AI coding aligned with versioned specs |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/googleapis/gcloud-mcp.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about gcloud-mcp
How does the MCP client connect, and where do cloud permissions come from?
Does the server need a GPU, and what determines local resource usage?
Can a company run or redistribute this software?
When should I use direct gcloud scripts or the observability server instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy