Supabase
Connects to a Supabase project via its PostgREST API. An agent can query, insert, update, and delete table rows, and call Postgres functions via RPC.
Add to an agent node's tools array with _node_type: "tool-supabase". See Connector Reference — How connectors are used.
Authentication
| Field | Required | Description |
|---|---|---|
url | Yes | Supabase project URL (e.g. https://xxx.supabase.co). |
api_key | Yes (one of) | API key sent as both apikey and Authorization: Bearer headers. Falls back to service_role_key, then anon_key if not set. |
service_role_key | No | Alternate name for api_key, used if api_key is not set. |
anon_key | No | Alternate name for api_key, used if neither api_key nor service_role_key is set. |
{
"name": "supabase",
"_node_type": "tool-supabase",
"url": "https://xxxxx.supabase.co",
"api_key": "{{ secret.SUPABASE_SERVICE_ROLE_KEY }}"
}
Tools
supabase_select
Query rows from a Supabase table using PostgREST filters.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
table | string | Yes | Table name |
columns | string | No | Comma-separated columns (default: *) |
filter | string | No | PostgREST filter (e.g. status=eq.active) |
limit | number | No | Maximum rows (default 20) |
order | string | No | Order by (e.g. created_at.desc) |
Returns: The raw JSON response body from PostgREST (an array of row objects).
supabase_insert
Insert a row into a Supabase table.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
table | string | Yes | Table name |
document | object | Yes | Object to insert |
Returns: The raw JSON response body (the inserted row representation).
supabase_update
Update rows in a Supabase table matching a filter.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
table | string | Yes | Table name |
filter | string | Yes | PostgREST filter (e.g. id=eq.123) |
document | object | Yes | Fields to update |
Returns: The raw JSON response body (the updated row representation).
supabase_delete
Delete rows from a Supabase table matching a filter.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
table | string | Yes | Table name |
filter | string | Yes | PostgREST filter (e.g. id=eq.123) |
Returns: The raw JSON response body (the deleted row representation).
supabase_rpc
Call a Supabase database function via RPC.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
function | string | Yes | Supabase function name |
args | object | No | Function arguments |
Returns: The raw JSON response body returned by the function.