Supabase is an open-source Firebase alternative built on PostgreSQL. Since the database underneath is plain Postgres, QueryBear connects directly and gives your AI clients safe, read-only access through QueryBear’s security gateway.Documentation Index
Fetch the complete documentation index at: https://docs.querybear.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your Supabase connection details
- Open your project in the Supabase dashboard.
- Go to Project Settings → Database.
- Under Connection string, choose the Connection pooler tab.
- Transaction mode (port
6543) — best for serverless / many short connections. Recommended for QueryBear. - Session mode (port
5432) — for persistent sessions. - Direct connection — IPv6 only on some plans; avoid unless you need it.
Create a read-only role
Run the standard Postgres read-only role SQL from the PostgreSQL guide in Supabase’s SQL Editor.Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection → PostgreSQL. Use the pooler host, the database namepostgres, your querybear role, and SSL mode require.
Supabase-specific notes
- Row Level Security (RLS): RLS policies apply to the role’s queries. A read-only role still respects RLS, which can be a useful extra layer.
- Block sensitive columns: Supabase’s
auth.userstable holds emails and hashed passwords. Keep theauthschema out of the allow-list, or block those columns in QueryBear. - Pooler host: Prefer transaction-mode pooler (
...pooler.supabase.com:6543).