Skip to main content
Glama

Self-Hosted Supabase MCP Server

by abushadab

execute_sql

Execute custom SQL queries on a self-hosted Supabase database using direct connections or RPC fallbacks, enabling flexible data management and retrieval.

Instructions

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

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" }

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