Skip to main content

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 for more information.
  • Have a 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.
    • Grant the Discovery Engine Editor role to the administrator. Learn more.

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.
1
Click the gear icon in the top-right corner of Connect AI to open Settings.
2
Navigate to OAuth Apps and click + Create App. The Create OAuth App dialog appears.
3
Enter the following settings:
Creating an OAuth App in CData Connect AI
4
Click Confirm. CData Connect AI generates a Client ID and Client Secret.
5
Copy both the Client ID and Client Secret. You will need them in the next section.
Client ID and Client Secret

Create the Custom MCP Server Data Store

1
Open Gemini Enterprise and navigate to the Data stores screen.
2
Click + Create data store.
3
On the Select a data source page, search for Custom MCP Server and click Add MCP server.
4
In the Authentication settings section, enter the following:
Entering MCP server configuration details
5
Click Login and complete the sign-in.
6
Click Continue. The Advanced options section opens.
7
In the MCP Server Description field, enter a description that helps Gemini Enterprise understand what the server does and when to use it.
8
Click Continue.
9
In the Configure your data connector section, select the Location of your data connector from the Multi-region field list.
10
In Your data connector name, enter a name for your data store.
11
Click Create. Gemini Enterprise creates your data store.

Enable Actions

After creating the data store, you must enable at least one action before it can be used in Gemini Enterprise.
By default, no tools or actions from your custom MCP server are enabled after the data store is created.
1
Go to your custom MCP server data store.
2
Open the Actions tab and click Reload custom actions to authenticate and retrieve available tools.
This performs a tools/list call on the MCP server to retrieve available tools, which are then displayed on the screen.
3
Select the actions to enable.
4
Click Enable actions.
Enabling actions in the data store

Connect the Data Store to a Gemini Enterprise App

1
In the Google Cloud console, go to the Gemini Enterprise page.
2
From the navigation menu, click Apps.
3
Select the Gemini Enterprise app where you want to connect your data store.
4
From the navigation menu of the app, click Connected data stores.
5
Click Add existing data stores and select your data store.
6
Click Connect.
Connecting the data store to a Gemini Enterprise app

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.
1
Open Gemini Enterprise and click the connections icon. Click Authorize next to CData Connect AI and complete the sign-in.
Authorizing CData Connect AI in Gemini Enterprise
2
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”
3
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.