How to Connect to Live Typeform Data from Gemini CLI (via CData Connect AI)
Gemini CLI is a command-line interface tool that provides direct access to Google's Gemini AI models for code generation, text analysis, and conversational AI capabilities. When combined with CData Connect AI Remote MCP, you can leverage Gemini CLI to interact with your Typeform data in real-time through natural language queries. This article outlines the process of connecting to Typeform using Connect AI Remote MCP and configuring Gemini CLI to interact with your Typeform data.
CData Connect AI offers a dedicated cloud-to-cloud interface for connecting to Typeform data. The CData Connect AI Remote MCP Server enables secure communication between Gemini CLI and Typeform. This allows you to ask questions and take actions on your Typeform data using natural language through Gemini CLI, all without the need for data replication to a natively supported database. With its inherent optimized data processing capabilities, CData Connect AI efficiently channels all supported SQL operations, including filters and JOINs, directly to Typeform. This leverages server-side processing to swiftly deliver the requested Typeform data.
In this article, we show how to configure Gemini CLI to conversationally explore (or Vibe Query) your data using natural language. With Connect AI you can query and interact with live Typeform data, plus hundreds of other sources.
Step 1: Configure Typeform Connectivity for Gemini CLI
Connectivity to Typeform from Gemini CLI is made possible through CData Connect AI Remote MCP. To interact with Typeform data from Gemini CLI, we start by creating and configuring a Typeform connection in CData Connect AI.
- Log into Connect AI, click Sources, and then click Add Connection
- Select "Typeform" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Typeform.
Start by setting the Profile connection property to the location of the TypeForm Profile on disk (e.g. C:\profiles\TypeForm.apip). Next, set the ProfileSettings connection property to the connection string for TypeForm (see below).
TypeForm API Profile Settings
Authentication to TypeForm uses the OAuth standard.
To authenticate to TypeForm, you must first register and configure an OAuth application with TypeForm here: https://admin.typeform.com/account#/section/tokens. Your app will be assigned a client ID and a client secret which can be set in the connection string. More information on setting up an OAuth application can be found at https://developer.typeform.com/get-started/.
Note that there are several different use scenarios which all require different redirect URIs:
- CData Desktop Applications: CData desktop applications (Sync, API Server, ArcESB) accept OAuth tokens at /src/oauthCallback.rst. The host and port is the same as the default port used by the application. For example, if you use http://localhost:8019/ to access CData Sync then the redirect URI will be http://localhost:8019/src/oauthCallback.rst.
- CData Cloud Applications: CData cloud applications are similar to their desktop counterparts. If you access Connect AI at https://1.2.3.4/ then you should use the redirect https://1.2.3.4/src/oauthCallback.rst.
- Desktop Application: When using a desktop application, the URI https://localhost:33333 is recommended.
- Web Application: When developing a web application using the driver, use your own URI here such as https://my-website.com/oauth.
After setting the following connection properties, you are ready to connect:
- AuthScheme: Set this to OAuth.
- InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to manage the process to obtain the OAuthAccessToken.
- OAuthClientId: Set this to the Client Id that is specified in your app settings.
- OAuthClientSecret: Set this to Client Secret that is specified in your app settings.
- CallbackURL: Set this to the Redirect URI you specified in your app settings.
- Click Save & Test
-
Navigate to the Permissions tab in the Add Typeform Connection page and update the User-based permissions.
Add a Personal Access Token
A Personal Access Token (PAT) is used to authenticate the connection to Connect AI from Gemini CLI. It is best practice to create a separate PAT for each service to maintain granularity of access.
- Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
- On the Settings page, go to the Access Tokens section and click Create PAT.
-
Give the PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured and a PAT generated, we are ready to connect to Typeform data from Gemini CLI.
Step 2: Configure Gemini CLI for CData Connect AI
Follow these steps to configure Gemini CLI to connect to CData Connect AI:
-
Ensure Gemini CLI is installed on your system. If not, install it using npm:
npm install -g @google-gemini/cli -
Locate your Gemini CLI settings file. If the file doesn't exist, create it:
- Linux/Unix/Mac: ~/.gemini/settings.json
- Windows: %USERPROFILE%\.gemini\settings.json
-
Add the CData Connect AI Remote MCP Server to the mcpServers object in your settings file. Replace YOUR_EMAIL and YOUR_PAT with your Connect AI email address and the PAT created previously:
For example, if your email is [email protected] and your PAT is Uu90pt5vEO..., the Authorization header would be:{ "mcpServers": { "cdata-connect-ai": { "httpUrl": "https://mcp.cloud.cdata.com/mcp", "headers": { "Authorization": "Basic YOUR_EMAIL:YOUR_PAT" } } } }"Authorization": "Basic [email protected]:Uu90pt5vEO..." - Save the settings file. Gemini CLI will now use the CData Connect AI MCP Server for data operations.
Step 3: Query Live Typeform Data with Natural Language
With Gemini CLI configured and connected to CData Connect AI, you can now interact with your Typeform data using natural language queries. The MCP integration allows you to ask questions and receive responses from the Typeform data source in real-time.
Start using Gemini CLI to explore your data:
-
Open your terminal and start a Gemini CLI session:
gemini -
You can now use natural language to query your Typeform data. For example:
- "Show me all customers from the last 30 days"
- "What are my top performing products?"
- "Analyze sales trends for Q4"
- "List all active projects with their current status"
- Gemini CLI will automatically translate your natural language queries into appropriate SQL queries and execute them against your Typeform data through the CData Connect AI MCP Server.
The combination of Gemini CLI's natural language processing capabilities and CData Connect AI's robust data connectivity enables you to explore and analyze your Typeform data without writing complex SQL queries or needing deep technical knowledge of the underlying data structure.
Get CData Connect AI
To get live data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!