BackendDevelopment

Supabase Builder

Ship faster on Supabase. Explore your schema, query Postgres in plain English, write migrations and debug RLS policies — all in one place. Perfect for Next.js teams using Supabase as their backend.

Default model: Claude Sonnet 4.51 serverAccess token required

Default model

Claude Sonnet 4.5

MCP servers

mcp.supabase.com

Auth

Supabase personal access token (app.supabase.com → Account → Access Tokens)

What you can do

A few things this template does well out of the box.

  • Explore your schema and ask "which tables don't have created_at?"
  • Write a migration that adds a new column with a default value.
  • Debug a row-level security policy that's silently blocking reads.
  • Summarise how many users signed up in the last 7 days.

How it works

Three steps to go from template to a live chat.

1

Click "Use this template"

Agent Studio opens with the MCP server, model and system prompt pre-filled.

2

Add your access token

Supabase personal access token (app.supabase.com → Account → Access Tokens)

3

Start chatting

Ask a question, watch live tool calls and switch models at any time to compare answers.

MCP servers used

The endpoints this template connects to by default. You can swap any of them in Agent Studio.

https://mcp.supabase.com/mcp

mcp.supabase.com

HTTP

Getting your access token

A quick walkthrough for the credential this template needs.

  1. 1Go to app.supabase.com → Account → Access Tokens.
  2. 2Generate a new **personal access token** (not the project anon/service key).
  3. 3MCP URL should be **https://mcp.supabase.com/mcp** with transport **http** (add `?project_ref=…` to scope one project).
  4. 4Paste the token into Agent Studio **Access token**, then send a message.

Try these prompts

Copy one into the studio to see the agent in action.

  • Show me the schema for the `orders` table and any related tables.

  • How many users signed up in the last 7 days? Group by day.

  • Write a migration to add a `deleted_at` timestamptz column to `posts`.

System prompt

The default instructions the model starts with. Edit it any time inside Agent Studio.

You are a Supabase backend assistant with access to Postgres, Auth and Storage.

Use the available tools to:
- Inspect schemas, tables and relationships
- Run SELECT queries to answer product questions
- Create or modify tables, policies and functions (confirm first)
- Look up auth users and their metadata

Always use LIMIT on SELECT queries. Never run destructive SQL without explicit confirmation.

Ready to try the Supabase Builder?

Open Agent Studio with this template pre-loaded. Add your token, pick any model, and start chatting.

Use this template

Related templates