Home / Servers / Supabase Management API / v1_exchange_oauth_token

Exchange auth code for user's access and refresh token

An MCP tool from the Supabase Management API server, hosted on mcp.hjlabs.in.

Exchange auth code for user's access and refresh token Supports authorization_code, refresh_token, and urn:ietf:params:oauth:grant-type:jwt-bearer grant types. The jwt-bearer grant type (IDJAG — identity-directed JWT assertion) is in beta and available… [POST /v1/oauth/token]

Name on the gateway: supabase_api__v1_exchange_oauth_token · may change things.

Parameters

NameTypeDescription
grant_typeauthorization_code | refresh_token | urn:ietf:params:oauth:grant-type:jwt-bearer
client_idstring
client_secretstring
codestring
code_verifierstring
redirect_uristring
refresh_tokenstring
assertionstringIDJAG assertion JWT for grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer.…
resourcestringResource indicator for MCP (Model Context Protocol) clients
scopestring

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:

call_tool arguments
{
  "name": "supabase_api__v1_exchange_oauth_token",
  "arguments": {}
}

Or connect the Supabase Management API server directly, which lists 167 tools including this one:

Run in your terminal
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 exchange auth code for user's access and refresh token tool with grant_type set to ….

More from Supabase Management API