Integrate Gemini Cloud Assist with third-party tools using MCP

Model Context Protocol (MCP) lets you integrate Gemini Cloud Assist and Application Design Center agentic capabilities directly into third-party tools, such as Antigravity, Gemini CLI, and Cursor. This integration brings cloud operations expertise and architecture assistance into your existing development workflows. For more information, see Configure MCP for your AI application.

Gemini Cloud Assist MCP tools

Gemini Cloud Assist is an agent that is accessible through a set of MCP tools using the agents-as-tools pattern. Unlike tools that fetch data or do procedural processing, the Gemini Cloud Assist tools expose agentic functionality of all of Gemini Cloud Assist or of specific workflows. 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:

  • ask_cloud_assist: This is the primary interface for Google Cloud assistance and for the Gemini Cloud Assist agent. All functionality of Gemini Cloud Assist is accessible through this tool and it encompasses the functionality of the other MCP tools.
  • design_infra: This supports workflows for designing and architecting infrastructure on Google Cloud. It works with App Design Center MCP server tools to manage your infrastructure design lifecycle—for example, run and remediate security findings, or deploy and remediate issues.
  • investigate_issue: This supports workflows for troubleshooting in Google Cloud. It can do quick troubleshooting or deeper troubleshooting through an Investigation resource.
  • invoke_operation: This supports workflows for creating, updating, and deleting resources in Google Cloud. This tool is only functional when Agent Actions are enabled. Write operations in Gemini Cloud Assist can only be executed through the invocation of this tool.
  • optimize_costs: This supports workflows for analyzing, tracking, and optimizing Google Cloud costs. It provides detailed breakdowns of spending and identifies opportunities for cost efficiency by finding idle or underutilized resources.

App Design Center MCP tools

These tools, often orchestrated by Gemini Cloud Assist's design_infra tool, manages infrastructure application lifecycles using App Design Center, including template management, security compliance and remediation, and deployment. The tools are:

  • setup_adc: Initializes the App Design Center environment. This is a one-time setup step that must be performed before other App Design Center tools can be used.
  • manage_application: Manages the deployment lifecycle of an application. Use this tool to deploy a verified design using the App 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 App Design Center template, export the design as Terraform files, or update the design. For example, you can use this tool to update the design by modifying component settings and parameter configurations.
  • 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.

These MCP tools shouldn't be treated as stable APIs or configured through procedural API clients. Tools from this list or their parameters might be renamed, re-defined, removed, or added over time to account for the evolving capabilities of Gemini Cloud Assist. The capabilities of Gemini Cloud Assist will remain stable so that client agents are able to consistently execute the same tasks, but the way in which agents interact with and invoke Gemini Cloud Assist through these tools will change over time.

Before you begin

  1. Grant access: To use MCP, you need to be granted an Identity and Access Management role that contains the mcp.googleapis.com/tools.call permission, such as one of the following Gemini Cloud Assist roles:

    • roles/geminicloudassist.user
    • roles/geminicloudassist.editor
    • roles/geminicloudassist.admin
  2. If you haven't already done so, install the gcloud CLI and its beta components.

  3. Enable the MCP service in your project with the following command:

    gcloud beta services mcp enable geminicloudassist.googleapis.com \
        --project=PROJECT_ID
    

    Replace PROJECT_ID with your Google Cloud project ID.

  4. Authenticate using Application Default Credentials by running the following command:

    gcloud auth application-default login
    

Configure MCP for your client

The client-agent configuration depends on which agent you are using. The following sections provide instructions to configure MCP for different clients.

To enable the full design-to-deploy workflow, you must configure your client to connect to both the Gemini Cloud Assist and App Design Center MCP servers and include the relevant SKILL.md file. The following snippets show the combined configuration.

Antigravity

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Antigravity, follow the instructions in Antigravity Editor: MCP Integration or complete the following steps:

  1. Install the extension.

    In Antigravity, open the Extensions marketplace. Search for the Gemini Cloud Assist extension, click Install, and then click Refresh.

  2. Configure the MCP servers manually.

    Open the Manage MCP Servers pane and click View raw config to edit the mcp_config.json file. Add or merge the following configuration block. This setup uses your Application Default Credentials for authentication.

    {
      "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"
        }
      }
    }
            
  3. Verify your setup.

    After you modify your mcp_config.json and SKILL.md files, restart Antigravity. In the Agent pane, run the following slash commands to verify the connection:

    • /skills list: verifies that your local skills have been discovered.
    • /mcp list: verifies that the Gemini Cloud Assist and App Design Center MCP servers are connected.

ChatGPT

You must have a ChatGPT Business subscription to use Google and Google Cloud MCP servers with ChatGPT.

To add the Gemini Cloud Assist and App Design Center remote MCP servers to ChatGPT, create an OAuth 2.0 client ID and client secret, and then add the MCP servers as plugins in ChatGPT:

  1. Create an OAuth 2.0 client ID and client secret:

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized JavaScript origins section, click + Add URI, and then enter https://chatgpt.com in the URIs field.

    5. In the Authorized redirect URIs section, click + Add URI, and then enter https://chatgpt.com/connector_platform_oauth_redirect in the URIs field.

    6. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    7. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  2. Sign in to ChatGPT with developer mode turned on.

  3. Follow the instructions in Build a plugin to add a custom connector for each MCP server:

    • For Gemini Cloud Assist, set the server URL to https://geminicloudassist.googleapis.com/mcp.
    • For App Design Center, set the server URL to https://designcenter.googleapis.com/mcp.
  4. Under OAuth or Advanced settings, enter your OAuth client ID and client secret.

  5. Complete the sign-in prompt to enable the MCP servers in chat.

Claude.ai

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Claude.ai, configure custom connectors with an OAuth 2.0 client ID and client secret:

  1. Create an OAuth 2.0 client ID and client secret:

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized JavaScript origins section, click + Add URI, and then enter https://claude.ai in the URIs field.

    5. In the Authorized redirect URIs section, click + Add URI, and then enter https://claude.ai/api/mcp/auth_callback in the URIs field.

    6. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    7. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  2. Follow the instructions to create a custom connector for each MCP server:

    • For Gemini Cloud Assist, set the server URL to https://geminicloudassist.googleapis.com/mcp.
    • For App Design Center, set the server URL to https://designcenter.googleapis.com/mcp.
  3. In the Advanced settings menu, enter your OAuth client ID and client secret.

  4. Complete the sign-in prompt to enable the MCP servers in chat.

Claude Code

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Claude Code, configure custom connectors with an OAuth 2.0 client ID and client secret:

  1. Install Claude Code.

  2. Create an OAuth 2.0 client ID and client secret:

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized redirect URIs section, click + Add URI, and then enter https://claude.ai/api/mcp/auth_callback in the URIs field.

    5. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    6. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  3. Follow the instructions to create a custom connector for each MCP server:

    • For Gemini Cloud Assist, set the server URL to https://geminicloudassist.googleapis.com/mcp.
    • For App Design Center, set the server URL to https://designcenter.googleapis.com/mcp.
  4. In the Advanced settings menu, enter your OAuth client ID and client secret.

  5. Complete the sign-in prompt to enable the MCP servers in chat.

Claude Desktop

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Claude Desktop, configure custom connectors with an OAuth 2.0 client ID and client secret:

  1. Install Claude Desktop.

  2. Create an OAuth 2.0 client ID and client secret:

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized redirect URIs section, click + Add URI, and then enter https://claude.ai/api/mcp/auth_callback in the URIs field.

    5. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    6. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  3. Follow the instructions to create a custom connector for each MCP server:

    • For Gemini Cloud Assist, set the server URL to https://geminicloudassist.googleapis.com/mcp.
    • For App Design Center, set the server URL to https://designcenter.googleapis.com/mcp.
  4. In the Advanced settings menu, enter your OAuth client ID and client secret.

  5. Complete the sign-in prompt to enable the MCP servers in chat.

Codex

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Codex Enterprise, complete the following steps:

  1. In the Codex Enterprise UI, open Settings, select MCP Servers, and then click View raw config to open the mcp_config.json editor.

  2. Add or merge the following configuration block into the mcp_config.json file. This setup uses your Application Default Credentials for authentication.

    {
      "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

To add the Gemini Cloud Assist and App Design Center remote MCP servers to Cursor, create an OAuth 2.0 client ID and client secret, and then configure the MCP servers with static OAuth. Cursor uses different redirect URIs depending on whether you access Cursor through the web or a desktop app:

  1. Create an OAuth 2.0 client ID and client secret:

    Web or Cursor agents

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized redirect URIs section, click + Add URI, and then enter https://www.cursor.com/agents/mcp/oauth/callback in the URIs field.

    5. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    6. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

    Desktop

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized redirect URIs section, click + Add URI, and then enter http://localhost:8787/callback in the URIs field.

    5. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    6. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  2. Follow the instructions to configure the MCP server with static OAuth, and add or merge the following configuration block into your Cursor MCP configuration:

    {
      "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"]
          }
        }
      }
    }
            
  3. Set the OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET environment variables in your environment.

  4. Use the MCP server in Chat.

Gemini CLI

Configure using an extension

Install the MCP server as a Gemini CLI extension using the following command:

gemini extensions install https://github.com/GoogleCloudPlatform/gemini-cloud-assist-mcp
          

Configure manually

  1. Configure the MCP server settings.

    Open your Gemini CLI user-scope settings file at ~/.gemini/settings.json or your workspace-scope settings at .gemini/settings.json. If the file doesn't exist, create it. Add or merge the following configuration block under the mcpServers key. Ensure that the file uses valid JSON format. This configuration automatically uses your Application Default Credentials.

    {
      "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
        }
      }
    }
                  
  2. Create and populate your skill files.

    Create a SKILL.md file in one of the following directories. Copy and paste the Markdown content for your chosen skill from the skill reference section of this document into the file.

    • Workspace scope: .gemini/skills/SKILL_NAME/
    • User scope: ~/.gemini/skills/SKILL_NAME/

    Replace SKILL_NAME with the directory name for your skill.

    The following is an example directory structure:

    .gemini/
    └── skills/
        ├── design-and-deploy/
        │   └── SKILL.md
        └── google-gemini-cloud-assist/
            └── SKILL.md
                  
  3. Verify your skills.

    After you modify your settings.json and SKILL.md files, restart Gemini CLI, and then run the following commands to verify your setup:

    • /skills list: verifies that your local skills have been discovered.
    • /mcp list: verifies that the Gemini Cloud Assist and App Design Center MCP servers are connected.

Gemini Enterprise

To register the Gemini Cloud Assist and App Design Center remote MCP servers in Gemini Enterprise, an administrator must complete the following steps:

  1. Create an OAuth 2.0 client ID and client secret with the Gemini Enterprise redirect URI:

    1. In the Google Cloud console, go to Google Auth Platform > Clients > Create client.

      Go to Create client

      You are prompted to create a project if you don't have one selected.

    2. In the Application type list, select Web application.

    3. In the Name field, enter a name for your application.

    4. In the Authorized redirect URIs section, click + Add URI, and then enter https://vertexaisearch.cloud.google.com/oauth-redirect in the URIs field.

    5. Click Create. The client is created.

      The OAuth 2.0 client created dialog opens.

    6. In the Client secrets section, copy the Client secret and save it in a secure place. You can only copy it once. If you lose it, delete the secret and create a new one.

  2. In the Google Cloud console, go to Gemini Enterprise > Data stores, and then click Create data store. For more information, see Set up your custom MCP server datastore.

  3. Select Custom MCP Server as the data source.

  4. Configure a custom MCP server datastore for each endpoint:

    • For Gemini Cloud Assist, enter https://geminicloudassist.googleapis.com/mcp.
    • For App Design Center, enter https://designcenter.googleapis.com/mcp.
  5. Enter the OAuth Client ID and Client secret, and then save the datastore. The tools become available to Gemini Enterprise agents.

Gemini Cloud Assist skills

The Gemini Cloud Assist and App Design Center MCP tools use agent skills to instruct your agent. The skill guides your agent to perform the following tasks:

  • Chain together multiple tools into a workstream.
  • Process relevant local information, such as Terraform deployment code, to reason about your local context.
  • Respond to explicit invocations when you reference the skill directly.

When using interactive agents like Antigravity or Gemini CLI, you can integrate Gemini Cloud Assist MCP tools with other agents and workflows. Because these tools provide broad capabilities that might overlap with your existing specialized tools, use the following strategies to optimize for your specific environment and use case:

  1. Customize the skill definition: Update the SKILL.md file to specify the intents and use cases for which you want to invoke Gemini Cloud Assist. This ensures the agent is only triggered for tasks where its broad cloud expertise is required.
  2. Invoke skills explicitly: Many interactive agents allow you to control when a skill is triggered. If your agent supports it, you can configure the skill to require manual invocation using slash commands (/) or at-mentions (@). This approach lets you precisely choose when to use Gemini Cloud Assist versus another specialized tool.

Gemini Cloud Assist skill reference

We recommend the following SKILL.md file on any agents that are configured with Gemini Cloud Assist MCP tools. This file guides your agent on how to use the tools appropriately.

What's next