AlloyDB Omni
[!NOTE]
Currently in beta (pre-v1.0), and may see breaking changes until the first stable release (v1.0).
This repository packages MCP Toolbox's prebuilt alloydb-omni server as a plugin/extension to interact with AlloyDB Omni instances. It can be used with various AI agents, including Antigravity, Claude Code and Codex, to manage your databases, execute queries, explore schemas, and troubleshoot issues using natural language prompts.
[!IMPORTANT]
We Want Your Feedback!
Please share your thoughts with us by filling out our feedback form.
Your input is invaluable and helps us improve the project for everyone.
Table of Contents
Why Use AlloyDB Omni?
- Seamless Workflow: Integrates seamlessly into your AI agent's environment. No need to constantly switch contexts for common database tasks.
- Natural Language Queries: Stop wrestling with complex commands. Explore schemas and query data by describing what you want in plain English.
- Full Lifecycle Control: Manage the entire lifecycle of your database, from creating clusters to exploring schemas and running queries.
- Code Generation: Accelerate development by asking your agent to generate data classes and other code snippets based on your table schemas.
Prerequisites
Before you begin, ensure you have the following:
- One of these AI agents installed
- An active AlloyDB Omni instance.
Getting Started
Configuration
Please keep these environment variables handy during the installation process:
ALLOYDB_OMNI_HOST: (Optional: localhost by default) The host of your AlloyDB cluster.
ALLOYDB_OMNI_PORT: (Optional: 5432 by default) The port of your AlloyDB cluster.
ALLOYDB_OMNI_DATABASE: The name of the database to connect to.
ALLOYDB_OMNI_USER: The database username.
ALLOYDB_OMNI_PASSWORD: The password for the database user.
ALLOYDB_OMNI_QUERY_PARAMS: (Optional) Additional query parameters.
Installation & Usage
To start interacting with your database, install the extension for your preferred AI agent, then launch the agent and use natural language to ask questions or perform tasks.
For the latest version, check the releases page.
Antigravity
You can use either of these two agents for Antigravity:
💡 Tip — Migrating from Gemini CLI?
If you previously installed this extension with gemini extensions install, you can convert it to an Antigravity plugin instead of reinstalling from scratch:
- On first launch of Antigravity CLI, accept the Migration Options prompt to automatically convert your installed Gemini CLI extensions to Antigravity plugins.
- Or, from your terminal, run:
agy plugin import gemini
See Migrating from Gemini CLI for details on plugins, context files (GEMINI.md / AGENTS.md), and MCP server config differences.
Antigravity 2.0 (IDE)
1. Install the plugin:
Install the plugin directly from the remote GitHub repository: