io.github.GoogleCloudPlatform/gemini-cloud-assist-mcp
DevOpsby googlecloudplatform
用于理解、管理并排查 GCP 环境问题的 MCP Server,帮助模型更高效地诊断云资源、配置与运行状态。
什么是 io.github.GoogleCloudPlatform/gemini-cloud-assist-mcp?
用于理解、管理并排查 GCP 环境问题的 MCP Server,帮助模型更高效地诊断云资源、配置与运行状态。
README
Gemini Cloud Assist MCP server
[!IMPORTANT] Private Preview Notice The Gemini Cloud Assist MCP server APIs are currently in Private Preview and are behind an allowlist. Please contact your Google Cloud account team to request access.
[!WARNING] Deprecation Notice & Migration to Remote MCP Server
The Gemini Cloud Assist MCP server has migrated from a local Node.js architecture to a Remote MCP Server architecture. The older local Node.js server will lose support in the coming months.
To use the new Remote MCP Servers, please use version
v0.8.0or later. If you wish to continue using the legacy local server during the transition, please pin your configuration to older versions.
This server connects Model Context Protocol (MCP) clients such as the Gemini CLI to the Gemini Cloud Assist APIs. It allows you to use natural language to understand, manage, and troubleshoot your Google Cloud environment directly from the local command line.
[!NOTE] The Google Cloud Platform Terms of Service (available at https://cloud.google.com/terms/) and the Data Processing and Security Terms (available at https://cloud.google.com/terms/data-processing-terms) do not apply to any component of the Gemini Cloud Assist MCP Server software.
To learn more about Gemini Cloud Assist, see the Gemini Cloud Assist overview in the Google Cloud documentation.
✨ Key features
- Design infrastructure: Create and architect infrastructure configurations for Google Cloud.
- Troubleshoot issues: Run deep investigations to find the root cause of complex issues in your Google Cloud environment.
- Manage resources: Create, update, and delete Google Cloud resources directly from your chat workflow (requires Agent Actions).
- Optimize costs: Analyze your spend, track costs, and identify opportunities for efficiency such as idle resources.
- Get general assistance: Ask questions and get guidance on Google Cloud best practices, architectures, and operations.
Quick start
Before you begin, ensure you have the following set up:
- Google Cloud SDK installed and configured.
- A Google Cloud project.
- The following IAM roles on your user account:
roles/serviceusage.serviceUsageAdmin: Required to enable the Cloud Assist APIs.roles/geminicloudassist.user: Required to make requests to the Cloud Assist APIs.
Step 1: Authenticate to Google Cloud
The Gemini Cloud Assist MCP server uses local Application Default Credentials (ADC) to securely authenticate to Google Cloud. To set up ADC, run the following gcloud commands:
# Authenticate your user account to the gcloud CLI
gcloud auth login
# Set up Application Default Credentials for the server.
gcloud auth application-default login
Configure your MCP client
The client-agent configuration depends on which agent you are using.
Gemini CLI
Install the MCP server as a Gemini CLI extension:
gemini extensions install https://github.com/GoogleCloudPlatform/gemini-cloud-assist-mcp
Alternatively, you can manually add the configuration to your ~/.gemini/settings.json:
"mcpServers": {
"gemini_cloud_assist": {
"httpUrl": "https://geminicloudassist.googleapis.com/mcp",
"authProviderType": "google_credentials",
"oauth": {
"scopes": ["https://www.googleapis.com/auth/cloud-platform"]
},
"timeout": 600000
},
"application_design_center": {
"httpUrl": "https://designcenter.googleapis.com/mcp",
"authProviderType": "google_credentials",
"oauth": {
"scopes": ["https://www.googleapis.com/auth/cloud-platform"]
},
"timeout": 600000
}
}
Antigravity
Add the following to your mcp_config.json:
"mcpServers": {
"gemini_cloud_assist": {
"serverUrl": "https://geminicloudassist.googleapis.com/mcp",
"headers": {},
"authProviderType": "google_credentials"
},
"application_design_center": {
"serverUrl": "https://designcenter.googleapis.com/mcp",
"headers": {},
"authProviderType": "google_credentials"
}
}
Cursor
- In your Google Cloud project, create an OAuth 2.0 client ID for a desktop app.
- Configure
URI://anysphere.cursor-mcp/oauth/callbackas the redirect URL. - Add or merge the following configuration block:
{
"mcpServers": {
"gemini_cloud_assist": {
"url": "https://geminicloudassist.googleapis.com/mcp",
"auth": {
"CLIENT_ID": "${env:OAUTH_CLIENT_ID}",
"CLIENT_SECRET": "${env:OAUTH_CLIENT_SECRET}",
"scopes": ["https://www.googleapis.com/auth/cloud-platform"]
}
},
"application_design_center": {
"url": "https://designcenter.googleapis.com/mcp",
"auth": {
"CLIENT_ID": "${env:OAUTH_CLIENT_ID}",
"CLIENT_SECRET": "${env:OAUTH_CLIENT_SECRET}",
"scopes": ["https://www.googleapis.com/auth/cloud-platform"]
}
}
}
}
MCP Tools
Gemini Cloud Assist is an agent accessible through a set of MCP tools. The agent invoked by MCP tool calls makes its own tool calls internally to Google Cloud. The following MCP tools are published for agents to consume:
| Tool | Description |
|---|---|
ask_cloud_assist | The primary interface for Google Cloud assistance and for the Gemini Cloud Assist agent. All functionality is accessible through this tool. |
design_infra | Supports workflows for designing and architecting infrastructure on Google Cloud. |
investigate_issue | Supports workflows for troubleshooting in Google Cloud. Can do quick troubleshooting or deeper troubleshooting through an Investigation resource. |
invoke_operation | Supports workflows for creating, updating, and deleting resources in Google Cloud. Only functional when Agent Actions are enabled. |
optimize_costs | Supports workflows for analyzing, tracking, and optimizing Google Cloud costs. Provides breakdowns of spend and identifies opportunities for cost efficiency. |
Note: These tools should not be treated as stable APIs. Parameters might be renamed or modified to account for the evolving capabilities of Gemini Cloud Assist.
Agent Skills
The Gemini Cloud Assist MCP tools leverage SKILL.md files to instruct your agent on how to properly use the tools. The skills help to guide your agent on chaining together multiple tools into a workstream, passing relevant local information to Gemini Cloud Assist, and enabling explicit invocation.
| Skill | Description |
|---|---|
designing-and-deploying-infrastructure | Guides the agent on how to design, assess, deploy, and troubleshoot cloud infrastructure using the Application Design Center (ADC) and Gemini Cloud Assist tools. |
operating-google-cloud | Provides instructions for managing Google Cloud Platform (GCP) resources and Kubernetes using specialized MCP tools. |
Contributing
- If you encounter a bug, please file an issue on our GitHub Issues page.
- Before sending a pull request, please review our Contributing Guide.
License
This project is licensed under the Apache 2.0 License and provided as-is, without warranty or representation for any use or purpose. For details, see the LICENSE file.
常见问题
io.github.GoogleCloudPlatform/gemini-cloud-assist-mcp 是什么?
用于理解、管理并排查 GCP 环境问题的 MCP Server,帮助模型更高效地诊断云资源、配置与运行状态。
相关 Skills
环境密钥管理
by alirezarezvani
统一梳理dev/staging/prod的.env和密钥流程,自动生成.env.example、校验必填变量、扫描Git历史泄漏,并联动Vault、AWS SSM、1Password、Doppler完成轮换。
✎ 统一管理环境变量、密钥与配置,减少泄露和部署混乱,安全治理与团队协作一起做好,DevOps 场景很省心。
可观测性设计
by alirezarezvani
面向生产系统规划可落地的可观测性体系,串起指标、日志、链路追踪与 SLI/SLO、错误预算、告警和仪表盘设计,适合搭建监控平台与优化故障响应。
✎ 把监控、日志、链路追踪串起来,帮助团队从设计阶段构建可观测性,排障更快、系统演进更稳。
更新日志
by alirezarezvani
基于 Conventional Commits 自动解析提交记录、判断语义化版本升级并生成规范 changelog,适合在 CI、发版前检查提交格式并批量输出可审计发布说明。
✎ 自动生成和管理更新日志与发布说明,帮团队把版本变更说清楚;聚焦版本化与流程自动化,省时又更规范。
相关 MCP Server
kubefwd
编辑精选by txn2
kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。
✎ 微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。
Cloudflare
编辑精选by Cloudflare
Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。
✎ 这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。
Terraform
编辑精选by hashicorp
Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。
✎ 如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。