Supabase MCP server tools: what read-only mode keeps, and what should ask
All 36 tools of Supabase's MCP server, checked by running version 0.19.0: which only read, which run SQL or change a project, what --read-only really removes, and the Claude Code settings that make the risky ones ask.
Checked on by running @supabase/mcp-server-supabase 0.19.0 from @supabase/mcp-server-supabase and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
--read-only removes 14 tools but keeps execute_sql, run in a read-only transaction. Without it, let the reads run and make SQL, migrations and branch merges ask.
- Can run on their own
- 20
- Should ask a person
- 16
What --read-only removes, and what it keeps
Started with --read-only, the server lists 22 tools instead of 36. The 14 it drops are create_project, pause_project, restore_project, apply_migration, deploy_edge_function, create_branch, delete_branch, merge_branch, reset_branch, rebase_branch, create_notebook, delete_notebook, submit_feedback, delete_feedback.
It keeps execute_sql, run_notebook, and in that mode marks them read-only and destructive at once. execute_sql still takes any SQL the model writes and run_notebook runs any saved notebook, but the server sends each query to Supabase with its read-only flag set, so a write is refused by the database rather than by a prompt. They can still read every row the connection can, including tables the agent has no business with.
Narrow it before you write rules
--project-ref=<ref>ties the server to one project, so the account-level tools such ascreate_projectandpause_projectare not offered.--featurespicks tool groups, such as--features=database,docs, so a coding session that only needs the schema never sees branches or Edge Functions.- Point it at a development project or a branch, not production. A rule cannot make
execute_sqlsafe on live data; only the database’s own permissions can.
create_project and create_branch take a confirmation id from confirm_cost, and the model can call confirm_cost itself. That step reminds the model of the price; it is not a person’s yes. A rule that sends both tools to a person is.
All 36 tools
Hard to undo11 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
pause_projectPauses a Supabase project.
Server gives no read-only or destructive hint
Our call: Pausing takes the project's database and APIs offline for everyone using it.
apply_migrationApplies a migration to the database.
Server says: destructive
execute_sqlExecutes raw SQL in the Postgres database.
Server says: destructive
deploy_edge_functionDeploys an Edge Function to a Supabase project.
Server says: destructive
delete_branchDeletes a development branch.
Server says: destructive
merge_branchMerges migrations and edge functions from a development branch to production.
Server says: destructive
reset_branchResets migrations of a development branch.
Server says: destructive
rebase_branchRebases a development branch on production.
Server says: destructive
run_notebookRuns up to 50 database and log query cells in a notebook, in notebook order, and returns each cell's rows, error, or skipped reason with its cell_id.
Server says: destructive
delete_notebookDeletes a notebook from a Supabase project, removing it for everyone with access to the project.
Server says: destructive
delete_feedbackDeletes feedback sent with submit_feedback.
Server says: destructive
Moves money2 toolsSend the amount. A rule lets small amounts through; above the limit a person decides.
create_projectCreates a new Supabase project, which can add to the organization's bill.
Server gives no read-only or destructive hint
Our call: Adds to the organization's bill, as the server's own description says.
create_branchCreates a development branch on a Supabase project, which can incur hourly compute and other usage charges.
Server gives no read-only or destructive hint
Our call: Adds to the organization's bill, as the server's own description says.
Reaches people1 toolAsk a person: once it reaches someone, it cannot be unsent.
submit_feedbackSends feedback about Supabase tools or documentation to the Supabase team.
Server gives no read-only or destructive hint
Changes data2 toolsAsk a person. Once it is routine, a standing rule can answer.
restore_projectRestores a Supabase project.
Server gives no read-only or destructive hint
create_notebookCreates a saved notebook shared with everyone who has access to the Supabase project.
Server gives no read-only or destructive hint
Only looks20 toolsLet it run. It only looks.
search_docsSearch the Supabase documentation using GraphQL.
Server says: read-only
list_organizationsLists all organizations that the user is a member of.
Server says: read-only
get_organizationGets details for an organization.
Server says: read-only
list_projectsLists all Supabase projects for the user.
Server says: read-only
get_projectGets details for a Supabase project.
Server says: read-only
get_costGets the cost of creating a new project or branch.
Server says: read-only
Our call: Only reports what a new project or branch would cost.
confirm_costReturns a confirmation ID for the cost of a new project or branch returned by `get_cost`.
Server says: read-only
list_tablesLists all tables in one or more schemas.
Server says: read-only
list_extensionsLists all extensions in the database.
Server says: read-only
list_migrationsLists all migrations in the database.
Server says: read-only
query_logsRuns a custom read-only ClickHouse SQL query against a Supabase project's unified logs stream, for filtering, aggregating, or joining across log fields more precisely than a simple per-service log dump.
Server says: read-only
Our call: Runs a read-only query on the project's logs; the server marks it read-only.
get_advisorsGets a list of advisory notices for the Supabase project.
Server says: read-only
get_project_urlGets the API URL for a project.
Server says: read-only
get_publishable_keysGets all publishable API keys for a project, including legacy anon keys (JWT-based) and modern publishable keys (format: sb_publishable_...).
Server says: read-only
generate_typescript_typesGenerates TypeScript types for a project.
Server says: read-only
list_edge_functionsLists all Edge Functions in a Supabase project.
Server says: read-only
get_edge_functionRetrieves file contents for an Edge Function in a Supabase project.
Server says: read-only
list_branchesLists all development branches of a Supabase project.
Server says: read-only
list_notebooksLists the notebooks in a Supabase project.
Server says: read-only
get_notebookGets a notebook from a Supabase project, including its cells.
Server says: read-only
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as supabase, this server’s tools are named mcp__supabase__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__supabase__search_docs",
"mcp__supabase__list_organizations",
"mcp__supabase__get_organization",
"mcp__supabase__list_projects",
"mcp__supabase__get_project",
"mcp__supabase__get_cost",
"mcp__supabase__confirm_cost",
"mcp__supabase__list_tables",
"mcp__supabase__list_extensions",
"mcp__supabase__list_migrations",
"mcp__supabase__query_logs",
"mcp__supabase__get_advisors",
"mcp__supabase__get_project_url",
"mcp__supabase__get_publishable_keys",
"mcp__supabase__generate_typescript_types",
"mcp__supabase__list_edge_functions",
"mcp__supabase__get_edge_function",
"mcp__supabase__list_branches",
"mcp__supabase__list_notebooks",
"mcp__supabase__get_notebook"
]
}
}The command that adds the server:
claude mcp add supabase -e SUPABASE_ACCESS_TOKEN=$SUPABASE_PAT -- npx -y @supabase/mcp-server-supabase@latest --read-only --project-ref=<project-ref>Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__supabase__(?!(search_docs|list_organizations|get_organization|list_projects|get_project|get_cost|confirm_cost|list_tables|list_extensions|list_migrations|query_logs|get_advisors|get_project_url|get_publishable_keys|generate_typescript_types|list_edge_functions|get_edge_function|list_branches|list_notebooks|get_notebook)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz login once to save a key, then use this in claude_desktop_config.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"supabase": {
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz",
"mcp-proxy",
"--name",
"supabase",
"--look-only",
"search_docs,list_organizations,get_organization,list_projects,get_project,get_cost,confirm_cost,list_tables,list_extensions,list_migrations,query_logs,get_advisors,get_project_url,get_publishable_keys,generate_typescript_types,list_edge_functions,get_edge_function,list_branches,list_notebooks,get_notebook",
"--",
"npx",
"-y",
"@supabase/mcp-server-supabase@latest",
"--read-only",
"--project-ref=<project-ref>"
],
"command": "npx",
"env": {
"SUPABASE_ACCESS_TOKEN": "<SUPABASE_PAT>"
}
}
}
}Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__supabase, keeps Claude Code from asking a second time in the terminal:
claude mcp add supabase -e SUPABASE_ACCESS_TOKEN=$SUPABASE_PAT -- npx -y https://variantgate.com/sdk/variantgate-agent-0.15.0.tgz mcp-proxy --name supabase --look-only search_docs,list_organizations,get_organization,list_projects,get_project,get_cost,confirm_cost,list_tables,list_extensions,list_migrations,query_logs,get_advisors,get_project_url,get_publishable_keys,generate_typescript_types,list_edge_functions,get_edge_function,list_branches,list_notebooks,get_notebook -- npx -y @supabase/mcp-server-supabase@latest --read-only --project-ref=<project-ref>When the agent writes SQL
A person asked to approve execute_sql sees a statement, not what it will do. The database migrations guide runs a statement once in a transaction it rolls back, counts the rows it touches, and asks under a different action for a small write, a large one and a schema change, so a rule can let the first through and send the others to a person.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.