Home / Servers / Supabase Management API / v1_diff_a_branch

Diffs a database branch

An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.

Diffs a database branch Diffs the specified database branch This endpoint is currently in its **Beta** stage. [GET /v1/branches/{branch_id_or_ref}/diff]

Name on the gateway: supabase_api__v1_diff_a_branch · read-only.

Parameters

NameTypeDescription
branch_id_or_ref requiredstringBranch ref or deprecated branch ID
included_schemasstringincluded_schemas parameter
pgdeltastringUse pg-delta instead of Migra for diffing when true. Boolean string. Truthy…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "supabase_api__v1_diff_a_branch",
  "arguments": {
    "branch_id_or_ref": "…"
  }
}

Or connect the Supabase Management API server directly, which lists 167 tools including this one:

Run in your terminal
claude mcp add --transport http hj-supabase-api https://mcp.hjlabs.in/mcp/supabase-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the diffs a database branch tool with branch_id_or_ref set to ….

More from Supabase Management API