Supabase for AI agents
Supabase is an open-source backend platform providing a Postgres database, authentication, storage, and real-time APIs for building applications. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.
What agents do in Supabase.
Create a new database branch
Create a database branch to test schema changes without touching the production database directly.
Run a query for a read check
Execute a read query against the project database to check data before making any changes.
Apply a migration after approval
Apply a database migration only after the user reviews and approves the SQL it will run.
129 Supabase actions, graded by risk.
Every Supabase action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.
read
50Look things up. Allowed by default.
- supabase.get_branchGet a database branch
- supabase.get_healthGet API Health Status
- supabase.get_projectGet project
- supabase.list_tablesList Database Tables
- supabase.get_functionRetrieve a function
- supabase.list_backupsList project database backups
- supabase.list_bucketsList all buckets
- supabase.list_secretsList all secrets
- supabase.get_migrationGet a migration
- supabase.list_branchesList database branches
- supabase.get_action_runGet action run status
- supabase.list_functionsList all functions
- supabase.get_auth_configGet project auth config
- supabase.get_sql_snippetGet a specific SQL snippet
- supabase.get_organizationGet information about an organization
- supabase.get_project_logsGet project logs
write
61Create and change things. Allow, or ask the user first.
- supabase.update_branchUpdate branch configuration
- supabase.update_api_keyUpdate API key
- supabase.update_projectUpdate a project
- supabase.create_functionCreate a function
- supabase.create_a_projectCreate new project
- supabase.update_functionsBulk update functions
- supabase.create_login_roleCreate CLI login role
- supabase.update_a_functionUpdate a function
- supabase.create_bulk_secretsBulk create secrets
- supabase.create_organizationCreate an organization
- supabase.create_sso_providerCreate SSO provider configuration
- supabase.update_sso_providerUpdate an SSO provider by its UUID
- supabase.create_database_branchCreate a database branch
- supabase.update_pgsodium_configUpdate pgsodium root key
- supabase.update_database_passwordUpdate database password
- supabase.update_jit_access_configUpdate JIT access config
destructive
18Delete, cancel or archive. Ask first, or deny outright.
- supabase.delete_projectDelete a project
- supabase.delete_secretsBulk delete secrets
- supabase.delete_functionDelete an edge function by slug
- supabase.delete_login_rolesDelete CLI login roles
- supabase.delete_all_branchesDelete all branches
- supabase.delete_sso_providerRemove an SSO provider
- supabase.delete_edge_functionDelete edge function
- supabase.delete_database_branchDelete branch by id
- supabase.delete_custom_hostname_configDelete custom hostname config
- supabase.delete_project_vanity_subdomainDelete vanity subdomain for project
- supabase.merge_branchMerge a database branch
- supabase.alpha_delete_api_keyDelete an API key from the project
- supabase.reset_database_branchReset a database branch
- supabase.beta_remove_network_bansRemove project network bans
- supabase.beta_remove_read_replicaRemove read replica
- supabase.disable_project_readonlyDisable project readonly mode
Supabase in three steps.
- 01Your users connect SupabaseThey sign in to Supabase on Arc0 Connect, under your brand, and approve the access you ask for.
- 02You set the rulesReads run, writes like “create a function” can wait for the user, and “delete a project” can be denied outright.
- 03Any agent can actYour agent calls Supabase through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
await arc0.policies.set('supabase', { read: 'allow', write: 'ask', // create_function destructive: 'deny', // delete_project }) # Claude Code: the same connection, one URL $ claude mcp add --transport http arc0 \ https://mcp.arc0.ai/u/u_8f2
How Supabase connects.
Users sign in to Supabase on Arc0 Connect and approve the scopes you request. Build with Arc0’s Supabase OAuth app, or bring your own so the Supabase consent screen names you. Tokens refresh automatically, and you can export them whenever you want.
The same Supabase connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →
- AUTH
- API key · OAuth 2.0
- CREDENTIALS
- Per-tenant encrypted vault
- MODEL SEES
- Results only, never credentials
- AUDIT LOG
- Every call, on every plan
Use Supabase from any agent.
Supabase and Arc0, answered.
Can I use Supabase with Claude, ChatGPT or Cursor?
Yes. Connect Supabase to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Supabase actions you allow.
How do users connect Supabase?
Users sign in to Supabase on Arc0 Connect and approve the scopes you request. Build with Arc0’s Supabase OAuth app, or bring your own so the Supabase consent screen names you. Tokens refresh automatically, and you can export them whenever you want.
Which Supabase actions can my agent take?
129 in total: 50 read, 61 write and 18 destructive, such as “create a function”. Your policies decide which of them each agent may call.
Can I stop my agent from deleting things in Supabase?
Yes. Actions like “delete a project” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.
Can my own backend call Supabase too?
Yes. The same Supabase connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.
Plug Supabase into your agent.
Your users connect Supabase once, under your brand. Your agent gets 129 actions behind your policies, with every call on the record.
Free to build · MCP + REST · Audit log on every plan