MCP server · Audited from source
Self-Hosted Supabase MCP server
by henkdz/selfhosted-supabase-mcpNo licenceAudited 7 Oct 2026 · source a1c289448a6e
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
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
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
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
`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
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
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
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.no_license
- Why
- no LICENSE file and no repo licence
- Fix
- add a licence
LOWFilesystem / pathfs.traversal · src/__tests__/client/client.test.ts:13
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
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
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
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
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
- "http://127.0.0.1:3000"
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
- `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
- `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
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
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.
| Tool | What it does | Risk |
|---|---|---|
delete_auth_user | Deletes a user from auth.users by their ID. Requires service_role key and direct DB connection. | destructive |
apply_migration | Applies a SQL migration script and records it in the supabase_migrations.schema_migrations table within a transaction. | write |
create_auth_user | Creates a new user directly in auth.users. WARNING: Requires plain password, insecure. Use with extreme caution. | write |
execute_sql | Executes an arbitrary SQL query against the database. SECURITY: Requires service_role key or direct database connection. | write |
get_trigger_definition | Gets the full definition of a trigger, optionally including its function source code. | write |
rebuild_hooks | Attempts to restart the pg_net worker. Requires the pg_net extension to be installed and available. | write |
update_auth_user | Updates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection. | write |
update_storage_config | Updates storage configuration for a Supabase Storage bucket. Can modify file size limits, allowed MIME types, and public/private status. | write |
explain_query | Gets 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_types | Generates TypeScript types from the database schema using the Supabase CLI ( | read |
get_advisors | Gets 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_user | Retrieves details for a specific user from auth.users by their ID. | read |
get_cron_job_history | Gets execution history for pg_cron jobs including status and timing. Requires pg_cron to be installed. | read |
get_database_connections | Retrieves information about active database connections from pg_stat_activity. | read |
get_database_stats | Retrieves statistics about database activity and the background writer from pg_stat_database and pg_stat_bgwriter. | read |
get_edge_function_details | Gets 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_definition | Gets the full source code definition of a database function. Use argument_types if there are overloaded functions with the same name. | read |
get_index_stats | Gets detailed statistics for a specific index including usage counts and size. | read |
get_logs | Gets 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_url | Returns the configured Supabase project URL for this server. | read |
get_rls_status | Checks 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_config | Gets storage configuration for Supabase Storage buckets. Returns bucket settings including file size limits, allowed MIME types, and public/private status. | read |
get_vector_index_stats | Gets usage statistics and size information for pgvector indexes. | read |
list_auth_users | Lists users from the auth.users table. | read |
list_available_extensions | Lists all PostgreSQL extensions available for installation, including those already installed. | read |
list_constraints | Lists all constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, EXCLUDE) in the database. Can filter by schema, table, and type. | read |
list_cron_jobs | Lists all scheduled cron jobs from pg_cron extension. Returns empty array if pg_cron is not installed. | read |
list_database_functions | 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. | read |
list_edge_function_logs | Lists execution logs for edge functions from the function_edge_logs table. | read |
list_edge_functions | Lists all deployed Supabase Edge Functions. Returns empty array if edge functions are not available or none are deployed. | read |
list_extensions | Lists all installed PostgreSQL extensions in the database. | read |
list_foreign_keys | Lists all foreign key relationships in the database. Can filter by schema and/or table. | read |
list_indexes | Lists all indexes in the database with their definitions and sizes. Can filter by schema and/or table. | read |
list_migrations | Lists applied database migrations recorded in supabase_migrations.schema_migrations table. | read |
list_realtime_publications | Lists PostgreSQL publications, often used by Supabase Realtime. | read |
list_rls_policies | Lists all Row Level Security (RLS) policies in the database. Can filter by schema and/or table name. | read |
list_storage_buckets | Lists all storage buckets in the project. | read |
list_storage_objects | Lists objects within a specific storage bucket, optionally filtering by prefix. | read |
list_table_columns | Lists all columns for a table with detailed metadata including types, defaults, and constraints. | read |
list_tables | Lists all accessible tables in the connected database, grouped by schema. | read |
list_triggers | Lists all triggers on tables. Can filter by schema and/or table name. | read |
list_vector_indexes | Lists all pgvector indexes (ivfflat, hnsw) in the database. Returns empty array if pgvector is not installed or no vector indexes exist. | read |
verify_jwt_secret | Checks 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
- ✕BLOCK D 64 / 100
First audit ·
a1c289448a6e
README badge
Badges show the current verdict, BLOCK included
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?
What tools does Self-Hosted Supabase expose?
Is Self-Hosted Supabase safe to connect to an agent?
What credentials does Self-Hosted Supabase need?
How does Self-Hosted Supabase run?
How current is this page?
I already installed Self-Hosted Supabase. What should I do?
Can the verdict change?
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.
- What is the Self-Hosted Supabase MCP server?
- What tools does Self-Hosted Supabase expose?
- Is Self-Hosted Supabase safe to connect to an agent?