How to integrate Supabase using MCP
PostgreSQL database via PostgREST. This guide creates an MCP server from Arthur's Supabase template — tools preconfigured against https://YOUR_PROJECT_ID.supabase.co/rest/v1 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
SUPABASE_API_KEYholding your API key. Use your project's anon public key from Supabase Dashboard → Settings → API → Project API Keys. This key is safe to use for read-only, public-access tables.


Go to the REST API Templates gallery and search for Supabase.


Click Use template on the Supabase card to open the server-creation dialog.


Review the server name and select
SUPABASE_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 2 preconfigured tool(s): list_rows, get_row_by_id. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Read-only access to any Supabase table using the auto-generated PostgREST REST API. Supports pagination, column selection, and row ordering. After creating this project, go to Settings and replace YOUR_PROJECT_ID in the base URL with your actual Supabase project reference (found in Dashboard → Settings → API).
- This integration requires a credential (api-key). Get one at https://supabase.com/dashboard.
- Official API documentation: https://supabase.com/docs/guides/api/rest/getting-started
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video