Gemini Cloud Assist MCP server

Gemini Cloud Assist MCP server

Connects MCP clients to Gemini Cloud Assist APIs, enabling users to understand, manage, and troubleshoot their Google Cloud environment using natural language.

Category
访问服务器

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.0 or later. If you wish to continue using the legacy local server during the transition, please pin your configuration to older versions.

npm @google-cloud/gemini-cloud-assist-mcp package

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

  1. In your Google Cloud project, create an OAuth 2.0 client ID for a desktop app.
  2. Configure URI://anysphere.cursor-mcp/oauth/callback as the redirect URL.
  3. 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"]
      }
    }
  }
}

Claude

Follow the configuration instructions for your specific application:

MCP Tools

Gemini Cloud Assist 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.

Application Design Center MCP tools

Application Design Center MCP tools, often orchestrated by GCA’s design_infra tool, manages the infrastructure application lifecycle using Application Design Center, including template management, security compliance and remediation and deployment.

Tool Description
setup_adc Initializes the Application Design Center environment. This is a one-time setup step that must be performed before other ADC tools can be used.
manage_application Manages the deployment lifecycle of an application. Use this tool to deploy a verified design using the Application Design Center or retrieve the status and details of an existing deployment. This is the final step that turns your design into a deployed infrastructure on Google Cloud.
manage_application_template Manages the Infrastructure as Code (IaC) content of your infrastructure design. Use this to save the design as an Application Design Center template, export the design as Terraform files, or update the design (e.g. component, parameters configurations etc).
assess_best_practices Performs a comprehensive security and configuration audit on your application design before deployment. It validates the design against Security Command Center frameworks and relevant controls, returning a report with actionable findings for remediation.
list_application_templates Lists all available application designs.

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

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选