Integrate Google's Antigravity Agent with Live SQL Server Data via CData Connect AI
Antigravity is an AI-native development environment designed around autonomous and semi-autonomous agents. It allows developers to run agent-driven workflows directly inside the editor, combining planning, execution, and tool usage in a single interface.
By integrating Antigravity with CData Connect AI through the built-in MCP (Model Context Protocol) Server, agents gain governed, real-time access to live SQL Server data. This enables Antigravity agents to explore schemas, query data, and perform actions without manual data movement or custom API wiring.
This article walks through configuring SQL Server connectivity in Connect AI, generating required access token, registering the CData MCP Server in Antigravity, and validating the integration by querying live SQL Server data from an agent-driven workflow.
Step 1: Configure SQL Server connectivity for Antigravity
Connectivity to SQL Server from Antigravity is made possible through CData Connect AI's Remote MCP Server. To interact with SQL Server data from Antigravity, start by creating and configuring a SQL Server connection in CData Connect AI.
- Log into Connect AI, click Sources, and then click Add Connection
- Select SQL Server from the Add Connection panel
-
Enter the necessary authentication properties to connect to SQL Server.
Connecting to Microsoft SQL Server
Connect to Microsoft SQL Server using the following properties:
- Server: The name of the server running SQL Server.
- User: The username provided for authentication with SQL Server.
- Password: The password associated with the authenticating user.
- Database: The name of the SQL Server database.
Connecting to Azure SQL Server and Azure Data Warehouse
You can authenticate to Azure SQL Server or Azure Data Warehouse by setting the following connection properties:
- Server: The server running Azure. You can find this by logging into the Azure portal and navigating to "SQL databases" (or "SQL data warehouses") -> "Select your database" -> "Overview" -> "Server name."
- User: The name of the user authenticating to Azure.
- Password: The password associated with the authenticating user.
- Database: The name of the database, as seen in the Azure portal on the SQL databases (or SQL warehouses) page.
SSH Connectivity for SQL Server
You can use SSH (Secure Shell) to authenticate with SQL Server, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
SSH Connections to SQL Server in Password Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Password"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHPassword: SSH Password
SSH Connections to SQL Server in Public Key Auth Mode
To connect to SQL Server via SSH in Password Auth mode, set the following connection properties:
- User: SQL Server User name
- Password: SQL Server Password
- Database: SQL Server database name
- Server: SQL Server Server name
- Port: SQL Server port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Public_Key"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHClientCret: the path for the public key certificate file
- Click Save & Test
- Navigate to the Permissions tab and update user-based permissions
Add a Personal Access Token
A Personal Access Token (PAT) is used to authenticate the connection to Connect AI from Antigravity. It is best practice to create a separate PAT for each integration to maintain granular access control.
- Click the gear icon () at the top right of the Connect AI app to open Settings
- On the Settings page, go to the Access Tokens section and click Create PAT
- Give the PAT a descriptive name and click Create
- Copy the token when displayed and store it securely. It will not be shown again
With the SQL Server connection configured and a PAT generated, Antigravity can now connect to SQL Server data through the CData MCP Server.
Step 2: Configure the CData MCP Server in Antigravity
Next, register the CData MCP Server in Antigravity. Antigravity reads MCP server definitions from a raw configuration file, allowing agents to dynamically discover and invoke the sources exposed by Connect AI.
- Download the Antigravity desktop application and sign in using your Google account
-
During the initial setup flow, select Agent-driven development when prompted. This mode enables autonomous agents with tool execution capabilities
- Once you have completed the Antigravity setup and the IDE is open, you can access the built-in agent interface to manage MCP servers. From the top menu, click Toggle Agent or press Ctrl + Alt + B to open the agent panel
-
Once the agent panel opens, click the "..." and select MCP Servers from the dropdown
-
Select Manage MCP Servers from the MCP Store, and click View raw config to open the MCP configuration file
-
Paste the following json into the file:
{ "mcpServers": { "cdata-mcp": { "serverUrl": "https://mcp.cloud.cdata.com/mcp", "headers": { "Authorization": "Basic your_base64_encoded_email_PAT", "Content-Type": "application/json" } } } }Note: Antigravity will use Basic authentication with Connect AI. Combine your Connect AI user email and the PAT you created earlier and base64 encode the value. For example, given username and PAT like [email protected]:ABC123...XYZ789, the value for the Authorization header is something like: Basic dXNlckBteWRvbWFpbjphSzkvbVB4Mi9Rcjd2TjQvTHc4Qi96WTZqQzMvRnQ1SGcxL0RzMFVlL01iWHdKdg==
- Save the configuration file
-
Return to the Manage MCP Servers view and click Refresh to load the new MCP server
Step 3: Query live SQL Server data from Antigravity agent
With the MCP server registered, Antigravity agents can now interact with your live data sources exposed by Connect AI to explore schemas and run queries.
- Open the agent panel again using Toggle Agent
- Start a new conversation in the agent chat
-
Start interacting with the agent by entering prompts such as:
- List all catalogs in my cdata-mcp connection.
- Show schemas and tables available for SQL Server.
- Query the top 3 records from a table in SQL Server data.
At this point, your Antigravity agent communicates with the CData Connect AI MCP Server and retrieves live SQL Server data through remote MCP tools.
Get CData Connect AI
To access 300+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!