Supabase MCP Server 0.20.0 defaults to account-wide write access. Official install examples omit project_ref and read_only, and the vendor does not treat client-sent read_only as a security control.
Published
The official Supabase MCP server is a first-party Model Context Protocol server that lets an AI assistant work on Supabase projects: run SQL, apply migrations, manage projects and branches, deploy Edge Functions, read logs, and more. Publisher: Supabase. The public repository is supabase/mcp, licensed Apache-2.0. The implementation is TypeScript. The npm package of interest is @supabase/mcp-server-supabase, not the unscoped typo-squat name mcp-server-supabase.
This review pins the latest stable mcp-server-supabase release at research time, 0.20.0.
What we pinned
- Git tag mcp-server-supabase-v0.20.0, a lightweight tag pointing at commit
cc2ea9c2dd9a4c94114d6a72d407e84b9b4283e3(chore: release main (#586)). The commit date is 26 November 2026, 19:57:44 Asia/Hong_Kong (13:57:44 +02:00). The GitHub Release of the same name was published 19:57:59 Asia/Hong_Kong (11:57:59 UTC). The tag itself is not annotated and carries no tag signature. The pointed-to commit is a GitHub-signed merge; after importing GitHub's web-flow public keys,git verify-commitreported a good signature fromGitHub <noreply@github.com>with fingerprint9684 79A1 AFF9 27E3 7D1A 566B B569 0EEE BB95 2194. That confirms GitHub's merge signature, not a maintainer-signed annotated tag. - npm @supabase/mcp-server-supabase@0.20.0, published 26 November 2026, 20:01:52 Asia/Hong_Kong (12:01:52.746 UTC), about four minutes after the GitHub Release. The registry
latestdist-tag is0.20.0. The tarball SHA-1 is4c2b93eca716a37cca01e3c740c6508654e3e3de, matching the registrydist.shasum. Integrity:sha512-YnqSDNc6hMPqg5+7Dul+U52s/ZR3kbiP1oRNKFDymFE6AD9CEl15174PlVCsrlYHK5QrEvMyU+SmRhWXs9wZag==. The registry also lists npm publish and SLSA provenance attestations. The tarball has nogitHeadfield; it ships compileddist/files, not the TypeScript sources in the git tag. Key default strings and CLI flags in the compiled CLI match the pinned source. We did not rebuilddist/from TypeScript. - The same release commit also tags
mcp-utils-v0.11.1. The server package depends on@supabase/mcp-utils^0.11.1.
At research time on the evening of 26 November 2026, Asia/Hong_Kong, supabase/mcp showed 3,023 stars and 444 forks. The repo is not archived. It was created 21 December 2024, 07:52:42 Asia/Hong_Kong. Default-branch main was three commits ahead of the pin, all later test or CI changes. Those commits are out of scope. We pinned 0.20.0, not HEAD.
Official docs also describe a hosted remote endpoint at https://mcp.supabase.com/mcp and a local Supabase CLI endpoint at http://localhost:54321/mcp. We did not call either service as a logged-in user, so we cannot say which version the hosted service or the CLI path run.
Scope
This is a static review of official evidence: the pinned git tag and commit, the official npm tarball extracted as files and not executed, the official docs at supabase.com/docs/guides/ai-tools/mcp, the personal access token page, and published advisory metadata.
We did not run the MCP server, the CLI, npx, Docker, or any SQL. We did not authenticate to Supabase, send traffic to mcp.supabase.com as a logged-in user, or use a Management API token. We did not install or fetch the unscoped typo-squat package mcp-server-supabase. We read its public advisory and registry metadata only.
No malware was found in the first-party TypeScript we opened at cc2ea9c2 or in the official @supabase/mcp-server-supabase@0.20.0 tarball files we inspected. That is a statement about the scope we opened, not a clean bill of health and not a runtime confirmation.
Verdict
The official 0.20.0 server is a first-party Management API client with a wide default tool surface. If you follow the documented client examples and connect to https://mcp.supabase.com/mcp with no query parameters, you do not get project_ref, read_only, or a features filter. In the pinned source, those defaults expand to account-wide access and to write-capable tools: create_project, execute_sql, apply_migration, deploy_edge_function, branch merge and reset, and notebooks. Storage is the only feature group left off by default.
read_only and project_ref are real restrictions when the server is started with them. They are not magic flags on the model. The project's SECURITY.md says an MCP server acts with the access token it is given, the model is not a trust boundary, and a parameter such as read_only that the client sends “can always be omitted or set to false by the client, so it is not a security control.” The same file says execute_sql running arbitrary SQL is by design: it is the same class of access as the dashboard SQL editor.
Destructive SQL confirmation, added in earlier releases and tightened in 0.20.0, is a parser-based elicitation guardrail. Official docs call it a guardrail, not a security guarantee. In this source, the HTTP path enables it only for clients that declare form elicitation, and the default stdio CLI never turns elicitation on at all. 0.20.0 fixed several UPDATE-without-WHERE false negatives and made a declined or cancelled confirmation final. It did not turn the classifier into a SQL security boundary, and it did not “fix SQL injection.”
The typo-squat npm name mcp-server-supabase is a different package with a critical malware advisory. The official package is scoped: @supabase/mcp-server-supabase.
What the server actually is
There are at least three install paths, and they are not the same deployment.
The path official docs lead with is the hosted server at https://mcp.supabase.com/mcp. Client examples for Claude Code, Codex, Cursor, and others use that URL, then complete a browser OAuth flow against the operator's Supabase organization. Docs say you do not need a personal access token for that path: the hosted server uses dynamic client registration. We did not run that flow, and we cannot see which package version the hosted endpoint serves.
A second path is the Supabase CLI / Studio MCP at http://localhost:54321/mcp. The repository README says this environment currently offers a limited subset of tools and no OAuth 2.1. Official docs also say notebooks are not available on the MCP server for local or self-hosted Studio, including the Supabase CLI. That is a different deployment from the npm CLI in this package.
The third path is this npm package. server.json and the compiled bin advertise stdio via npx, with SUPABASE_ACCESS_TOKEN required. The CLI in packages/mcp-server-supabase/src/cli.ts reads that token from --access-token or the environment, builds a Management API platform against https://api.supabase.com by default, and serves stdio. --http instead binds a local Streamable HTTP entry on 127.0.0.1, default port 3111, at /mcp. That HTTP entry requires a Bearer token, validates the Host header against localhost names, and parses project_ref, read_only, features, skip_elicitations, and experimental_apps from the request URL. --read-only defaults to false. --project-ref is optional. The stdio path never configures elicitation.
The package also exports createSupabaseMcpHandler() so an operator can embed the server in their own HTTP service. SECURITY.md is explicit: that handler library does not provide authentication, network binding, or Origin/Host validation. Those are left to the deployer. A long-lived handler with a shared token is described in the README as fine when the platform is meant to be shared, “a service-account token for example.”
In every path, the permission boundary that the maintainers will treat as real is the token (or the OAuth grant) plus the server's own startup configuration. Tool arguments cannot, in this source, flip readOnly or projectId off if the server was started with them. A client that connects to a URL without those query parameters, or a stdio process started without the flags, never applied them.
Defaults: docs examples versus the code that expands them
Official docs tell you to read the security best practices before running the server. Those practices are a section of the same page, not a separate document. They recommend project scoping, read-only mode for unattended routines, restricted feature groups, and not handing the server to customers. The setup examples above that warning do not apply those restrictions.
The documented configuration panel can add query parameters: ?project_ref=<id> to disable account tools and inject a project, ?read_only=true to run SQL as a read-only Postgres user, ?features=database,docs to enable only named groups, and, on hosted connections, ?skip_elicitations= to skip named form confirmations. The examples operators are told to paste, including the Claude Code command claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp" and the generic JSON block in both the docs and the repo README, use the bare hosted URL.
The CI section is a sharper mismatch. The prose says: before connecting a production project, scope the server, enable read-only mode, restrict feature groups, and review the security risks. The JSON example that follows sets only ?project_ref=${SUPABASE_PROJECT_REF}. It does not set read_only=true or features. The manual OAuth-app path goes further: “Grant write access to all of the available scopes. In the future, the MCP server will support more fine-grained scopes, but for now all scopes are required.”
In the pinned source, missing configuration expands like this:
DEFAULT_FEATURESinpackages/mcp-server-supabase/src/server.tsisdocs,account,database,debugging,development,functions,branching,feedback, andnotebooks.storageis the only current group left out. That matches the docs sentence that groups the connection supports are enabled by default, except Storage.- If
projectIdis unset and theaccountgroup is enabled, account tools are registered. Those tools can list organizations and projects, create a project, and pause or restore a project. readOnlydefaults to false on the CLI (--read-onlyis a boolean withdefault: false) and on the local HTTP query schema (read_onlyis a string-bool defaulting to false).skip_elicitationsis optional and empty by default on the HTTP path. The stdio CLI has no such flag, because it does not pass anelicitationoption intocreateSupabaseMcpServer. With no elicitation config,enabledConfirmationToolsis an empty list.
When readOnly is on, the server hides tools in writeToolSet (any tool whose readOnlyHint is false and whose readOnlyBehavior is not adapt). execute_sql is the adapt case: it stays available and sends read_only: true to POST /v1/projects/{ref}/database/query. apply_migration is blocked with “Cannot apply migration in read-only mode.” Account-level create_project is also blocked in read-only mode.
Those behaviors are enforced only if the server was actually started that way.
Tools and permission surface
Docs and the source agree on the main groups. At this commit the registered tools are:
- Database (on by default):
list_tables,list_extensions,list_migrations,apply_migration,execute_sql. - Debugging (on by default):
get_issues,query_logs,get_advisors, and a hiddenget_logskept callable when the platform also offersquery_logs.get_issuesis new in 0.20.0. The official “Available tools” list on the docs page still showsquery_logsandget_advisorsonly. The PAT permission table also omitsget_issues. - Development (on by default):
get_project_url,get_publishable_keys,generate_typescript_types. The keys tool callsGET /v1/projects/{ref}/api-keysand then filters to legacyanonortype === 'publishable'. It is written to avoid returningservice_roleor other secret keys. We did not runtime-test that filter. - Edge Functions (on by default):
list_edge_functions,get_edge_function,deploy_edge_function.create_edge_function_secretis added only when secret-collection elicitation is configured, the functions group is on, and the connection is not read-only. The value is collected in the dashboard through a URL elicitation, not as a tool argument. - Account (on by default unless
project_refis set):list_projects,get_project,create_project,pause_project,restore_project,list_organizations,get_organization, plus legacyget_cost/confirm_costhelpers.confirm_costjust hashes the quoted cost; SECURITY.md says predictability of that id is not treated as a broken security boundary. - Docs (on by default):
search_docs, againsthttps://supabase.com/docs/api/graphqlby default. - Branching (on by default; docs say it needs a paid plan):
create_branch,list_branches,delete_branch,merge_branch,reset_branch,rebase_branch. - Feedback (on by default; hidden in read-only mode):
submit_feedback,delete_feedback. - Storage (off by default):
list_storage_buckets,get_storage_config,update_storage_config. - Notebooks (on by default in this package):
list_notebooks,get_notebook,create_notebook,run_notebook,delete_notebook. Official docs say this group is available only on hosted connections, not on local or self-hosted Studio, including the Supabase CLI. The npm API platform in this repo still implements notebook operations against the Management API. Docs also warn that enabling Notebooks lets the agent run cells even when the Database and Debugging groups are disabled, because the notebooks group owns those operations.
execute_sql is raw SQL. The tool description says to use apply_migration for DDL, but the handler does not enforce that split. SECURITY.md says reporting that the tool can run any statement, including writes, is not a vulnerability.
One official permission detail is easy to misread. The PAT table lists execute_sql as requiring Database (Read) only, while apply_migration requires Migrations (Read-write). We did not test whether a token granted only Database Read can execute writing SQL through execute_sql when the server's read_only flag is off. Treat the table as documentation, not as a runtime result. Official PAT docs also still allow a full-access “Legacy” token that “carries every permission on every organization and project you belong to, including ones you create or join later.”
Confirmation is a guardrail, and 0.20.0 did not change that
Elicitation is how this server pauses a tool call to ask the client for a form or a URL. Official docs say server elicitation is separate from the MCP client's own tool-call approval, does not replace it, and is not a guarantee of human review. Some clients can answer elicitations automatically.
Form confirmations exist for create_project, create_branch, execute_sql, apply_migration, run_notebook, and delete_notebook. URL elicitation exists for create_edge_function_secret. Confirmations are bound to signed requestState with an HMAC key, a principal, and a TTL that defaults to 600 seconds for forms (120 seconds for secret collection on the local HTTP entry).
SQL confirmation runs only when all of these are true: elicitation is configured, the tool is in enabledTools, the client declares form capability, the connection is not read-only (for execute_sql; apply_migration is already blocked in read-only mode), and the local classifier isDestructiveSql() returns true — or, after 0.20.0, the server already issued a confirmation for that exact SQL and is re-asking. If elicitation is not configured, or the client is not form-capable, execute_sql and apply_migration record a bypass (not_configured or capability_missing) and run the statement. Official docs say the same: if SQL elicitation is unavailable, unsupported, or skipped with skip_elicitations, SQL follows the existing execution path. Read-only restrictions and token permissions still apply.
The default stdio CLI takes the bypass path every time, because cli.ts never passes elicitation. The local HTTP entry, and presumably a similarly wired hosted server, turns confirmation on for every tool in CURRENT_ELICITATION_TOOLS except those listed in skip_elicitations. We did not inspect the hosted service.
The classifier itself is a purpose-built SQL lexer and regex policy in packages/mcp-server-supabase/src/tools/destructive-sql.ts, adapted from Supabase Studio. At this commit it treats as destructive: DROP, DELETE, TRUNCATE, ALTER TABLE ... DROP COLUMN, some EXECUTE / format / concat forms that start a destructive statement, and UPDATE without a WHERE. Planner-only EXPLAIN is not treated as destructive; EXPLAIN ANALYZE of a destructive body is. Inserts, UPDATE ... WHERE 1=1, most other ALTER forms, GRANT, CREATE, and SELECT — including a SELECT that calls a function that writes — are not in that destructive set. The execute_sql and apply_migration descriptions also warn models not to use COPY ... FROM, COPY ... FROM PROGRAM, pg_read_file, pg_ls_dir, or lo_import to touch the database host; that warning is prose in the tool description, not an execution block in this package.
0.20.0 tightened the UPDATE-without-WHERE parser in three documented ways: comments before a dollar-quoted value, inheritance syntax such as ONLY / table *, and column names that end in where. A fourth fix, “keep a declined or cancelled SQL confirmation final,” changes the order of operations in checkDestructiveSqlConfirmation: a decline or cancel is honored before the classifier runs, so a later or failed classification cannot hide the user's answer, and once a confirmation has been issued for that exact SQL, only an accepted resend runs it. Those are real bug fixes to the guardrail. They are not a claim that destructive SQL is now reliably detected, and they are not a SQL-injection fix.
Cost confirmation is also a guardrail. create_project skips the prompt when the quoted cost is $0, which is documented and was extended in 0.20.0 to clients without forms. create_branch still asks at the standard rate before allowances. If form confirmation is off, the legacy get_cost → confirm_cost → confirm_cost_id flow is used, except that a $0 project is created with no confirmation id. SECURITY.md calls cost confirmation an awareness aid.
Notebook confirmation is stricter than raw SQL in one way: official tool text and the server comments say that when confirmation is enabled, clients without form support cannot run cells that need confirmation. run_notebook also documents that a SELECT calling a writing function can still run without a prompt and may fail at the database. Docs recommend reviewing cells before an agent runs them and keeping notebook confirmations in place.
skip_elicitations is an operator opt-out, not a default. Docs show values such as execute_sql,apply_migration and create_project,create_branch. The local HTTP entry rejects repeated or bracketed forms of that parameter. Skipping a form does not, in the docs, approve the action or avoid charges.
Credentials, data scope, and prompt injection
Hosted OAuth, in the official docs, grants the MCP client access to a chosen organization under the operator's developer permissions. A PAT is the documented alternative for CI, passed as Authorization: Bearer. Official token docs recommend scoping the token to one project and granting only the permissions the enabled tools need. They also document unscopeable “Legacy” full-access tokens.
The npm stdio server will not start without a PAT. That token is sent as a bearer credential to the Management API (https://api.supabase.com unless --api-url points elsewhere). --api-url is an operator startup flag, not a tool argument. A custom API URL on the HTTP path also requires an explicit --secret-url-template, which the code checks for {ref} and {name} placeholders.
get_publishable_keys is designed to return client-safe keys only. There is no tool in this package whose job is to mint or return a service_role key. Create-project generates a 16-character database password when the caller does not supply one, sends it to POST /v1/projects, and exposes a projectSchema result that does not include that password. The model-facing create_project tool in this source does not even accept db_pass as a parameter.
Prompt injection from database and ticket-like user content is documented by Supabase, not invented here. The official security section walks through a support-ticket example in which injected text tries to make a client run select * from <sensitive table>. The recommended mitigations are: keep manual tool-call approval, do not pre-approve writes for unattended routines, wrap SQL results, and still review output. The source does wrap some results in a random <untrusted-data-…> boundary: execute_sql, get_logs, query_logs, and notebook cell content and run results. SECURITY.md says this lowers the chance of prompt injection but cannot remove it, and that a general prompt-injection report is not a vulnerability unless it shows a realistic end-to-end gain of a privilege the attacker did not already have. Tool descriptions are treated as maintainer-controlled, not attacker-controlled input.
Feedback tools, when enabled, POST to a Supabase-hosted project (*.supabase.co) using a hardcoded publishable key copied from the CLI, and they may attach a user id read from the Management API X-Gotrue-Id header. That is a documented network destination for an optional, default-on feature group, not telemetry of SQL bodies. The optional observer hook in createSupabaseMcpServer does not run unless the embedder passes one; the README says the server does not automatically forward request or response payloads to that observer.
Network, files, and commands
The first-party server is a client of Supabase APIs. Default destinations in this source are https://api.supabase.com, https://supabase.com/docs/api/graphql, https://supabase.com/dashboard for user-facing links, and the feedback project mentioned above. With a custom --api-url, the Management API traffic follows that origin. We did not execute those calls.
The local HTTP entry binds 127.0.0.1 only and rejects unexpected Host headers. The embeddable handler does not do that work for you.
This package does not look like a general host-shell or host-filesystem MCP server. The risky file and command surface is the SQL and Edge Function tools themselves: arbitrary SQL against the project database, including facilities Postgres may allow, and deploy_edge_function, which can upload function source. The tool descriptions try to talk models out of using SQL to read server files or run programs on the database host. That is guidance, not an in-process sandbox.
Malware check and the typo-squat name
In the pinned first-party tree and in the official 0.20.0 npm tarball we unpacked, we did not find install or postinstall hooks, and we did not find an obvious malicious dropper in the compiled CLI or library files we opened. The official package name is @supabase/mcp-server-supabase. GitHub's advisory API returned no advisories affecting that scoped package.
The unscoped npm name mcp-server-supabase is a different package. GitHub advisory GHSA-m633-5vq7-98qx, published 20 August 2026, 22:25:56 Asia/Hong_Kong, is titled “Malware in mcp-server-supabase,” severity critical, ecosystem npm, vulnerable version range >= 0, with no patched version. The advisory says any computer that has that package installed or running should be considered fully compromised, and that secrets should be rotated from a different computer. The registry currently publishes it as a security holding package, version 0.0.1-security. We did not download or install it. Do not use that name, and do not treat a holding package as the official server.
Static review cannot prove the absence of malware, cannot see what a future install will fetch, and cannot speak for the hosted service.
Who this is for, and who should not use the default
This server is a developer tool for people who already have dashboard-level access to a Supabase organization and want an assistant to operate on it. Official docs say not to give it to customers or end users, because it runs under developer permissions.
The default examples are a poor fit for production data, unattended agents, or any client that auto-approves tool calls or elicitations. If you need an assistant to look at production, the official recommendations — and this source — point at a much tighter shape: one project, read-only, restricted feature groups, a narrowly scoped token, and confirmation left on. Branching a development copy, rather than pointing the server at production, is also in the official advice.
If you only wanted docs search, you can enable the docs group alone. If you only wanted read queries on one project, project_ref plus read_only=true plus a tight features list is the configuration the code actually implements.
How a careful operator would pin and restrict it
We did not run these steps. They follow from the official docs and from the pinned source.
Pin the npm package by version, @supabase/mcp-server-supabase@0.20.0, if you run it locally. Do not install the unscoped name. For the hosted URL, understand that you cannot see the exact server build from this repo review.
Prefer ?project_ref=<id>&read_only=true on the hosted or local HTTP URL, or --project-ref and --read-only on the stdio CLI. Add features= so you only enable the groups you need. Leave skip_elicitations unset.
Use a project-scoped PAT with only the permissions the remaining tools need, not a Legacy full-access token, and not a service_role database key. Keep the MCP client's manual tool-call approval enabled. Treat elicitations as an extra prompt, not as proof that a human agreed.
Do not assume the hosted endpoint is the same commit as this tag. Do not assume the CLI at http://localhost:54321/mcp exposes the same tools as this npm package.
Close
This was a static review of supabase/mcp at cc2ea9c2dd9a4c94114d6a72d407e84b9b4283e3 and of the official npm package @supabase/mcp-server-supabase@0.20.0. No malware was found in that scope. Official install examples still omit project_ref and read_only while the default feature set includes account-wide write tools and raw SQL. Confirmation in 0.20.0 is a tighter parser guardrail, not a security boundary, and the stdio CLI never enables it. We did not run the server or use a Supabase credential. This is not a clean bill of health.
More skill reviews
- Claude Security 0.13.1 can run pull request code — pin the GitHub Action the official sample leaves on mainAnthropic’s official Claude Security plugin, pinned here at v0.13.1, can review GitHub pull requests as a GitHub Action. Official docs warn that pull request text can steer the scan and that the scan can run the pull request’s code. The Action’s own limits tell you to pin a full commit SHA because it runs with sudo, but the official sample workflow still floats main, and the docs page still advertises the 0.13.0 merge commit. A green required check is not a hard security gate.
- Jupyter MCP Server 2.2.6 has CVE-2026-137189's Host-header bypass patched, but official uvx and Docker examples still use @latest, the image still binds 0.0.0.0, and execute_code can run kernel code with no server-side confirmationA static review, on 1 December 2026, of datalayer/jupyter-mcp-server at 526e80eda814fd8d98ae45ddbfccc765fa7490c6 (git tag v2.2.6) and PyPI jupyter-mcp-server 2.2.6, which remains the latest release: CVE-2026-137189's Host-header bypass of the earlier localhost management-route check is patched in this pin (the fix shipped in 2.1.3 on 1 September 2026; the CVE record was published 30 November 2026). Official uvx and Docker quick-start examples still use @latest / :latest. The pip CLI now binds Streamable HTTP to 127.0.0.1, but the official Docker image still sets HOST=0.0.0.0. execute_code and execute_cell can run kernel code; we found no server-side confirmation gate. We did not run the server. This is not a clean bill of health.
- Official Grafana MCP Server 2.4.0 leaves --disable-write off, so a GRAFANA_SERVICE_ACCOUNT_TOKEN unlocks write tools such as update_dashboard, create_folder, install_plugin, and grafana_api_request; the official Docker entrypoint binds --transport sse --address 0.0.0.0:8000 with --server-auth-token empty; CVE-2026-15583's token exfil is fixed, but official uvx examples remain unpinned while PyPI still serves 2.2.0Static review of grafana/mcp-grafana v2.4.0 (commit 7f717bceff42080b3eeb026506672e8ba4fbdce7). The default --enabled-tools list includes the api and plugin categories and --disable-write defaults to false, so write tools such as grafana_api_request and install_plugin are registered unless you turn them off. The official Docker image listens on 0.0.0.0:8000 over SSE with no caller token unless you override the entrypoint. CVE-2026-15583's environment-token exfil is not present in this pin; official uvx examples are unpinned, and PyPI's mcp-grafana was still 2.2.0 when we checked.