Skip to main content
Glama
HenkDz

Self-Hosted Supabase MCP Server

get_project_url

Retrieve the configured Supabase project URL for self-hosted instances using the MCP server, enabling direct interaction with databases, migrations, auth users, and storage.

Instructions

Returns the configured Supabase project URL for this server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute function that implements the core logic of the get_project_url tool by retrieving the Supabase project URL from the client context.
    execute: async (input: GetProjectUrlInput, context: ToolContext) => { const client = context.selfhostedClient; const url = client.getSupabaseUrl(); // Use getter from client return { project_url: url }; },
  • Zod schemas defining the input (empty) and output structure (project_url as valid URL) for the tool.
    const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), });
  • src/index.ts:107-107 (registration)
    Registers the getProjectUrlTool in the availableTools map used by the MCP server to expose the tool.
    [getProjectUrlTool.name]: getProjectUrlTool as AppTool,

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/HenkDz/selfhosted-supabase-mcp'

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