Integration · Databases
AI agents for Supabase
Read, insert, update and delete rows in a Supabase project's Postgres tables, and call its database functions, through the Data API.
- Actions
- 5
- Read
- 1
- Write
- 4
Actions
What your agents can do in Supabase
Read, insert, update and delete rows in a Supabase project's Postgres tables, and call its database functions, through the Data API. A secret or service_role key bypasses Row Level Security: every call can reach every row.
Read 1
Look things up. Nothing changes.
Select rows from a table
Reads rows from a table or view in the exposed schema (usually public), as result.
Write 4
Create, change or send.
Insert rows into a table
Inserts one or more rows into a table and returns them as result, with the values the database filled in (like an id or created_at).
Update rows in a table
Sets new values on every row that matches filter, and returns the changed rows as result.
Delete rows from a tableDeletes data
Permanently deletes every row that matches filter, and returns the deleted rows as result.
Call a database function
Calls a Postgres function in the exposed schema (a remote procedure call), with its arguments as an object of parameter names and values, and returns what it returns.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Paste an API key from your Supabase account.
What you enter
- Secret key
Settings
- Project ref
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Supabase data
Ask a question in plain words. The agent can get select rows from a table in Supabase, then answers with what it found.
- 02
Let an agent update Supabase
Have the agent insert rows into a table or update rows in a table in Supabase as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent Supabase and Slack: it can get select rows from a table in Supabase and post a summary to a Slack channel in the same run.
FAQ
Supabase and MyDeepAgents
Can MyDeepAgents connect to Supabase?
Yes. The Supabase connector has 5 actions: 1 reads and 4 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Supabase?
Paste an API key from your Supabase account. You'll need: Secret key. The connection also asks for: Project ref. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Supabase without asking?
Only if you let it. Each of the 4 actions that change data can be set to wait for a person's approval before it runs, and the one that deletes data asks first by default.
Can I use Supabase in workflows as well as agents?
Yes. Every Supabase action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Supabase to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.