Self-Hosted Supabase MCP Server

execute_sql

Run custom SQL queries directly on self-hosted Supabase databases. Supports read-only hints for optimized execution. Ideal for database introspection and management tasks within development environments.

Instructions

Executes an arbitrary SQL query against the database, primarily using the execute_sql RPC function.

Input Schema

NameRequiredDescriptionDefault
read_onlyNoHint for the RPC function whether the query is read-only (best effort).
sqlYesThe SQL query to execute.

Input Schema (JSON Schema)

{ "properties": { "read_only": { "default": false, "description": "Hint for the RPC function whether the query is read-only (best effort).", "type": "boolean" }, "sql": { "description": "The SQL query to execute.", "type": "string" } }, "required": [ "sql" ], "type": "object" }
ID: kgziynf39e