Google Cloud MCP

by googleapis

Not rated
GitHub

About

Interact with Google Cloud services and manage your cloud resources.

Details

Author
googleapis
Categories
Cloud Service, Infrastructure

Setup

Install Google Cloud MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/googleapis/gcloud-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Interact with Google Cloud services and manage your cloud resources.

- Run gcloud CLI commands— Ask your AI to execute any allowedgcloudcommand viarun_gcloud_commandto manage Google Cloud resources.
- Query Cloud Observability data— Retrieve logs, metrics, traces, and alert policies using tools likelist_log_entries,list_time_series, andlist_traces.
- Manage Cloud Storage buckets and objects— List, create, delete, copy, move, upload, or download objects and buckets withstorage-mcptools.
- Inspect Storage Insights— Check insights configurations and run BigQuery queries against Storage Insights datasets withexecute_insights_query.
- Orchestrate Backup and DR operations— Create backup vaults and plans, associate resources, list backups, and trigger restores usingbackupdr-mcptools.

The gcloudModel Context Protocol (MCP)server enables AI assistants to easily interact with the Google Cloud environment using the gcloud CLI. With the gcloud MCP server you can:

- Interact with Google Cloud using natural language.Describe the outcome you want instead of memorizing complex command syntax, flags, and arguments.
- Automate and simplify complex workflows.Chain multiple cloud operations into a single, repeatable command to reduce manual effort and the chance of error.
- Lower the barrier to entry for cloud management.Empower team members who are less familiar with gcloud to perform powerful actions confidently and safely.

This repository also hosts other MCP servers in addition to the gcloud MCP server. An up to date list is below, and links to other Google Cloud MCP servers hosted outside of this repo arehere.

- Node.js: version 20 or higher
-
gcloud CLI

To integrate MCP servers with Gemini CLI or Gemini Code Assist, run the setup command below from your home directory for MCP server listed in the table. This will install the MCP server as aGemini CLI extension. for the current user, making it available for all your projects.

npx @google-cloud/[PACKAGE_NAME] init --agent=gemini-cli
npx @google-cloud/gcloud-mcp init --agent=gemini-cli

After the initialization process, you can verify that the gcloud-mcp server is configured correctly by running the following command:

gemini mcp list > ✓ gcloud: npx -y @google-cloud/gcloud-mcp (stdio) - Connected

To use MCP servers in this repo with other clients, add the following snippet to their respective JSON configuration files for each MCP server:

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

- Claude Desktop:OpenClaude > Settings > Developer > Edit Configand editclaude_desktop_config.json.
- Cline:Click the MCP Servers icon, thenConfigure MCP Serversto editcline_mcp_settings.json.
- Cursor:Edit.cursor/mcp.jsonfor a single project or~/.cursor/mcp.jsonfor all projects.
- Gemini CLI (Manual Setup):If not using extensions, edit.gemini/settings.jsonfor a single project or~/.gemini/settings.jsonfor all projects.

ForVisual Studio Codeedit the.vscode/mcp.jsonfile in your workspace for a single project or your global user settings file for all projects:

"servers": { "[SERVER_NAME]": { "command": "npx", "args": ["-y", "@google-cloud/[PACKAGE_NAME]"] } }

For example, for gcloud and observability:

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

For more information regarding installing the repository locally, please seedevelopment.md

The permissions of the gcloud MCP are directly tied to the permissions of the active gcloud account. To restrict permissions and operate with the principle of least privilege, you canauthorize as a service account using impersonationand assign the service account arole with limited permissions.

By default, the gcloud MCP prevents execution of gcloud commands that don't make sense for AI agents. This is done to restrict commands that can run arbitrary inputs and initiate interactive sessions. Seeherefor the list of denied commands.

Google Cloud offers these other servers:

- Firebase MCP
-
Google Analytics MCP
-
Google Cloud Genmedia MCP
-
Google Cloud Run MCP
-
Google Kubernetes Engine (GKE) MCP
-
Google Security Operations and Threat Intelligence MCP
-
MCP Toolbox for Databases

We welcome contributions! Whether you're fixing bugs, sharing feedback, or improving documentation, your contributions are welcome. Please read ourContributing Guideto get started.

This repository is currently in preview and may see breaking changes. This repository provides a solution, not an officially supported Google product. It is not covered underGoogle Cloud Terms of Service. It may break when the MCP specification, other SDKs, or when other solutions and products change. See also ourSecurity Policy.

Navigate your Aiven projects and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services

Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform.

Get prescriptive CDK advice, explain CDK Nag rules, check suppressions, generate Bedrock Agent schemas, and discover AWS Solutions Constructs patterns.

This AWS Labs Model Context Protocol (MCP) server for CloudTrail enables your AI agents to query AWS account activity for security investigations, compliance auditing, and operational troubleshooting.

Core AWS MCP server providing prompt understanding and server management capabilities.

Analyze CDK projects to identify AWS services used and get pricing information from AWS pricing webpages and API.

Query and analyze your Axiom logs, traces, and all other event data in natural language

Manage and interact with Microsoft Azure services.

Bastion: External Attack Surface Monitoring

Ask your AI assistant about your attack surface: run scans, catch expiring certificates and domains, triage findings, and generate reports.

Agent-ready global image CDN that AI agents can install and operate through MCP.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.