Skip to main content
Glama

Self-Hosted Supabase MCP Server

by abushadab

execute_sql

Run SQL queries directly on a self-hosted Supabase database using a direct connection or RPC fallback, enabling flexible database interactions within MCP-compatible environments.

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

Other Tools from Self-Hosted Supabase MCP Server

Related Tools

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