Supabase provides Postgres databases and related project services. Use this integration to query, insert, update, and delete table rows, or select the storage, function, and other operations listed below. Configure your Project ID and Service Role Secret; table operations also require a table name. Use PostgREST filter syntax when filtering, ordering, or limiting row queries.
Supports database operations (query, insert, update, delete, upsert), full-text search, RPC functions, Edge Function invocation, row counting, vector search, and complete storage management (upload, download, list, move, copy, delete files and buckets).
Query data from a Supabase table
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to query schemastring No Database schema to query from (default: public). Use this to access tables in other schemas. selectstring No Columns to return (comma-separated). Defaults to * (all columns) filterstring No PostgREST filter (e.g., "id=eq.123") orderBystring No Column to order by (add DESC for descending) limitnumber No Maximum number of rows to return offsetnumber No Number of rows to skip (for pagination) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of records returned from the query
Insert data into a Supabase table
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to insert data into schemastring No Database schema to insert into (default: public). Use this to access tables in other schemas. dataarray Yes The data to insert (array of objects or a single object) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of inserted records
Get a single row from a Supabase table based on filter criteria
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to query schemastring No Database schema to query from (default: public). Use this to access tables in other schemas. selectstring No Columns to return (comma-separated). Defaults to * (all columns) filterstring Yes PostgREST filter to find the specific row (e.g., "id=eq.123") apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array containing the row data if found, empty array if not found
Update rows in a Supabase table based on filter criteria
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to update schemastring No Database schema to update in (default: public). Use this to access tables in other schemas. filterstring Yes PostgREST filter to identify rows to update (e.g., "id=eq.123") dataobject Yes Data to update in the matching rows apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of updated records
Delete rows from a Supabase table based on filter criteria
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to delete from schemastring No Database schema to delete from (default: public). Use this to access tables in other schemas. filterstring Yes PostgREST filter to identify rows to delete (e.g., "id=eq.123") apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of deleted records
Insert or update data in a Supabase table (upsert operation)
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to upsert data into schemastring No Database schema to upsert into (default: public). Use this to access tables in other schemas. dataarray Yes The data to upsert (insert or update) - array of objects or a single object onConflictstring No Comma-separated column(s) with a unique or primary key constraint to resolve conflicts on (e.g., "email"). Defaults to the primary key. apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of upserted records
Count rows in a Supabase table
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to count rows from schemastring No Database schema to count from (default: public). Use this to access tables in other schemas. filterstring No PostgREST filter (e.g., "status=eq.active") countTypestring No Count type: exact, planned, or estimated (default: exact) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message countnumber Number of rows matching the filter
Perform full-text search on a Supabase table
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) tablestring Yes The name of the Supabase table to search schemastring No Database schema to search in (default: public). Use this to access tables in other schemas. columnstring Yes The column to search in querystring Yes The search query searchTypestring No Search type: plain, phrase, or websearch (default: websearch) languagestring No Language for text search configuration (default: english) limitnumber No Maximum number of rows to return offsetnumber No Number of rows to skip (for pagination) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of records matching the search query
Perform similarity search using pgvector in a Supabase table
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) functionNamestring Yes The name of the PostgreSQL function that performs vector search (e.g., match_documents) queryEmbeddingarray Yes The query vector/embedding to search for similar items matchThresholdnumber No Minimum similarity threshold (0-1), typically 0.7-0.9 matchCountnumber No Maximum number of results to return (default: 10) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of records with similarity scores from the vector search. Each record includes a similarity field (0-1) indicating how similar it is to the query vector.
Call a PostgreSQL function in Supabase
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) functionNamestring Yes The name of the PostgreSQL function to call paramsobject No Parameters to pass to the function as a JSON object apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsjson Result returned from the function
Invoke a Supabase Edge Function over HTTP
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) functionNamestring Yes The name of the Edge Function to invoke (e.g., "hello-world") methodstring No HTTP method to use: GET, POST, PUT, PATCH, or DELETE (default: POST) bodyjson No Request payload to send to the function as a JSON object (ignored for GET) headersjson No Additional request headers as a JSON object of header name to value apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsjson Response body returned by the Edge Function
Introspect Supabase database schema from its OpenAPI spec to get table and column structures (best-effort primary/foreign key detection)
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) schemastring No Database schema to introspect (defaults to all user schemas, commonly "public") apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message tablesarray Array of table schemas with columns, keys, and indexes ↳ name string Table name ↳ schema string Database schema name ↳ columns array Array of column definitions ↳ name string Column name ↳ type string Column data type ↳ nullable boolean Whether the column allows null values — a NOT NULL column that has a default value is misreported as nullable, since the OpenAPI spec this is derived from omits it from the required list in that case ↳ default string Default value for the column ↳ isPrimaryKey boolean Best-effort guess based on the column being named "id" (not authoritative) ↳ isForeignKey boolean True only if the column has a "references table.column" SQL comment; most databases will show false even for real foreign keys ↳ references object Foreign key reference details, when detected via SQL comment ↳ table string Referenced table name ↳ column string Referenced column name ↳ primaryKey array Array of primary key column names ↳ foreignKeys array Array of foreign key relationships ↳ column string Local column name ↳ referencesTable string Referenced table name ↳ referencesColumn string Referenced column name ↳ indexes array Always empty — index definitions are not exposed by the OpenAPI spec this tool reads ↳ name string Index name ↳ columns array Columns included in the index ↳ unique boolean Whether the index enforces uniqueness schemasarray List of schemas found in the database
Upload a file to a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket fileNamestring Yes The name of the file (e.g., "document.pdf", "image.jpg") pathstring No Optional folder path (e.g., "folder/subfolder/") fileDatajson Yes File to upload - UserFile object (basic mode) or string content (advanced mode: base64 or plain text). Supports data URLs. contentTypestring No MIME type of the file (e.g., "image/jpeg", "text/plain") cacheControlstring No Cache-Control header value in seconds for the stored object (e.g., "3600"; default: "3600") upsertboolean No If true, overwrites existing file (default: false) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Upload result including file path, bucket, and public URL ↳ Id string Unique identifier for the uploaded file ↳ Key string Full object key including bucket name ↳ path string Path to the uploaded file within the bucket ↳ bucket string Name of the bucket the file was uploaded to ↳ publicUrl string Public URL for the uploaded file
Download a file from a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathstring Yes The path to the file to download (e.g., "folder/file.jpg") fileNamestring No Optional filename override apiKeystring Yes Your Supabase service role secret key
Parameter Type Description filefile Downloaded file stored in execution files
List files in a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathstring No The folder path to list files from (default: root) limitnumber No Maximum number of files to return (default: 100) offsetnumber No Number of files to skip (for pagination) sortBystring No Column to sort by: name, created_at, updated_at, last_accessed_at (default: name) sortOrderstring No Sort order: asc or desc (default: asc) searchstring No Search term to filter files by name apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of file objects with metadata ↳ id string Unique file identifier ↳ name string File name ↳ bucket_id string Bucket identifier the file belongs to ↳ owner string Owner identifier ↳ created_at string File creation timestamp ↳ updated_at string Last update timestamp ↳ last_accessed_at string Last access timestamp ↳ metadata object File metadata including size and MIME type ↳ size number File size in bytes ↳ mimetype string MIME type of the file ↳ cacheControl string Cache control header value ↳ lastModified string Last modified timestamp ↳ eTag string Entity tag for caching
Delete files from a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathsarray Yes Array of file paths to delete (e.g., ["folder/file1.jpg", "folder/file2.jpg"]) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of deleted file objects ↳ name string Name of the deleted file ↳ bucket_id string Bucket identifier ↳ owner string Owner identifier ↳ id string Unique file identifier ↳ updated_at string Last update timestamp ↳ created_at string File creation timestamp ↳ last_accessed_at string Last access timestamp
Move a file within a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket fromPathstring Yes The current path of the file (e.g., "folder/old.jpg") toPathstring Yes The new path for the file (e.g., "newfolder/new.jpg") apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Move operation result ↳ message string Operation status message ↳ Id string Identifier of the destination object ↳ Key string Full object key of the destination
Copy a file within a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket fromPathstring Yes The path of the source file (e.g., "folder/source.jpg") toPathstring Yes The path for the copied file (e.g., "folder/copy.jpg") apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Copy operation result with the destination object key ↳ Key string Full object key of the copied file ↳ Id string Identifier of the copied object
Create a new storage bucket in Supabase
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the bucket to create isPublicboolean No Whether the bucket should be publicly accessible (default: false) fileSizeLimitnumber No Maximum file size in bytes (optional) allowedMimeTypesarray No Array of allowed MIME types (e.g., ["image/png", "image/jpeg"]) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Created bucket result (name) ↳ name string Created bucket name
Update the configuration of an existing Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the bucket to update isPublicboolean No Whether the bucket should be publicly accessible (leave unset to keep the current value) fileSizeLimitnumber No Maximum file size in bytes (leave unset to keep the current value) allowedMimeTypesarray No Array of allowed MIME types (e.g., ["image/png", "image/jpeg"]) — leave unset to keep the current value apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Update operation result ↳ message string Operation status message
Delete all objects inside a Supabase storage bucket without deleting the bucket itself
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the bucket to empty apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Empty bucket operation result ↳ message string Operation status message
List all storage buckets in Supabase
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsarray Array of bucket objects ↳ id string Unique bucket identifier ↳ name string Bucket name ↳ owner string Owner identifier ↳ public boolean Whether the bucket is publicly accessible ↳ created_at string Bucket creation timestamp ↳ updated_at string Last update timestamp ↳ file_size_limit number Maximum file size allowed in bytes ↳ allowed_mime_types array List of allowed MIME types for uploads
Delete a storage bucket in Supabase
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the bucket to delete apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message resultsobject Delete operation result ↳ message string Operation status message
Get the public URL for a file in a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathstring Yes The path to the file (e.g., "folder/file.jpg") downloadboolean No If true, forces download instead of inline display (default: false)
Parameter Type Description messagestring Operation status message publicUrlstring The public URL to access the file
Create a temporary signed URL for a file in a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathstring Yes The path to the file (e.g., "folder/file.jpg") expiresInnumber Yes Number of seconds until the URL expires (e.g., 3600 for 1 hour) downloadboolean No If true, forces download instead of inline display (default: false) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message signedUrlstring The temporary signed URL to access the file
Create a temporary signed URL a client can use to upload directly to a Supabase storage bucket
Inputs and outputsParameter Type Required Description projectIdstring Yes Your Supabase project ID (e.g., jdrkgepadsdopsntdlom) bucketstring Yes The name of the storage bucket pathstring Yes The destination path for the uploaded file (e.g., "folder/file.jpg") upsertboolean No If true, allows overwriting an existing file at this path (default: false) apiKeystring Yes Your Supabase service role secret key
Parameter Type Description messagestring Operation status message signedUrlstring The temporary signed URL a client can PUT the file to pathstring The destination object path tokenstring The upload token embedded in the signed URL