![]() |
VOOZH | about |
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 MongoDB data. This enables Antigravity agents to explore schemas, query data, and perform actions without manual data movement or custom API wiring.
This article explains how to configure MongoDB connectivity in Connect AI, generate the required access token, register CData Connect AI in Antigravity, and validate the integration by querying live MongoDB data from an agent-driven workflow.
Accessing and integrating live data from MongoDB has never been easier with CData. Customers rely on CData connectivity to:
MongoDB's flexibility means that it can be used as a transactional, operational, or analytical database. That means CData customers use our solutions to integrate their business data with MongoDB or integrate their MongoDB data with their data warehouse (or both). Customers also leverage our live connectivity options to analyze and report on MongoDB directly from their preferred tools, like Power BI and Tableau.
For more details on MongoDB use case and how CData enhances your MongoDB experience, check out our blog post: The Top 10 Real-World MongoDB Use Cases You Should Know in 2024.
Connectivity to MongoDB from Antigravity is made possible through CData Connect AI's Remote MCP Server. To interact with MongoDB data from Antigravity, start by creating and configuring a MongoDB connection in CData Connect AI.
Set the Server, Database, User, and Password connection properties to connect to MongoDB. To access MongoDB collections as tables you can use automatic schema discovery or write your own schema definitions. Schemas are defined in .rsd files, which have a simple format. You can also execute free-form queries that are not tied to the schema.
π Configuring a connection (Salesforce is shown)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.
With the MongoDB connection configured and a PAT generated, Antigravity can now connect to MongoDB data through CData Connect AI.
Next, register Connect AI 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.
{
"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==
π Editing the Config fileWith the MCP server registered, Antigravity agents can now interact with your live data sources exposed by Connect AI to explore schemas and run queries.
At this point, your Antigravity agent communicates with the CData Connect AI MCP Server and retrieves live MongoDB data through remote MCP tools.
To access hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!
Learn more about CData Connect AI or sign up for free trial access:
Free Trial