gcloud MCP Server
Google Cloud MCP servers: gcloud commands, logs and metrics, Cloud Storage and Backup and DR
Install
npx @google-cloud/gcloud-mcp init --agent=gemini-cliInstalls the server as a Gemini CLI extension for the current user. Swap the package name for other servers.
This is third-party code. Review the repository files before installing.
What it does
The repository hosts four MCP servers for Google Cloud. The gcloud server runs gcloud CLI commands as the active account, with risky and interactive commands on a deny list. The observability server reads logs, metrics, traces, alert policies and error groups. The storage server manages Cloud Storage buckets and objects, and backupdr handles backup vaults, plans and restores.
Who it is for. For engineers who run projects on Google Cloud and want to manage them through an agent.
Good fit when
- You need a Google Cloud operation without recalling gcloud flags
- You need to dig through project logs, metrics or traces
- You need to tidy Cloud Storage buckets or set up backups
Not a fit when
- Your infrastructure is not on Google Cloud
- The active gcloud account has owner rights on production and no limited service account is set up
Example request
Show errors from Cloud Run logs for the last hour in project my-projectLimitations
Requires Node.js 20+, the gcloud CLI and a billed Google Cloud account. The server has the same rights as the active gcloud account, so the authors recommend impersonating a service account with a limited role. The project is in preview and is not an officially supported Google product. Google Cloud does not accept sign-ups or payments from Russia.
How to disable. Remove the server block from your MCP client config, or uninstall the extension with gemini extensions uninstall.
MCP
- Transport
- stdio
- Authentication
- OAuth
Security check
- Runs gcloud commands with your account's rights
- Can delete buckets, objects and backups
README in short
The README lists four servers published as npm packages under @google-cloud, plus a table of their tools. Gemini CLI gets an init command that installs a server as an extension; other clients get an npx JSON snippet. A permissions section explains that rights come from the gcloud account and some commands are blocked. The project is in preview and Apache 2.0 licensed.
FAQ
Can the agent delete resources?
Yes, if the gcloud account is allowed to. The storage and backupdr servers include delete tools, so a service account with a limited role is safer.
Do I need all four servers?
No, each ships as a separate npm package, connect only the ones you need.
Related
An MCP server built into the Netdata agent: metrics, logs, alerts and live process, service and container data for an AI assistant
GitHub's official MCP server: code, issues, pull requests, Actions and security alerts straight from the agent
AWS's official MCP server suite: docs, IaC, containers, serverless, databases, cost and monitoring
A GitHub Action that runs Claude Code in pull requests and issues: answers mentions, reviews and makes changes