Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Self-Hosted Supabase MCP server

by henkdz/selfhosted-supabase-mcpNo licenceAudited 7 Oct 2026 · source a1c289448a6e

npm self-hosted-supabase-mcp 1.2.0stdiostreamable-http★ 138
✕BLOCKGrade D · 64/100 · 7 Oct 2026 · a1c2894

Is it safe? No — BLOCK, grade D (64/100). It exposes 43 tools: 35 read, 7 write and 1 destructive. The audit recorded 19 findings (0 critical, 1 high, 6 medium, 9 low). Maintainer's description: An MCP Server for your Self Hosted Supabase

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Self-Hosted Supabase MCP server (henkdz/selfhosted-supabase-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/henkdz/self-hosted-supabase

Why this is BLOCK. The audit found 0 critical and 1 high findings; the most severe is Hard-coded secrets at smithery.yaml:57. Each finding is listed below with its file and line.

Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.

Trust audit

Audit 0.4.1 · full source read 7 Oct 2026

Trust score64/100✕BLOCK D
0 critical1 high6 medium9 low3 info

19 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemUndeclared1 observation not in its description
  • NetworkDeclared1 observation
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

Findings (19)

Sorted by severity

HIGHHard-coded secretssecret.db_uri · smithery.yaml:57
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMNetwork egressnet.raw_ip · src/server/http-server.ts:144
F-04 Network egressCWE-200 · CWE-319Layer L1
`http://127.0.0.1:${this.options.port}`,
Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · README.md:246
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · README.md:256
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · README.md:272
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.db_uri · README.md:309
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
delete_auth_user
Why
1 tool(s) can delete or overwrite
Fix
prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.hidden_file · .codacy.yml
F-13 Inventory / provenanceCWE-1104Layer L0
.codacy.yml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.no_license
F-13 Inventory / provenanceCWE-1104Layer L0
Why
no LICENSE file and no repo licence
Fix
add a licence
LOWFilesystem / pathfs.traversal · src/__tests__/client/client.test.ts:13
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { SelfhostedSupabaseClient } from '../../client/index.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/client/client.test.ts:14
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import type { SelfhostedSupabaseClientOptions } from '../../types/index.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/helpers/mocks.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import type { SelfhostedSupabaseClient } from '../../client/index.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/helpers/mocks.ts:7
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import type { ToolContext } from '../../tools/types.js';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · src/__tests__/helpers/mocks.ts:8
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import type { SqlExecutionResult, SqlSuccessResponse, SqlErrorResponse } from '../../types/index.js';
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:541
F-04 Network egressCWE-200 · CWE-319Layer L1
- "http://127.0.0.1:3000"
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, @supabase/supabase-js, commander, express, jsonwebtoken, pg, zod, @types/bun
Why
13 dependency range(s) float
Fix
pin exact versions or ship a lockfile
INFOPrompt injectionprompt.authority_framing · README.md:215
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- `service_role`: Full access (all tools including privileged ones).
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · README.md:589
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
- `service_role`: Full access to all tools (regular + privileged)
Why
No further detail recorded for this rule.
Fix
—
INFOPrompt injectionprompt.authority_framing · <tool:list_database_functions>:1
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Lists all user-defined database functions (stored procedures). Can filter by schema, name pattern, or language. Identifies SECURITY DEFINER functions which may have elevated privileges.
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

43 declared in source · 1 destructive

35 read7 write1 destructive

1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.

ToolWhat it doesRisk
delete_auth_userDeletes a user from auth.users by their ID. Requires service_role key and direct DB connection.destructive
apply_migrationApplies a SQL migration script and records it in the supabase_migrations.schema_migrations table within a transaction.write
create_auth_userCreates a new user directly in auth.users. WARNING: Requires plain password, insecure. Use with extreme caution.write
execute_sqlExecutes an arbitrary SQL query against the database. SECURITY: Requires service_role key or direct database connection.write
get_trigger_definitionGets the full definition of a trigger, optionally including its function source code.write
rebuild_hooksAttempts to restart the pg_net worker. Requires the pg_net extension to be installed and available.write
update_auth_userUpdates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection.write
update_storage_configUpdates storage configuration for a Supabase Storage bucket. Can modify file size limits, allowed MIME types, and public/private status.write
explain_queryGets the execution plan for a SQL query. WARNING: With ANALYZE enabled, the query is actually executed which will modify data for write operations.read
generate_typescript_typesGenerates TypeScript types from the database schema using the Supabase CLI (read
get_advisorsGets security or performance advisory notices for the database. Based on Supabase Splinter linting rules. Helps identify issues like missing RLS policies, unindexed foreign keys, and other common problems.read
get_auth_userRetrieves details for a specific user from auth.users by their ID.read
get_cron_job_historyGets execution history for pg_cron jobs including status and timing. Requires pg_cron to be installed.read
get_database_connectionsRetrieves information about active database connections from pg_stat_activity.read
get_database_statsRetrieves statistics about database activity and the background writer from pg_stat_database and pg_stat_bgwriter.read
get_edge_function_detailsGets detailed information about a specific Supabase Edge Function by ID or slug. Returns null if not found or edge functions are not available.read
get_function_definitionGets the full source code definition of a database function. Use argument_types if there are overloaded functions with the same name.read
get_index_statsGets detailed statistics for a specific index including usage counts and size.read
get_logsGets logs for a Supabase service. Attempts to query the analytics stack first, then falls back to PostgreSQL CSV logs. Returns logs from the last 24 hours. Note: Log availability depends on your self-hosted installation configuration.read
get_project_urlReturns the configured Supabase project URL for this server.read
get_rls_statusChecks if Row Level Security (RLS) is enabled on tables and shows the number of policies. Can filter by schema and/or table.read
get_storage_configGets storage configuration for Supabase Storage buckets. Returns bucket settings including file size limits, allowed MIME types, and public/private status.read
get_vector_index_statsGets usage statistics and size information for pgvector indexes.read
list_auth_usersLists users from the auth.users table.read
list_available_extensionsLists all PostgreSQL extensions available for installation, including those already installed.read
list_constraintsLists all constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, EXCLUDE) in the database. Can filter by schema, table, and type.read
list_cron_jobsLists all scheduled cron jobs from pg_cron extension. Returns empty array if pg_cron is not installed.read
list_database_functionsLists all user-defined database functions (stored procedures). Can filter by schema, name pattern, or language. Identifies SECURITY DEFINER functions which may have elevated privileges.read
list_edge_function_logsLists execution logs for edge functions from the function_edge_logs table.read
list_edge_functionsLists all deployed Supabase Edge Functions. Returns empty array if edge functions are not available or none are deployed.read
list_extensionsLists all installed PostgreSQL extensions in the database.read
list_foreign_keysLists all foreign key relationships in the database. Can filter by schema and/or table.read
list_indexesLists all indexes in the database with their definitions and sizes. Can filter by schema and/or table.read
list_migrationsLists applied database migrations recorded in supabase_migrations.schema_migrations table.read
list_realtime_publicationsLists PostgreSQL publications, often used by Supabase Realtime.read
list_rls_policiesLists all Row Level Security (RLS) policies in the database. Can filter by schema and/or table name.read
list_storage_bucketsLists all storage buckets in the project.read
list_storage_objectsLists objects within a specific storage bucket, optionally filtering by prefix.read
list_table_columnsLists all columns for a table with detailed metadata including types, defaults, and constraints.read
list_tablesLists all accessible tables in the connected database, grouped by schema.read
list_triggersLists all triggers on tables. Can filter by schema and/or table name.read
list_vector_indexesLists all pgvector indexes (ivfflat, hnsw) in the database. Returns empty array if pgvector is not installed or no vector indexes exist.read
verify_jwt_secretChecks if the Supabase JWT secret is configured for this server.read

Safer alternatives

We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.

Audit history

  1. ✕BLOCK D 64 / 100

    First audit · a1c289448a6e

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.

Questions about Self-Hosted Supabase MCP server

What is the Self-Hosted Supabase MCP server?
An MCP Server for your Self Hosted Supabase
What tools does Self-Hosted Supabase expose?
43 in total: 35 read-only, 7 that write, and 1 that can delete or overwrite (delete_auth_user). Every one is listed on this page with its risk.
Is Self-Hosted Supabase safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (64/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Self-Hosted Supabase need?
It reads JWT_SECRET, SUPABASE_ANON_KEY, SUPABASE_AUTH_JWT_SECRET and SUPABASE_SERVICE_ROLE_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Self-Hosted Supabase run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as self-hosted-supabase-mcp at 1.2.0.
How current is this page?
The grade is for one exact copy of the source (a1c289448a6e), read on 2026-10-07. The repository is watched and re-audited when it changes.
I already installed Self-Hosted Supabase. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

Sources

  • henkdz/selfhosted-supabase-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
  • ModelsAtlas trust audit — BLOCK verdict for commit a1c289448a6eObserved · 7 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.