How to Connect ChatGPT to Supabase with MCP
Connect ChatGPT to Supabase via MCP: Developer Mode, service role vs anon/RLS, Synra endpoint, staging project first. Read-only gateway and table allowlists.
ChatGPT is where many non-engineers ask for numbers. Supabase is where the numbers live. Bridge today: CSV or a SQL editor screenshot.
With MCP, ChatGPT hits a read-only gateway; Synra talks to Supabase. ChatGPT path (Developer Mode) below. Claude: Connect Claude to Supabase. Cursor: Connect Cursor to Supabase. Any engine: Connect ChatGPT to Your Database.
Also: staging first, multi-tenant filters, where results go.
Service role vs anon
| Key | ChatGPT + Synra? | |-----|------------------| | anon | Usually too weak (RLS) | | service_role | Common — treat like a password | | SELECT-only Postgres user | Best when you can create one |
Empty answers with anon ≠ Synra broken. It’s often RLS.
Step 1 — Credentials
A — API path: Project Settings → API → Project URL + service_role (not anon).
B — Postgres URI: Settings → Database → URI → port 5432 (direct).
Prefer a staging Supabase project for the first connection.
Step 2 — Synra
- mcpserver.design → Connections → Add
- Supabase (A) or PostgreSQL (B)
- Name:
supabase-staging - Test → Save → table allowlist
- Copy MCP URL from Endpoints
Rotate if that URL leaks.
Step 3 — Developer Mode in ChatGPT
- ChatGPT web → profile → Settings
- Apps & Connectors → Advanced → Developer mode on
- Paid plan required; setup is web-first
Step 4 — Custom connector
- Create / Add custom connector
- Name:
Synra Supabase staging - Description:
Read-only Supabase. Schema and SELECT for staging. Filter by org_id when asking about tenant data. - MCP URL: Synra endpoint
- Auth: No authentication (token in URL)
- Create — confirm tools appear
Step 5 — Use in a chat
+ → Developer mode / your app → select Synra.
Try:
- “List tables.”
- “Describe profiles.”
- “Signups last 7 days” (real table names after inspect)
- Write attempt → should fail
Verify. Refresh the connector after schema changes.
Habit checklist
- Staging project before production service role
- Multi-tenant: put
org_idin the prompt (guide) - Don’t commit the endpoint or service role
- Support lookups: support + AI DB / chat vs admin UI
Credentials into Synra, Developer Mode on, known-answer question first.
7-day trial: mcpserver.design.
Related reading:
- Connect ChatGPT to PostgreSQL — any Postgres host
- Connect Claude to Supabase — same DB, Claude
- Connect Cursor to Supabase — same DB, Cursor
- Prepare Staging Data for AI — scrub before you connect
- MCP Troubleshooting — tools missing in ChatGPT