Connecting your Supabase Model Context Protocol (MCP) server to Google Antigravity gives your AI agent direct power to execute SQL queries, manage database tables, handle configuration settings, and build backend functionality automatically.
Here is the exact step-by-step walkthrough to get everything configured and authenticated smoothly.
Step 1: Open the MCP Server Settings in Antigravity
While manual configuration details exist in the official documentation, the fastest approach is using the built-in UI inside Google Antigravity:
- Open Google Antigravity.
- Toggle open the Agent Panel.
- Click the Three Dots menu icon in the upper-right corner to open additional options.
- Navigate to Customization$\rightarrow$MCP Server.
Step 2: Install the Supabase MCP Server
- In the MCP server search bar, type
Supabase. - Click on the Supabase extension card and hit Install.
What this does: Installing this MCP server enables your AI agent to query database schemas, execute raw SQL scripts, update tables, and manage serverless functions directly from your prompt workspace.
Step 3: Resolve the Initial Authentication Error
Immediately after installing, you will see a red initialization error message:
failing initialize send initialize authentications
Don’t panic—this is normal. The server requires OAuth permissions before it can access your database. To fix it:
- Click the Settings icon in the main top navigation.
- Select Antigravity IDE User Settings.
- Click on the Customization tab.
- Locate the newly added Supabase MCP server and click Authenticate.
Step 4: Authorize Your Supabase Organization
- Clicking Authenticate will redirect you to your default web browser.
- Select the specific Supabase Organization or project you want to grant access to.
- Review the requested permissions and click Authorize Antigravity Client.
- Copy the unique Authorization Code displayed on the final confirmation page.
Step 5: Complete Setup & Verify Connection
- Return to the Google Antigravity application.
- Paste your copied authorization code into the prompt input field and click Submit.
- Refresh the IDE settings tab—the error status will disappear and update to connected.
Testing Your Connection
To ensure your AI agent can talk to your database, open a new chat session with your agent and prompt:
“Is Supabase connected?”
The agent should respond confirming that the Supabase MCP server is active, connected, and ready to perform database actions.