How to Connect Supabase MCP to Firebase Studio (Prototype + IDE)
After a long time using Firebase Studio and waiting for answers from the devs that never clearly explained how to properly connect Supabase MCP, I decided to create this step-by-step guide that actually works
.
With this setup, you’ll be able to:
-
Read your Supabase database -
Create and edit tables -
Modify schemas -
Let the chat interact directly with your DB
Works for Prototype and IDE mode ![]()
STEP 1 — Create an Access Token in Supabase
First, we need to generate an Access Token in Supabase.
1. Open Supabase
-
Log in to your account
In the top-right corner, click on your profile picture
Select Account Preferences
2. Open Access Tokens
In Account Preferences, look at the left sidebar
Click on Access Tokens
3. Generate a New Token
Click Generate new token
4. Configure the Token
Choose a name for the token
Select the expiration time
Click Generate token
5. Copy the Token
The token will appear at the top in a box
Click Copy
Important:
Save this token somewhere safe. You’ll need it in the next steps.
STEP 2 — Open Firebase Studio in IDE Mode
Now let’s connect Supabase to Firebase Studio.
6. Open Firebase Studio (IDE mode)
-
Open Firebase Studio
-
Switch to IDE mode
On the left chat panel, click Add MCP
STEP 3 — Configure the MCP (mcp.json)
After clicking Add MCP, Firebase Studio will automatically open a file called mcp.json on the left side.
You should now see the mcp.json file open
7. Paste This EXACT Code
Replace the content of mcp.json with exactly this ![]()
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": [
"-y",
"@supabase/mcp-server-supabase@latest",
"--access-token",
"YOUR_ACCESS_TOKEN_HERE"
]
}
}
}
Important:
Replace
YOUR_ACCESS_TOKEN_HERE
with the token you copied from Supabase.
8. Save & Reload
-
Save the file -
Press F5 or reload the page
STEP 4 — Verify the Connection
After reloading:
-
Open IDE mode again
-
Check the MCP tools panel
-
Supabase should now appear as connected
Done!
What You Can Do Now
You can now ask the chat things like:
-
“Read my database schema”
-
“Create a new table”
-
“Add columns to an existing table”
-
“Generate SQL migrations”
-
“Analyze my Supabase data”
All directly from Firebase Studio ![]()
Final Note
If this tutorial helped you:
-
Leave a LIKE -
Save or share it -
It may help many other developers who are stuck
By: Micrograms ![]()




