> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini Enterprise

> Gemini Enterprise is Google's enterprise AI assistant, available as part of Google Workspace. This page explains how to connect CData Connect AI to Gemini Enterprise as a custom MCP server data store, enabling natural language queries over live data.

## Prerequisites

Before you can configure and use Gemini Enterprise with Connect AI, you must first do the following:

* Connect a data source to your Connect AI account. See [Sources](/en/Sources) for more information.
* Have a [Gemini Enterprise](https://cloud.google.com/gemini-enterprise) account (trial available).
* Have a Google Cloud project with billing enabled.
* In your Google Cloud account:
  * Override the organization policy for Custom MCP data stores. [Learn more](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/custom-mcp-server/override-constraint-for-custom-mcp-data-stores).
  * Grant the **Discovery Engine Editor** role to the administrator. [Learn more](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/custom-mcp-server/set-up-custom-mcp-server#before_you_begin).

## Create an OAuth App in CData Connect AI

Gemini Enterprise uses OAuth 2.0 to authenticate users against the CData Connect AI MCP Server. This requires a user-based OAuth App in your CData Connect AI account.

<Steps>
  <Step>
    Click the gear icon in the top-right corner of Connect AI to open **Settings**.
  </Step>

  <Step>
    Navigate to **OAuth Apps** and click **+ Create App**. The **Create OAuth App** dialog appears.
  </Step>

  <Step>
    Enter the following settings:

    * **Name**–enter a descriptive name (for example, *GeminiEnterpriseOAuth*).
    * **Application Type**–select **Web Application**.
    * **Callback URL**–enter *[https://vertexaisearch.cloud.google.com/oauth-redirect](https://vertexaisearch.cloud.google.com/oauth-redirect)*.

    <Frame>
      <img src="https://mintcdn.com/cdata/z1KLYCWnZisxWQoa/en/images/gemini_enterprise_oauth_app.png?fit=max&auto=format&n=z1KLYCWnZisxWQoa&q=85&s=4dae4ea51c8010c288477810ecabffef" alt="Creating an OAuth App in CData Connect AI" width="801" height="695" data-path="en/images/gemini_enterprise_oauth_app.png" />
    </Frame>
  </Step>

  <Step>
    Click **Confirm**. CData Connect AI generates a **Client ID** and **Client Secret**.
  </Step>

  <Step>
    Copy both the **Client ID** and **Client Secret**. You will need them in the next section.

    <Frame>
      <img src="https://mintcdn.com/cdata/z1KLYCWnZisxWQoa/en/images/gemini_enterprise_oauth_credentials.png?fit=max&auto=format&n=z1KLYCWnZisxWQoa&q=85&s=a377fbcb3375b9d0a6505478a5696052" alt="Client ID and Client Secret" width="1455" height="522" data-path="en/images/gemini_enterprise_oauth_credentials.png" />
    </Frame>
  </Step>
</Steps>

## Create the Custom MCP Server Data Store

<Steps>
  <Step>
    Open **Gemini Enterprise** and navigate to the **Data stores** screen.
  </Step>

  <Step>
    Click **+ Create data store**.
  </Step>

  <Step>
    On the **Select a data source** page, search for *Custom MCP Server* and click **Add MCP server**.
  </Step>

  <Step>
    In the **Authentication settings** section, enter the following:

    * **MCP Server URL**–enter *[https://mcp.cloud.cdata.com/mcp](https://mcp.cloud.cdata.com/mcp)*.
    * **Authorization URL**–enter *[https://cloud-login.cdata.com/authorize](https://cloud-login.cdata.com/authorize)*.
    * **Token URL**–enter *[https://cloud-login.cdata.com/oauth/token](https://cloud-login.cdata.com/oauth/token)*.
    * **Client ID** and **Client Secret**–from the OAuth App created above.

    <Frame>
      <img src="https://mintcdn.com/cdata/4FwGiNFIages-Ark/en/images/gemini_enterprise_datastore_auth.png?fit=max&auto=format&n=4FwGiNFIages-Ark&q=85&s=d90e377953390dc6fe849269195711b2" alt="Entering MCP server configuration details" width="3024" height="1724" data-path="en/images/gemini_enterprise_datastore_auth.png" />
    </Frame>
  </Step>

  <Step>
    Click **Login** and complete the sign-in.
  </Step>

  <Step>
    Click **Continue**. The **Advanced options** section opens.
  </Step>

  <Step>
    In the **MCP Server Description** field, enter a description that helps Gemini Enterprise understand what the server does and when to use it.
  </Step>

  <Step>
    Click **Continue**.
  </Step>

  <Step>
    In the **Configure your data connector** section, select the **Location of your data connector** from the **Multi-region** field list.
  </Step>

  <Step>
    In **Your data connector name**, enter a name for your data store.
  </Step>

  <Step>
    Click **Create**. Gemini Enterprise creates your data store.
  </Step>
</Steps>

## Enable Actions

After creating the data store, you must enable at least one action before it can be used in Gemini Enterprise.

<Note>
  By default, no tools or actions from your custom MCP server are enabled after the data store is created.
</Note>

<Steps>
  <Step>
    Go to your custom MCP server data store.
  </Step>

  <Step>
    Open the **Actions** tab and click **Reload custom actions** to authenticate and retrieve available tools.

    <Note>
      This performs a `tools/list` call on the MCP server to retrieve available tools, which are then displayed on the screen.
    </Note>
  </Step>

  <Step>
    Select the actions to enable.
  </Step>

  <Step>
    Click **Enable actions**.

    <Frame>
      <img src="https://mintcdn.com/cdata/4FwGiNFIages-Ark/en/images/gemini_enterprise_actions.png?fit=max&auto=format&n=4FwGiNFIages-Ark&q=85&s=5f108b285162d4b95d968ad23cf0184d" alt="Enabling actions in the data store" width="3024" height="1724" data-path="en/images/gemini_enterprise_actions.png" />
    </Frame>
  </Step>
</Steps>

## Connect the Data Store to a Gemini Enterprise App

<Steps>
  <Step>
    In the Google Cloud console, go to the [Gemini Enterprise page](https://console.cloud.google.com/gemini-enterprise/start).
  </Step>

  <Step>
    From the navigation menu, click **Apps**.
  </Step>

  <Step>
    Select the Gemini Enterprise app where you want to connect your data store.
  </Step>

  <Step>
    From the navigation menu of the app, click **Connected data stores**.
  </Step>

  <Step>
    Click **Add existing data stores** and select your data store.
  </Step>

  <Step>
    Click **Connect**.

    <Frame>
      <img src="https://mintcdn.com/cdata/4FwGiNFIages-Ark/en/images/gemini_enterprise_connect_datastore.png?fit=max&auto=format&n=4FwGiNFIages-Ark&q=85&s=511b8813ebc4dcccb761e362f511e761" alt="Connecting the data store to a Gemini Enterprise app" width="3024" height="1724" data-path="en/images/gemini_enterprise_connect_datastore.png" />
    </Frame>
  </Step>
</Steps>

## Query Live Data with Natural Language

With the data store connected, you can query live data using natural language from the Gemini Enterprise web application. Each user authorizes CData Connect AI on first use.

<Steps>
  <Step>
    Open **Gemini Enterprise** and click the connections icon. Click **Authorize** next to **CData Connect AI** and complete the sign-in.

    <Frame>
      <img src="https://mintcdn.com/cdata/4FwGiNFIages-Ark/en/images/gemini_enterprise_authorize.png?fit=max&auto=format&n=4FwGiNFIages-Ark&q=85&s=afa5b89ac0ce31f15ee0fa3cbd90dc0b" alt="Authorizing CData Connect AI in Gemini Enterprise" width="1622" height="1275" data-path="en/images/gemini_enterprise_authorize.png" />
    </Frame>
  </Step>

  <Step>
    Ask natural language questions about your data, such as:

    * "Show me all records from the last 30 days"
    * "What are the top accounts by revenue?"
    * "List all active opportunities and their current status"
    * "Summarize activity for this quarter"
  </Step>

  <Step>
    The agent automatically discovers available connections in Connect AI, generates SQL, and returns results—all without requiring you to write queries or understand the underlying data structure.
  </Step>
</Steps>
