1. Conduid
  2. Data
  3. Selfhosted Supabase MCP
MCP server · Data

Selfhosted Supabase MCP

An MCP Server for your Self Hosted Supabase

Unclaimed last commit 9 months ago data
52Fair

Scored 21 hours ago · breakdown

About Selfhosted Supabase MCP

Selfhosted Supabase MCP is an MCP server published by HenkDz in the Data category: an MCP Server for your Self Hosted Supabase. Conduid read 43 tools from its source: apply_migration, create_auth_user, delete_auth_user, execute_sql, explain_query, generate_typescript_types and 37 more. No package is published for it, so it installs from a source checkout.

The repository has 137 stars and 46 forks, and its last commit was on 19 Feb 2026. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Its topics include data.

Install

From source
git clone https://github.com/HenkDz/selfhosted-supabase-mcp

Tools (43)

apply_migrationApplies a SQL migration and records it in `supabase_migrations.schema_migrations`
ParameterTypeDescription
namestringAn optional descriptive name for the migration.
sql *stringThe SQL DDL content of the migration.
version *stringThe migration version string (e.g., '20240101120000').
create_auth_userCreates a new user in `auth.users` (password bcrypt-hashed via pgcrypto)
ParameterTypeDescription
app_metadataobjectOptional app metadata.
email *stringThe email address for the new user.
password *stringPlain text password (min 6 chars). WARNING: Insecure.
rolestringUser role.
user_metadataobjectOptional user metadata.
delete_auth_userDeletes a user from `auth.users`
ParameterTypeDescription
user_id *stringThe UUID of the user to delete.
execute_sqlExecutes an arbitrary SQL query
ParameterTypeDescription
read_onlybooleanHint for the RPC function whether the query is read-only (best effort).
sql *stringThe SQL query to execute.
explain_queryRuns `EXPLAIN ANALYZE` on a query
ParameterTypeDescription
analyzebooleanActually execute the query to get real timing. WARNING: This WILL execute the query and modify data for write operations!
buffersbooleanInclude buffer usage statistics (requires ANALYZE).
costsbooleanInclude estimated costs.
formatstringOutput format for the plan.
settingsbooleanInclude non-default configuration settings.
sql *stringThe SQL query to analyze.
timingbooleanInclude actual timing (requires ANALYZE).
verbosebooleanInclude additional details in the plan.
generate_typescript_typesGenerates TypeScript types from the database schema
ParameterTypeDescription
included_schemasarrayDatabase schemas to include in type generation.
output_filenamestringFilename to save the generated types to in the workspace root.
output_path *stringAbsolute path where to save the file. If provided, output_filename will be ignored.
get_advisorsRetrieves security and performance advisory notices
get_auth_userRetrieves details for a specific user
ParameterTypeDescription
user_id *stringThe UUID of the user to retrieve.
get_cron_job_historyShows recent execution history for a cron job
ParameterTypeDescription
jobidnumberFilter by specific job ID.
jobnamestringFilter by job name pattern.
limitnumberMaximum number of records to return.
statusstringFilter by execution status.
get_database_connectionsShows active connections (`pg_stat_activity`)
get_database_statsRetrieves database statistics (`pg_stat_*`)
get_edge_function_detailsGets details and metadata for an Edge Function
ParameterTypeDescription
function_identifier *stringThe function ID (UUID) or slug to look up
get_function_definitionGets the source definition of a function
ParameterTypeDescription
argument_typesstringArgument types to disambiguate overloaded functions (e.g., "integer, text").
function_name *stringName of the function.
schemastringSchema name (defaults to public).
get_index_statsShows index usage statistics
ParameterTypeDescription
index_name *stringName of the index.
schemastringSchema name (defaults to public).
get_logsRetrieves recent log entries (analytics stack or CSV fallback)
ParameterTypeDescription
limitnumberMaximum number of log entries to return (default: 100, max: 1000)
get_project_urlReturns the configured Supabase URL
get_rls_statusShows RLS enabled/disabled status for tables
ParameterTypeDescription
schemastringFilter by schema name.
tablestringFilter by table name.
get_storage_configRetrieves storage bucket configuration
ParameterTypeDescription
bucket_idstringOptional bucket ID to get config for a specific bucket. If omitted, returns all buckets.
get_trigger_definitionGets the source definition of a trigger
ParameterTypeDescription
include_functionbooleanInclude the trigger function source code.
schemastringSchema name (defaults to public).
table *stringTable name the trigger is on.
trigger_name *stringName of the trigger.
get_vector_index_statsShows pgvector index statistics
ParameterTypeDescription
indexnamestringFilter by index name.
schemastringFilter by schema name.
tablestringFilter by table name.
list_auth_usersLists users from `auth.users`
ParameterTypeDescription
limitnumberMax number of users to return
offsetnumberNumber of users to skip
list_available_extensionsLists all available (installable) extensions
ParameterTypeDescription
name_patternstringFilter by extension name pattern (SQL LIKE).
show_installedbooleanInclude already installed extensions.
list_constraintsLists constraints for a specific table
ParameterTypeDescription
constraint_typestringFilter by constraint type.
include_systembooleanInclude constraints in system schemas.
schemastringFilter by schema name.
tablestringFilter by table name.
list_cron_jobsLists scheduled jobs (requires `pg_cron` extension)
list_database_functionsLists user-defined database functions
ParameterTypeDescription
languagestringFilter by language (e.g., plpgsql, sql).
name_patternstringFilter functions by name pattern (SQL LIKE pattern).
schemastringFilter functions by schema name.
list_edge_function_logsRetrieves recent logs for an Edge Function
ParameterTypeDescription
errors_onlybooleanOnly show logs with errors (status >= 400).
function_idstringFilter by function ID/slug.
limitnumberMaximum number of log entries to return.
status_codenumberFilter by HTTP status code.
list_edge_functionsLists deployed Edge Functions
list_extensionsLists installed PostgreSQL extensions
list_foreign_keysLists foreign keys for a specific table
ParameterTypeDescription
include_systembooleanInclude foreign keys in system schemas.
schemastringFilter by schema name.
tablestringFilter by table name.
list_indexesLists indexes for a specific table
ParameterTypeDescription
include_systembooleanInclude indexes on system tables.
schemastringFilter indexes by schema name.
tablestringFilter indexes by table name.
list_migrationsLists applied migrations from `supabase_migrations.schema_migrations`
list_realtime_publicationsLists PostgreSQL publications (e.g. `supabase_realtime`)
list_rls_policiesLists Row-Level Security policies for a table
ParameterTypeDescription
schemastringFilter policies by schema name.
tablestringFilter policies by table name.
list_storage_bucketsLists all storage buckets
list_storage_objectsLists objects within a specific bucket
ParameterTypeDescription
bucket_id *stringThe ID of the bucket to list objects from.
limitnumberMax number of objects to return
offsetnumberNumber of objects to skip
prefixstringFilter objects by a path prefix (e.g., 'public/')
list_table_columnsLists columns for a specific table
ParameterTypeDescription
schemastringSchema name (defaults to public).
table *stringTable name to get columns for.
list_tablesLists tables in the database schemas
list_triggersLists triggers for a specific table
ParameterTypeDescription
schemastringFilter triggers by schema name.
tablestringFilter triggers by table name.
list_vector_indexesLists pgvector indexes (requires `pgvector` extension)
rebuild_hooksRestarts the `pg_net` worker (if used)
update_auth_userUpdates user details (password bcrypt-hashed if changed)
ParameterTypeDescription
app_metadataobjectNew app metadata (will overwrite existing).
emailstringNew email address.
passwordstringNew plain text password (min 6 chars). WARNING: Insecure.
rolestringNew role.
user_id *stringThe UUID of the user to update.
user_metadataobjectNew user metadata (will overwrite existing).
update_storage_configUpdates storage bucket settings
ParameterTypeDescription
allowed_mime_typesarrayArray of allowed MIME types (e.g., ["image/png", "image/jpeg"]). Empty array means all types allowed.
bucket_id *stringThe bucket ID to update
file_size_limitnumberMaximum file size in bytes (0 or null for no limit)
publicbooleanWhether the bucket is publicly accessible
verify_jwt_secretChecks if the JWT secret is configured

Security checks

Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 3.1K words.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by bun.lock.
  • ✓No dynamic code executionScanned 50 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdio and Streamable HTTPsrc/index.ts:3, src/server/http-server.ts:18
Starts other programs
No calls that start other programs
Outbound network calls
No outbound network calls
Writes or deletes files
No file writes or deletes
Lockfile
bun.lock

Pattern matches on the source text of 50 files: places to read, not proof of what the code does at run time.

README

The repository's README runs to about 3.1K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Selfhosted Supabase MCP

How do I install Selfhosted Supabase MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Selfhosted Supabase MCP safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Conduid's scan of 50 source files found that it serves MCP over stdio and Streamable HTTP. Its dependencies are pinned by bun.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Selfhosted Supabase MCP still maintained?

The last commit was 9 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Selfhosted Supabase MCP provide?

Conduid read 43 tools from the source: apply_migration, create_auth_user, delete_auth_user, execute_sql, explain_query, generate_typescript_types, get_advisors, get_auth_user and 35 more. 29 of them publish their parameters, listed under Tools above.