Home / Servers / Supabase Management API / v1_get_database_openapi
Get PostgREST OpenAPI spec
An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.
Get PostgREST OpenAPI spec Returns the PostgREST OpenAPI specification for the project. This is the replacement for querying /rest/v1/ directly with the anon key. [GET /v1/projects/{ref}/database/openapi]
Name on the gateway: supabase_api__v1_get_database_openapi · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
ref required | string | Project ref |
schema | string | The database schema to generate the OpenAPI spec for |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "supabase_api__v1_get_database_openapi",
"arguments": {
"ref": "…"
}
}Or connect the Supabase Management API server directly, which lists 167 tools including this one:
claude mcp add --transport http hj-supabase-api https://mcp.hjlabs.in/mcp/supabase-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the get postgrest openapi spec tool with ref set to ….