Skip to main content
Glama
abushadab

Self-Hosted Supabase MCP Server

by abushadab

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
list_tablesB

Lists all accessible tables in the connected database, grouped by schema.

list_extensionsA

Lists all installed PostgreSQL extensions in the database.

list_migrationsB

Lists applied database migrations recorded in supabase_migrations.schema_migrations table.

apply_migrationA

Applies a SQL migration script and records it in the supabase_migrations.schema_migrations table within a transaction.

execute_sqlB

Executes an arbitrary SQL query against the database, using direct database connection when available or RPC function as fallback.

get_database_connectionsB

Retrieves information about active database connections from pg_stat_activity.

get_database_statsA

Retrieves statistics about database activity and the background writer from pg_stat_database and pg_stat_bgwriter.

get_project_urlA

Returns the configured Supabase project URL for this server.

get_anon_keyA

Returns the configured Supabase anon key for this server.

get_service_keyB

Returns the configured Supabase service role key for this server, if available.

generate_typescript_typesA

Generates TypeScript types from the database schema using the Supabase CLI (supabase gen types) and downloads the file to the specified absolute path. The tool returns the current platform (win32, darwin, linux) to help with path formatting. Requires DATABASE_URL configuration and Supabase CLI installed.

rebuild_hooksA

Attempts to restart the pg_net worker. Requires the pg_net extension to be installed and available.

verify_jwt_secretB

Checks if the Supabase JWT secret is configured for this server and returns a preview.

list_auth_usersC

Lists users from the auth.users table.

get_auth_userC

Retrieves details for a specific user from auth.users by their ID.

delete_auth_userA

Deletes a user from auth.users by their ID. Requires service_role key and direct DB connection.

create_auth_userA

Creates a new user directly in auth.users. WARNING: Requires plain password, insecure. Use with extreme caution.

update_auth_userA

Updates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection.

list_storage_bucketsB

Lists all storage buckets in the project.

list_storage_objectsC

Lists objects within a specific storage bucket, optionally filtering by prefix.

list_realtime_publicationsB

Lists PostgreSQL publications, often used by Supabase Realtime.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abushadab/selfhosted-supabase-mcp-basic-auth'

If you have feedback or need assistance with the MCP directory API, please join our Discord server