Skip to main content
Glama
HenkDz

Self-Hosted Supabase MCP Server

get_project_url

Retrieve the configured Supabase project URL from a self-hosted MCP server to access and manage your database, migrations, authentication, and storage directly within development environments.

Instructions

Returns the configured Supabase project URL for this server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The async execute function that implements the core tool logic by retrieving the Supabase project URL from the provided 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 for input (empty object) and output (project_url as valid URL string).
    const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), });
  • Static JSON Schema object for MCP tool capabilities, defining empty input schema.
    const mcpInputSchema = { type: 'object', properties: {}, required: [], };
  • src/index.ts:18-18 (registration)
    Import of the getProjectUrlTool from its implementation file.
    import { getProjectUrlTool } from './tools/get_project_url.js';
  • src/index.ts:107-107 (registration)
    Entry registering the tool in the availableTools map, which is used to populate MCP server capabilities and request handlers.
    [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