How Do I Connect Dataslayer MCP to Gemini?
Learn how to connect Dataslayer MCP to Google Gemini using Gemini Enterprise or Gemini CLI and start querying your marketing data.
Connect Dataslayer MCP to Google Gemini and start asking questions about your connected marketing data using natural language.
You can use Dataslayer with Gemini in two ways:
- Gemini Enterprise MCP through Google Cloud.
- Gemini CLI MCP from your terminal.
Both methods connect to the Dataslayer MCP server:
https://agents.dataslayer.ai/mcp
What You'll Need
Before getting started, make sure you have:
- An active Dataslayer account with MCP access.
- At least one data source connected in Dataslayer.
- Access to Gemini Enterprise or Gemini CLI.
- OAuth authentication available in your Gemini setup.
Option 1: Connect Dataslayer MCP to Gemini Enterprise
Use this option if your organization uses Gemini Enterprise through Google Cloud.
1. Open your Gemini Enterprise app
In your Gemini Enterprise app, go to:
Connected data stores → New data store → Custom MCP Server
2. Configure the Gemini MCP server
Under Authentication settings, select OAuth 2.0.
Enter:
- MCP Server URL:
https://agents.dataslayer.ai/mcp - Authorization URL: Use the value from your Dataslayer MCP OAuth setup.
- Token URL: Use the value from your Dataslayer MCP OAuth setup.
- Client ID: Your OAuth Client ID.
- Client Secret: Your OAuth Client Secret.
- Scopes: The scopes allowed by your OAuth application.
When configuring the OAuth client, use this redirect URL:
https://vertexaisearch.cloud.google.com/oauth-redirect
3. Authenticate
Click Login, sign in, and authorize the connection.
Once authentication is successful, click Continue.
4. Add an MCP description
Under Advanced options, add a short description explaining when Gemini should use Dataslayer.
For example: Access and analyze marketing data from data sources connected to Dataslayer.
Then click Continue.
5. Create the connector
Enter a name such as:
Dataslayer MCP
Then click Create.
Wait until the connector status changes from Creating to Active.
6. Enable Dataslayer actions
Gemini Enterprise displays the tools available from the Gemini MCP server as actions.
Open your Dataslayer MCP data store and go to:
Actions → Reload custom actions
Select the Dataslayer actions you want to use and click Enable actions.
Your Dataslayer connection is now ready.
Option 2: Connect Dataslayer MCP to Gemini CLI
Use this option if you work with Gemini from the terminal.
1. Add the Dataslayer MCP server
Run:
gemini mcp add dataslayer https://agents.dataslayer.ai/mcp --transport http
This adds Dataslayer as a remote Gemini MCP server.
2. Start Gemini CLI
Run:
gemini
Then check your MCP connections:
/mcp list
3. Authenticate Dataslayer
If authentication is required, run:
/mcp auth dataslayer
Complete the Dataslayer login in your browser and return to Gemini CLI.
You can now start asking Gemini questions about your connected marketing data.
What Can I Ask Gemini?
Once the Gemini MCP integration is connected, you can retrieve and analyze data from the sources available in your Dataslayer account.
For example:
-
Show me total spend, clicks, and conversions by Google Ads campaign for the last 30 days.
-
Compare Meta Ads and Google Ads by ROAS this month.
-
Which campaigns generated the highest ROAS last month?
-
Compare those campaigns with the previous month.
For better results, specify the data source, account, date range, metrics, and dimensions you want to analyze.
Troubleshooting
I can't create a Custom MCP Server in Gemini Enterprise
Check that you have access to a Gemini Enterprise app and the required Google Cloud permissions.
Your administrator may also need to allow Custom MCP data stores and the domains required by the MCP and OAuth connections.
OAuth authentication doesn't complete
Check that:
- The MCP Server URL is
https://agents.dataslayer.ai/mcp. - The redirect URL is
https://vertexaisearch.cloud.google.com/oauth-redirect. - The Authorization URL and Token URL are correct.
- The Client ID, Client Secret, and scopes are correct.
The connector stays in Creating
Refresh the data store and wait until its status changes to Active.
If it remains in Creating, review the MCP and OAuth configuration or contact your Google Cloud administrator.
Dataslayer actions don't appear
Go to:
Actions → Reload custom actions
Then select the required Dataslayer actions and click Enable actions.
Dataslayer doesn't appear in Gemini CLI
Restart Gemini CLI and run:
/mcp list
If Dataslayer is still missing, add it again:
gemini mcp add dataslayer https://agents.dataslayer.ai/mcp --transport http
Start exploring
Once the connection is active, you can start querying your marketing data directly through Gemini.
For example:
What's my total ad spend this month?
or:
Compare my Google Ads and Meta Ads spend and conversions for the last 30 days.
As always, please contact us via our live chat on our website or via email if you still have doubts or questions. We are happy to help!