Can Supabase MCP security be controlled before an AI agent connects?
Yes, the server has built-in restriction options, and they should be set before any agent connects. A coding agent connected to the Supabase MCP server can run SQL through execute_sql, apply migrations through apply_migration and deploy functions through deploy_edge_function, so the reviewer's first question is which of those capabilities the team actually needs. The Supabase MCP server page documents three options for narrowing that reach: read_only=true, which runs all queries as a read-only Postgres user, project_ref, which scopes the server to one project and disables account tools, and features, which enables only named tool groups such as ?features=database,docs. The supplied facts do not tie these options to an enterprise edition, so the reviewer should confirm with Supabase whether they apply to every plan in use. The Branching tools are experimental and require a paid plan, which is a separate cost decision if the team wants them.
These controls narrow what the server can do, but they do not replace review inside the client. Supabase describes its server-side confirmations for cost, destructive SQL and notebooks as a guardrail, not a guarantee of human review, and says they may not catch every destructive SQL operation. Reviewers should also check connection URLs for skip_elicitations, which can turn off form confirmations for tools such as execute_sql and apply_migration. Keep manual approval enabled in each client, and confirm with Supabase whether any central admin enforcement, SSO or policy control applies to teams, since the supplied facts do not cover those points. Ask Supabase in writing how a team can require read_only and project_ref across developer machines, and how it can detect a connection that omits them.
Supabase MCP security controls by plan and option
This table compares each Supabase MCP restriction by what it does, how it is set, whether it needs a paid plan or a component outside the server, and how well the supplied facts confirm it. Read the status column first: items marked to be confirmed need a written answer from Supabase before you approve the connection. Client-side manual approval and central admin policy are the controls most often assumed to exist, so verify them in your own environment.
| Control | Available and how it is set | Paid or outside component needed | Status in supplied facts |
|---|---|---|---|
| Read-only mode | Set read_only=true in the server URL; queries run as a read-only Postgres user | None stated in the docs | Confirmed in Supabase docs; confirm it blocks all write paths you care about |
| Project scoping | Set project_ref to limit the server to one project; disables account tools | None stated in the docs | Confirmed in Supabase docs |
| Feature groups | Set features to name only the tool groups you need, for example database and docs | None stated in the docs | Confirmed in Supabase docs |
| Storage group | Disabled by default; enable only through the features setting | None stated in the docs | Confirmed in Supabase docs; confirm default behavior on the hosted server |
| Server-side confirmations | On by default for cost, destructive SQL and notebooks; not a guarantee of human review | None stated in the docs | Confirmed as a guardrail only; may not catch every destructive SQL operation |
| skip_elicitations parameter | Can switch off confirmations for named tools such as execute_sql and apply_migration; check connection URLs for it | None stated in the docs | Confirmed in Supabase docs; reviewers should audit URLs for this parameter |
| Branching tools | Experimental; available on a paid plan | Paid Supabase plan required | Confirmed as experimental and paid; confirm which plans and limits apply |
| Client-side manual approval | Configured in the MCP client such as Claude Code, Cursor or VS Code; not a Supabase server setting | Depends on the client product and its plan | Recommended by Supabase; confirm the setting in each client you approve |
| Central admin policy | No centrally enforced Supabase MCP policy stated in the supplied docs | To be confirmed with Supabase for organization-wide enforcement | Not confirmed; ask Supabase whether admins can enforce these settings across a team |
Which Supabase MCP tools carry the most risk
The tools that matter most are the ones that change state. The Supabase docs list execute_sql and apply_migration under database tools, and deploy_edge_function under Edge Functions. Unless the connection is restricted, a connected agent can run arbitrary SQL against a project, apply schema changes and deploy function code that runs with the project's own configuration. Those three tools are where a reviewer should start, because a single approved session can alter data and code, not just read them. Account management tools deserve the same attention: they can create projects and branches, which means cost and data footprint can grow without anyone editing the production database. Branching tools are described by Supabase as experimental and require a paid plan, so confirm whether your organization's plan exposes them before deciding how to treat them.
Supabase's own guidance also explains why read-only mode is not the end of the analysis. The vendor's September 2025 blog states that prompt injection remains the number one concern even in read-only mode. The risk is not only that the agent is told to write; it is that text the agent reads, such as a table row, a support ticket, a file or a web page returned by another tool, can contain instructions that the model follows. A read-only query can still expose sensitive rows to the model and to whatever channel the client sends them through. Treat read-only mode as a reduction of impact, not a guarantee of safe behavior. Ask your security team to test how the agent responds to planted instructions in data it can query, and confirm that manual approval in the client remains enabled.
Before approving the server, confirm which of these tools a given project connection exposes, who sets the URL parameters, and whether anyone has added skip_elicitations to a connection, since that parameter can turn off confirmations for execute_sql and apply_migration. Supabase describes its server-side confirmations as a guardrail rather than a guarantee of human review, and says they may not catch every destructive SQL operation. Record the decision for each tool group in your policy: allowed with approval, allowed read-only, or not allowed. The security best practices page linked from the Supabase MCP docs is the place to check the vendor's current recommendations before you finalize that record.
Where the Supabase MCP controls leave gaps
The Supabase MCP server offers several controls, but none of them is a complete boundary. The cards below cover the places where the vendor's own documentation says a guardrail may not catch an action, where a URL option can weaken a control, and where the controls do not reach at all. For each gap, the usual cover is a review of the connection URL, manual approval in the client, non-production data, or log collection.
Server-side confirmations are a guardrail
Supabase describes its server-side confirmations for cost, destructive SQL and notebooks as a guardrail, not a guarantee of human review. The docs say they do not replace manual approval in the MCP client and may not catch every destructive SQL operation. Treat the server as a second check, not the first. Confirm that manual approval is enforced in every client your staff use, and test a harmless destructive statement against a non-production project to see what the setup actually stops.
Supabase MCP docsSkip_elicitations disables confirmations
The skip_elicitations parameter can turn off form confirmations for named tools, including execute_sql and apply_migration. A developer who copies a connection URL from a blog post or an internal wiki may add this parameter without knowing its effect. Before approving a setup, review every connection URL and client configuration file for skip_elicitations, and remove it wherever the confirmation step is still needed. Keep the approved URL in a managed configuration rather than in individual developer files.
Prompt injection persists in read-only mode
Supabase's September 2025 blog states that prompt injection remains the top concern even when read_only=true is set. A read-only connection still lets an agent read sensitive rows and pass them into its context, and injected instructions in a table, a log line or a fetched document can steer what the agent does next. Read-only mode limits writes; it does not stop data from being read or exfiltrated. Pair it with non-production data and confirm which tables a connected agent can reach.
Branching tools are experimental and paid
Supabase's MCP docs describe the Branching tools as experimental and say they require a paid plan. Teams may enable branching for a workflow and assume it is covered by the same review as the stable database tools. Confirm with Supabase which plan your organization is on, whether branching is enabled in your project, and whether the feature is in your approved scope. If it is not approved, leave the branching feature group out of the features list.
Query logging is a recommendation
Supabase's blog recommends monitoring and logging all MCP queries, but the supplied facts do not document a built-in audit trail for MCP activity. Reviewers should not assume that every agent query is recorded in a form they can search later. Ask Supabase which logs capture MCP-originated SQL and tool calls, how long they are kept, and who can read them. Where the vendor log does not cover it, plan collection at the database or client level before the rollout.
Defense in depth postHow the restriction profile changes by team and data type
Production data is the case where a mistake costs the most, so it sets the strictest profile. Supabase's blog recommends using non-production data with the MCP server, which is the first control to decide before any tool is configured. The read_only=true option runs every query as a read-only Postgres user, which is the most direct protection for live data. Non-production projects can use a wider profile, but they still need the same connection review because the agent's behavior does not change with the data.
- Production: Connect with
read_only=trueand only the feature groups the team needs, and keep manual approval enabled in the client. - Non-production: Confirm the data is synthetic or masked before a broader profile is allowed.
- Gap: Read-only mode does not remove prompt injection risk, which Supabase calls its number one concern even in read-only mode.
- Gap: Server-side confirmations are a guardrail, not a guarantee of human review, so they cannot be the only check on production.
- Check: Ask whether any production connection URL includes
skip_elicitations.
For each environment, confirm which project a connection targets before the agent starts working.
The project_ref option scopes the server to one project and disables account tools. That makes it the main control for a team that works on a single application. A team that touches several projects has to decide whether to run one scoped connection per project or accept a broader connection that reaches more data in one session. Account tools, which can create projects and branches, are only available when no project is pinned, so a multi-project setup changes what the agent can do at the account level.
- Single project: Pin
project_refso account tools are disabled and the agent cannot reach other projects. - Several projects: Use a separate scoped connection for each project rather than one shared account-level connection.
- Gap: Scoping limits reach, but it does not stop the agent from misusing data inside the project it can see.
- Gap: Account-level tools carry cost and creation risk that no per-project setting fully addresses.
- Check: Confirm which project reference each developer's client configuration contains.
Review the project list each team member can reach, since access to one connection can expose more projects than intended.
A team that needs schema changes uses tools that alter the database, while a team that only queries needs very little beyond reads. The Supabase docs list execute_sql and apply_migration in the database group and deploy_edge_function in the Edge Functions group. Those are the tools that change state, so the feature list is where the difference is made. Read-only mode blocks writes for the connection, which is the stronger control for query-only work, but it also prevents migrations from running through the same connection.
- Query-only teams: Use
read_only=truewithfeatures=database,docsor a similarly narrow group list. - Schema teams: Enable the database group only for the connection that needs it, and keep migration work in a separate, reviewed path where possible.
- Edge Functions: Leave the Edge Functions group off unless the team deploys functions through the agent.
- Gap: Branching tools are experimental and require a paid plan, so confirm plan status before relying on them.
- Check: Confirm that
apply_migrationis only available on connections that the team has approved for schema work.
Write down which tool groups each role uses so the connection settings match that list.
Regulated data needs the narrowest profile and the clearest evidence. The Supabase docs and blog give the controls that limit reach and writes, along with the advice to use non-production data and to monitor and log all MCP queries. None of the supplied material states how Supabase's MCP server maps to HIPAA or GDPR obligations, so those mappings are a gap that the reviewer must confirm directly with Supabase and their own compliance team. The safest default for regulated projects is to avoid connecting agents to live regulated data at all.
- Data minimization: Use masked or synthetic data in any project the agent can reach.
- Narrow profile: Combine
read_only=true, a pinnedproject_ref, and only the required feature groups. - Gap: Supabase has stated there has been no reported incident of a customer data leak via MCP, but that is not a compliance statement.
- Gap: Confirm with Supabase what the MCP server logs, where that data is kept, and how long it is retained.
- Check: Ask your compliance lead whether connecting an agent to any regulated dataset needs a separate review before it starts.
Do not treat the absence of reported incidents as evidence that a regulated workload is cleared for agent access.
Order of work before approving Supabase MCP for staff
This sequence fixes what data the agent may touch, narrows the server's scope and tools, closes off confirmation bypasses, and records one approved configuration that reviewers can test and audit.
Fix the allowed data to non-production
The security lead and the project owner agree in writing which Supabase projects and data sets the agent may reach. Supabase's blog recommends using non-production data, so the default answer is a development or staging project with synthetic or masked records, not production customer data. Confirm with the owner that no production project credentials or connection strings are reachable from the developer machines that will run the client. The step is done when the approved project list is signed off and each named project is confirmed to hold no production personal data.
Set project scope and read-only mode
The engineering lead configures the server with the project_ref option so it is limited to one approved project, which also disables the account tools. Then the lead enables read_only=true so queries run as a read-only Postgres user. Supabase documents both options on its MCP server page, and the reviewer should check the connection URL in each client config for these keys. The step is done when a test session confirms the agent cannot list other projects and an attempted write through execute_sql is rejected.
Choose the feature groups
The engineering lead selects only the tool groups the use case needs, using the features option such as ?features=database,docs. The database group includes execute_sql and apply_migration, and the Edge Functions group includes deploy_edge_function, so any group left out removes those tools from the session. Storage is disabled by default and should stay off unless a documented need exists. Branching tools are experimental and require a paid plan, so confirm the plan before enabling them. The step is done when the approved feature list is written into the configuration and a tool listing from the client matches it exactly.
Check connection URLs for skip_elicitations
The security reviewer searches every connection URL, config file and shared script for the skip_elicitations parameter. Supabase documents that it can turn off form confirmations for tools such as create_project, create_branch, execute_sql and apply_migration. Any hit is removed or the configuration is rejected, and the reviewer records the check in the approval file. Supabase also states that its server-side confirmations are a guardrail, not a guarantee of human review, so this check protects the confirmations that remain. The step is done when a repository-wide search returns no matches in approved configurations.
Keep manual approval on in each client
Each team member, or the platform team on managed machines, confirms that the MCP client requires manual approval before tool calls run. Supabase states that its server-side confirmations do not replace manual approval in the MCP client and may not catch every destructive SQL operation. The reviewer tests this by asking the agent to run a harmless write and confirming the client prompts for approval before execution. The step is done when each approved client shows the prompt in the test and the result is recorded per client version.
Decide on logging and monitoring
The platform and security teams decide how MCP queries will be captured and who reviews them. Supabase's blog recommends monitoring and logging all MCP queries, so the team confirms which records the client, the Supabase project and the organization's own log pipeline produce, and where they are retained. Ask the vendor and the client provider which events are recorded and whether they include the SQL text, the tool name and the user identity. The step is done when a test query appears in the chosen log store with the expected fields, and the retention owner is named.
Test prompt injection on the chosen setup
The security team runs prompt injection tests against the exact configuration that will be approved, not against a default install. Supabase's blog states that prompt injection remains the top concern even in read-only mode, so the tests include instructions embedded in data the agent reads, such as table rows, comments and documentation pages, that try to trigger execute_sql or deploy_edge_function. Record each attempt, the result and any tool call that ran. The step is done when every failed attempt is documented and any successful one has a fix, such as a tighter feature group, and a retest.
Record the approved configuration
The owner writes the approved configuration into a versioned record that lists the project reference, read-only setting, feature groups, client versions, confirmation and approval settings, logging destination and the prompt injection test results. The record names who approved it and when it must be reviewed again after any change to the server, the client or the feature list. The step is done when a second reviewer can rebuild the same configuration from the record and confirm it matches the live client settings.
Where each restriction applies between the client and the database
The path starts at the AI client, where manual approval is enabled, and passes through the Supabase MCP server, where the connection URL options and server-side confirmations apply. The key hand-off is the server, which decides whether a tool call runs as a read-only Postgres user and which tool groups are exposed. Reviewers should check the connection URL for read_only, project_ref, features and especially skip_elicitations, because the server-side confirmations are a guardrail, not a guarantee of human review.
The four restriction points between an AI client and a Supabase project.
What a security reviewer asks to see for Supabase MCP
This table lists the evidence a reviewer should request before approving a Supabase MCP connection, with the place each item comes from. Use it as a checklist: a setting that cannot be shown in the client config, the Supabase docs or the organization's own logs should be treated as unconfirmed. The main takeaway is that the connection URL and its options are the single most important artifact, because options such as read_only, project_ref and features are set there.
| What to ask for | Where it comes from | What a good answer looks like |
|---|---|---|
| Approved connection URL and options | Client MCP config file in each developer's project | The exact URL on the hosted server, with any query options named and documented |
| Enabled feature groups | Features option in the connection URL | Only the groups the team needs, such as database and docs, with storage left off |
| Read-only status | read_only option in the connection URL | read_only=true set, with queries running as a read-only Postgres user |
| Project scope | project_ref option in the connection URL | One named project, with account tools disabled as a result |
| Skipped confirmations | skip_elicitations parameter in the connection URL | Parameter absent, so form confirmations for execute_sql and apply_migration stay on |
| Client approval settings | MCP client admin or project settings, such as manual tool approval | Manual approval enabled for write-capable tools in every client in use |
| Prompt injection test results | Organization's own test report against a non-production project | Documented attempts with results, retest dates and owners for any finding |
| Log source for MCP queries | Organization's own database and monitoring logs, plus Supabase's documented guidance | Queries attributed to the MCP connection and retained for the organization's review period |
Questions reviewers ask before approving Supabase MCP
Is the Supabase MCP server hosted by Supabase or self-hosted?
Supabase documents a hosted remote server at which MCP clients such as Claude Code, Cursor and VS Code connect to over the same URL pattern. Supabase also publishes its MCP implementation as open source for self-hosting, according to its September 16, 2025 blog post, but the current docs describe the hosted server, so treat the hosted endpoint as the current default. Before approval, confirm with Supabase which deployment model your team will use, where requests are processed, and how each option handles authentication and logging. The hosted URL is written as ` in the docs, and it is the first thing your reviewers should confirm in the client configuration.
Does read-only mode stop prompt injection in Supabase MCP?
No. Supabase's own guidance says prompt injection remains the number one concern even when the server runs in read-only mode, so read_only=true limits what an injected instruction can change but does not stop the injection itself. Read-only mode executes queries as a read-only Postgres user, which still means a compromised agent can read whatever that role can see, including sensitive rows. Pair it with a non-production dataset, project scoping through project_ref, a limited set of feature groups, and manual approval in the MCP client. Ask your security team to test the agent with hostile content in files and query results before go-live.
What drives the cost of running Supabase MCP for a team?
The MCP server itself is documented as a connection method for projects, and the cost questions that matter sit in the Supabase plan and project usage. The Supabase MCP docs state that the Branching tools are experimental and require a paid plan, so any team that wants branch-based workflows must budget for that plan tier. Other cost drivers are the number of projects in scope, the database and Edge Function usage those projects generate when an agent runs queries or deploys functions, and the seats or accounts the team needs. Ask Supabase for current plan pricing, which features each tier includes, and whether the team's agent usage affects project compute. Your procurement reviewers should not assume a figure until they have the vendor's current price sheet in hand.
What can our own team configure without outside help?
A competent platform or security team can handle most of the configuration themselves, because the controls are documented options on the connection. These include setting read_only=true, scoping the server to one project with project_ref, enabling only the tool groups the team needs with features, keeping storage disabled since it is off by default, and turning on manual approval in each client. Your team should also search connection URLs and client configs for skip_elicitations, since it can turn off confirmations for tools such as execute_sql and apply_migration. The team still needs to decide which non-production data the agent may touch and set up logging of MCP queries, which Supabase recommends.
When should we bring in an outside team for a Supabase MCP scoping review?
Bring in outside help when the agent will reach production data, when several teams share projects, or when your auditors will ask for evidence you do not yet have. DeployOpen's AI agent rollout security review tests the setup, including prompt injection, tool and file permissions, data exposure, credential handling, and SSO and admin settings, and delivers a findings report with fixes and a retest. That work is fixed-scope, so the written scope should name the projects, client tools, and feature groups under review, and the deliverables and timeline are agreed before work starts. DeployOpen does not issue audit reports or attestations, so any formal compliance assessment still goes to an independent auditor.
Does Supabase MCP support SSO for our workforce?
The supplied Supabase documentation does not state how SSO applies to the MCP server, so do not assume that your identity provider controls access. Confirm with Supabase whether team members sign in to the MCP server with their Supabase account, whether any enterprise sign-in option exists on your plan, and how access is removed when someone leaves. Also confirm how the hosted server handles authentication and whether it supports personal access tokens or manual OAuth apps for automated runs such as CI. Ask for the answer in writing, because your access review depends on which identity system actually controls the connection.
Did Supabase report any data leak through its MCP server?
Supabase's CISO blog post dated September 16, 2025 states that there has been no reported incident of a Supabase customer suffering a data leak via MCP. That statement is a vendor position at one date, not an independent assurance, and it does not cover prompt injection attempts that never caused a leak. Ask Supabase for any incidents or advisories published since then, and check the vendor's security pages and your own logs for queries you did not expect. Your reviewers should record the date of the statement in the approval file so it is clear what was known and when.
Supabase MCP security sources to check against
Before approving the Supabase MCP server, a reviewer should read two vendor sources side by side: the Supabase MCP Server docs page and the Defense in Depth for MCP Servers blog post. The docs page is the current reference for the hosted server at mcp.supabase.com, and it is where the tool list, the read_only and project_ref options, the features groups and the prompt injection warning are described. Treat the docs as the controlling source for any setting you plan to rely on, and record the date you read it, because the page carries its own update date that your review should cite.
The blog post is older and describes a different deployment model. Its September 16, 2025 date matters because it says Supabase had never offered a hosted MCP server and that the implementation was open source for self-hosting. The docs now describe a hosted endpoint, so a reviewer should not carry the blog's deployment assumptions into the approval record. The blog is still useful for its guidance on non-production data, manual approval in the client, feature-group limits and logging of MCP queries, and for its statement that prompt injection stays the top concern even in read-only mode. Ask the vendor which deployment model your evaluation covers, and document that answer next to the approval.
Read the sources in that order, then write down three things: which options your team will set on every connection URL, which tools you will leave enabled, and who confirms that the same settings still hold after each docs update. Any gap between what the docs say and what your client actually sends should be found in a test connection, not assumed from either page.
How DeployOpen tests and scopes an AI agent setup
DeployOpen plans, tests and hardens AI agent setups inside the client's own environment, including the controls that decide what a Supabase MCP connection can read and change. Each engagement starts with a written scope, then moves through testing, fixes, documentation and handover.
How we scope
- Agree in writing which Supabase projects, feature groups and client tools fall inside the review
- Map which tools (SQL, migrations, Edge Functions, storage, branching) each planned connection exposes
- Confirm whether read-only mode, project scoping and confirmation settings are in use, and what staff are allowed to connect
How we build
- Set up a constrained reference connection with read-only mode, a single project scope and only the needed feature groups
- Check connection URLs for skip_elicitations and other settings that weaken confirmations before anyone uses them
- Run prompt injection and destructive SQL tests against non-production data to see what the agent actually does
How we hand over
- Deliver a findings report with severity, evidence, affected tools and recommended fixes for each issue
- Document the approved connection settings, the review checklist and the logging and monitoring steps for your team
- Retest the agreed fixes and record the results so your security reviewers can verify them
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement
- Re-review the setup when Supabase changes its MCP tools, feature groups or connection options
- Prepare evidence for your AI security questionnaire and internal review, without issuing audit reports or certifications

