Resources / MCP Server Risk Directory / Supabase MCP Server
Is the Supabase MCP Server safe? Risks, permissions and safe setup
App developers using Cursor, Claude or similar clients to inspect schemas, write migrations and debug Supabase projects. Here is what an AI agent can do through it, its published vulnerabilities and how to set it up safely.
Baseline risk
- Capabilities: 40 of 40
- Read-plus-exfiltrate: +20
- Hidden instructions (publicly verified): none known
- Third-party publisher: no (official)
Before your own factors: version pinning, number of users and policy coverage. How we score
- Maker
- Supabase
- Publisher
- Official (published by the maker)
- Runs
- Local or remote
- Transport
- streamable-http
- Authentication
- OAuth via Supabase browser login on the hosted server (https://mcp.supabase.com/mcp); personal access token in an Authorization header for CI; local Supabase CLI endpoint (http://localhost:54321/mcp) and self-hosted handlers without OAuth 2.1
- Tools
- 40
- Built-in limits
- URL parameters: read_only=true (runs queries as a read-only Postgres user), project_ref=<ref> (project scoping, disables account tools), features=database,docs,... (feature groups); storage group off by default
- License
- Apache-2.0
- Source
- github.com/supabase/mcp
- Last verified
- 2026-11-23
What an agent can do through it
| Tool | Type | What it does |
|---|---|---|
| execute_sql | Write | Runs arbitrary SQL against the project database |
| apply_migration | Write | Applies a schema migration to the database |
| deploy_edge_function | Execute | Deploys an Edge Function (server-side code) to the project |
| create_edge_function_secret | Write | Sets a secret available to Edge Functions |
| get_publishable_keys | Read | Returns the project's publishable API keys |
| create_project | Infrastructure | Creates a new Supabase project (cost confirmed via confirm_cost) |
| delete_branch | Delete | Deletes a development branch |
| run_notebook | Execute | Runs a SQL notebook (hosted only) |
| query_logs | Read | Reads project logs for debugging |
Read-plus-exfiltrate: this server can both read sensitive data and send data out, so a single prompt injection in content the agent reads could move private data to an outside party without any other server involved.
Known vulnerabilities
No CVE or security advisory published for this server as of 2026-11-23. Most MCP risk comes from what the tools allow an injected agent to do, so the risks below still apply.
Main risks
Prompt injection stored in database rows drives the agent to leak other tables
LLM01:2025 Prompt Injection
Supabase's own docs give the example of a support ticket whose text tells the model to query a sensitive table and post the results as a reply. Because execute_sql can both read and write, the leaked data can land in a row an attacker can see.
Server runs with developer-level privileges above end-user RLS
ASI03 Identity and Privilege Abuse
Supabase states the MCP server may run at a higher privilege than the end user, so Row Level Security that protects the app does not limit what the agent can read. Connecting it to production gives an LLM broad access to every table.
Unattended schema and code changes
LLM06:2025 Excessive Agency
apply_migration, deploy_edge_function and branch tools let the agent change schema and ship server-side code without a human in the loop if tool approval is off. Edge Functions can make outbound network calls, which widens the exfiltration path.
Result wrapping is not a reliable defense
ASI01 Agent Goal Hijack
Supabase wraps SQL results with instructions telling the model not to follow embedded commands, but says this reduced risk and did not eliminate it. Teams should not treat the wrapper as a control that makes untrusted data safe.
How to set it up safely
- Connect to a development project or branch, not production, as Supabase recommends
- Append read_only=true so queries run as a read-only Postgres user
- Append project_ref=<ref> to scope to one project and remove account-level tools
- Use features=... to enable only needed groups (for example database,docs) and leave storage off
- Keep per-tool-call approval on in the MCP client for interactive work
- For unattended routines, allow only read-only, project-scoped tools and have the routine stop and report instead of writing
- Do not expose the server to customers; it runs with your developer permissions
- Log all queries and review notebook cells before run_notebook
How we score
Baseline scores use the method from our guide to scoring every MCP server on employee laptops. Score the servers in your own environment with the free MCP Server Risk Checklist.
1. What the server can do (capped at 40)
- Sends messages externally: 15
- Fetches arbitrary URLs: 15
- Writes to code repositories: 15
- Reads and writes databases: 15
- Writes or deletes local files: 10
- Automates a browser: 10
- Reads and writes SaaS data: 10
- Reads local files: 5
- Runs code or commands: 15 (added for this directory)
- Changes cloud infrastructure: 15 (added for this directory)
- Moves money or changes payments: 15 (added for this directory)
2. What we found
- Read-plus-exfiltrate: reads sensitive data and can also send data out: 20
- Hidden instructions in a tool description (publicly verified): 30, and always Critical
- Third-party: not published by the maker of the system it connects to: 10
3. Band
0–24 Low · 25–49 Medium · 50–74 High · 75–100 Critical.
This is a baseline. The full method also adds points for unpinned package versions, how many employees use the server and whether a policy covers it; those depend on your setup, so check them in your own environment.
How AccuroAI helps
The AccuroAI Endpoint Agent finds the MCP servers configured in AI clients on managed devices and lists the tools each local server exposes. Each server gets a risk level with its capabilities, and you can block a server once in the console to enforce the block on every device: Claude Code and Cursor refuse calls to it, and for other clients the agent stops the server process. Tool calls from coding agents can be graded by risk, then allowed, confirmed with the employee or blocked.
MCP security · MCP server inventory · How to red team an MCP server
Questions about the Supabase MCP Server
Is the Supabase MCP Server safe to use?
It can be, with the right setup. At baseline it scores 60 (High) in the AccuroAI method because an agent using it can reads and writes databases, changes cloud infrastructure, runs code or commands. Limit its scopes or tools, keep a person in the loop for write actions and pin the version you reviewed.
Does the Supabase MCP Server have known vulnerabilities?
We found no published CVE or security advisory for it as of 2026-11-23. That does not make it risk-free: most MCP risk comes from what the tools allow an injected agent to do, not from bugs in the server.
How do I restrict the Supabase MCP Server?
Use the controls the maker provides: URL parameters: read_only=true (runs queries as a read-only Postgres user), project_ref=<ref> (project scoping, disables account tools), features=database,docs,... (feature groups); storage group off by default. Then grant the narrowest token or account, approve the server centrally and block other copies of it.
Related servers
MongoDB MCP Server · PostgreSQL MCP Server (reference) · All servers
Sources
- https://github.com/supabase/mcp
- https://supabase.com/docs/guides/getting-started/mcp
- https://supabase.com/blog/mcp
- https://github.com/supabase/mcp/security/advisories
- https://services.nvd.nist.gov/rest/json/cves/2.0?keywordSearch=Supabase%20MCP
Facts were verified on 2026-11-23 against the server’s own repository and documentation and public vulnerability records. Servers change often: check the maker’s latest release notes before approving a new version. This page is general security guidance, not a guarantee about any product.