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,
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a read-only operation ('Returns'), but does not specify if this requires authentication, involves rate limits, or details the return format. The description adds minimal context beyond the basic action, resulting in an average score.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence that directly states what the tool does without any unnecessary words. It is front-loaded and efficiently conveys the essential information, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (zero parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose but lacks details on behavioral aspects like authentication or return format, which could be helpful for an agent in a broader context. It meets the minimum viable standard without being comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, and the schema description coverage is 100%, so there is no need for parameter details in the description. The baseline for zero parameters is 4, as the description appropriately focuses on the tool's purpose without redundant parameter information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Returns') and the resource ('configured Supabase project URL'), making the purpose evident. However, it does not explicitly differentiate this tool from sibling tools like 'get_anon_key' or 'get_service_key', which also retrieve configuration values, so it falls short of a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as other 'get_' tools for different configuration values. It lacks context about prerequisites or typical use cases, leaving the agent to infer usage based on the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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