Skip to main content
Glama
abushadab

Self-Hosted Supabase MCP Server

by abushadab

get_project_url

Retrieve the configured Supabase project URL from the Self-Hosted MCP Server, enabling direct access to Supabase features and database interactions within MCP-compatible environments.

Instructions

Returns the configured Supabase project URL for this server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that executes the tool logic. It retrieves the Supabase project URL from the provided client context and returns it in the expected output format.
    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), output (project_url as URL string), and static MCP JSON input schema (empty object).
    const GetProjectUrlInputSchema = z.object({}); type GetProjectUrlInput = z.infer<typeof GetProjectUrlInputSchema>; // Output schema const GetProjectUrlOutputSchema = z.object({ project_url: z.string().url(), }); // Static JSON Schema for MCP capabilities const mcpInputSchema = { type: 'object', properties: {}, required: [], };
  • src/index.ts:18-18 (registration)
    Import statement for the getProjectUrlTool.
    import { getProjectUrlTool } from './tools/get_project_url.js';
  • src/index.ts:107-107 (registration)
    Registration of the getProjectUrlTool in the availableTools object, making it available for the MCP server.
    [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/abushadab/selfhosted-supabase-mcp-basic-auth'

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