How to Build an Antigravity Workflow with the Oracle SQLcl MCP Server and Oracle AI Database A developer has published a practical guide and companion notebook showing how to connect Antigravity, an MCP-capable AI coding environment, to Oracle AI Database through the Oracle SQLcl MCP server. The workflow uses SQLcl as a declared tool boundary that executes SQL and returns bounded results, keeping large result sets out of the agent context window, while Oracle AI Database stores durable memory records, retrieval evidence, vectors, and tool traces. The guide emphasizes privileges, logging, scoped retrieval, and repeatable runbooks over prompting, and validates lexical, vector, and hybrid retrieval plus Oracle AI Agent Memory initialization. This article adapts the same MCP workflow pattern for Antigravity and Oracle AI Database. Companion notebook: Antigravity MCP with Oracle AI Database Workflow https://github.com/oracle-devrel/oracle-ai-developer-hub/blob/main/notebooks/antigravity mcp oracle ai database.ipynb The Oracle SQLcl MCP server is useful for Antigravity workflows because database questions can run through a declared local MCP tool instead of being copied into the agent context as raw data. SQLcl executes SQL against Oracle AI Database and returns bounded results, which helps an AI coding agent inspect business data without pulling large result sets into the context window. Antigravity refers to the MCP-capable AI coding environment used as the developer-facing agent interface. In this pattern, Antigravity does not connect directly to Oracle AI Database. Antigravity calls SQLcl MCP tools, SQLcl uses a saved Oracle connection, and Oracle AI Database remains the durable store for memory records, retrieval evidence, vectors, and tool traces. Oracle AI Agent Memory and LangChain sit in the application layer after that database-backed path is in place. Production success depends less on clever prompting and more on boundaries, privileges, logging, scoped retrieval, and repeatable runbooks. This guide is for developers who want Antigravity to work with Oracle AI Database through explicit tools, durable memory, and reviewable retrieval evidence. The developer path through this guide is simple: Database-connected assistants are most useful when the access path is visible. The goal is not just to let Antigravity produce SQL-shaped text; the goal is to make the database path approved, observable, and easy to debug later. Antigravity sits near the developer's real work: code, terminal commands, notebooks, configuration, and implementation details. A developer can move from a failing local flow to a database inspection path inside the same working loop. That closeness is useful, but it also makes the database boundary more sensitive. A practical workflow preserves the request, the tool call, the database identity, the retrieved context, and the reason a risky action was allowed, blocked, or sent for confirmation. By the end of this guide, you should know how to connect Antigravity to Oracle AI Database through a controlled MCP boundary, when local Antigravity context is enough and when Oracle-backed memory is needed, and how to build a retrieval path that can be queried, audited, and scaled. The companion notebook is intentionally practical. It validates SQLcl and Java discovery, writes a sanitized Antigravity MCP config preview, checks the saved SQLcl connection alias, creates memory tables, inserts simulated Antigravity/MCP teaching traces, tests lexical, vector, and hybrid retrieval, initializes Oracle AI Agent Memory with the current configuration shape, and finishes with a validation snapshot. The workflow has five cooperating layers. Antigravity is the developer-facing agent interface. SQLcl MCP is the tool boundary. Oracle AI Database is the durable substrate for memory, traces, and retrieval. Oracle AI Agent Memory is the application-side memory API. LangChain is the optional orchestration wrapper. The companion notebook sits outside all five, as the build-and-validation harness that proves the pieces are wired correctly before the workflow is handed to Antigravity. | Layer | Responsibility | | Antigravity | Developer-facing MCP client and agent interface. | | SQLcl MCP | Exposes declared Oracle tools to Antigravity; it is the tool boundary. | | Oracle AI Database | Stores durable data, retrieval evidence, vectors, metadata, traces, and enforces database privileges. | | Oracle AI Agent Memory | Provides application APIs for users, agents, threads, durable memories, scoped retrieval, and context assembly. | | LangChain | Wraps Oracle-backed retrieval results as Document objects and supports application-side orchestration. | The system naturally forms two execution loops: SQLcl MCP handles live tool use. Oracle AI Agent Memory handles durable memory and scoped recall. Most production setups need both loops, but they solve different problems. The setup should be reproducible. SQLcl runs in MCP mode with sql -mcp . Antigravity launches it as an MCP server and talks to Oracle through declared tools, not through direct access. Connections come from saved SQLcl profiles that you create and test before Antigravity uses them. The AI coding agent should not invent database connections at runtime. It should reuse profiles you have already created and validated. Prerequisites before you connect Antigravity: mcp config.json . ~/.dbtools , created with password persistence for MCP use. The notebook treats the saved SQLcl connection alias as a first-class artifact. In local development, that alias is what lets SQLcl MCP connect without forcing the agent to assemble credentials dynamically. In this notebook, the alias is antigravity mcp . The notebook then generates a sanitized Antigravity MCP config preview. The preview is intentionally safe: it shows the server command and arguments without exposing secrets. It does not overwrite your real Antigravity MCP configuration. For the saved connection itself, the important detail is -savepwd . conn -save antigravity mcp -savepwd