Supabase Connector
Executable Supabase connector for PostgREST tables, Auth Admin users, and approved RPC calls.
Credential setup
bearerUse the service role key only in private Astrail servers; Astrail also mirrors it to the required apikey header.
Setup docs: https://supabase.com/dashboard/project/_/settings/api
After adding this connector, attach the credential on the server page, then run astrail tools list.
Hosted MCP endpoint
/api/mcp/preset-supabasePrivate servers require an Astrail API key in the Authorization header.
MCP client snippets
ConnectClaude Desktop config
{
"mcpServers": {
"supabase-connector": {
"url": "/api/mcp/preset-supabase"
}
}
}cURL initialize
curl -sS -X POST "/api/mcp/preset-supabase" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'cURL tools/list
curl -sS -X POST "/api/mcp/preset-supabase" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'cURL tools/call
curl -sS -X POST "/api/mcp/preset-supabase" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"supabase_list_tables","arguments":{"project_ref":"example"}}}'Runtime behavior
healthynot_checkedsafe_rest_executionnot recordednot recordednot recordednonestructured fallbackstandardauth_required / oauth_requiredmapping_requiredAstrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.
Tools
4supabase_list_tablesDiscover PostgREST table resources from the project's OpenAPI document.
supabase_select_rowsSelect rows from a Supabase PostgREST table.
supabase_list_auth_usersList Auth users via the Supabase Auth Admin API.
supabase_rpcCall a Supabase PostgREST RPC function after approval.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "Supabase Connector", version: "1.0.0" });
// Curated Astrail connector for: supabase_list_tables, supabase_select_rows, supabase_list_auth_users, supabase_rpc.
// The hosted endpoint executes its verified deterministic endpoint map. Attach a least-privilege provider credential before calling private tools.
server.tool("connector_status", "Confirm this curated connector template is installed.", z.object({}), async () => ({
content: [{ type: "text", text: "Connector installed. Attach provider credentials to enable hosted API calls." }],
}));
const transport = new StdioServerTransport();
await server.connect(transport);