HandbookV the OfficinaRead-only database access
Vthe Officina, Use the toolsRead-only database access
In plain words
Read-only access is a database login or connection that can read data but can't insert, update or delete anything, so a slip, yours or your agent's, can't damage real data.
Where you see it
A separate database user with select-only rights, the read-only setting on a saved connection in a client such as DBeaver, or the read-only option when you connect the Supabase MCP server to your agent. Production gets the read-only login; your local database can have the keys to everything.
What goes wrong
- Handing the agent full access to production
With the postgres connection string or Supabase's secret key, an agent that misreads a task can drop a table. Give it a read-only login, and keep it off production unless you're watching.
- A read-only user that sees no rows
With row-level security on, a new role only sees rows a policy allows, so the tables look empty. That's the rules working: add a select policy for that role rather than switching security off.
- Relying on one app's read-only switch
A read-only setting in one client protects you in that client. The same password used anywhere else can still write, so the real protection is a login that can't.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYou want Claude Code to look at production data while it diagnoses a bug. Which setup is safest?