To load data from etlmcp into Supabase, give etlmcp the shared pooler in session mode: the host aws-<index>-<region>.pooler.supabase.com copied from Supabase's Connect dialog, port 5432, and the user postgres.<project-ref>. Do not paste the direct host db.<project-ref>.supabase.co, which answers over IPv6 unless you bought the IPv4 add-on, and do not use transaction mode on port 6543, which does not handle prepared statements. Then press Test on the destination: a pass proves the host, the user and write access.
Why the direct host is the wrong default
Supabase's direct connection uses db.<project-ref>.supabase.co on port 5432 with the user postgres. On the Free and Pro plans Supabase serves that host over IPv6. The IPv4 add-on makes it reachable over IPv4 instead, but it is not dual-stack: once it is on, the endpoint answers over IPv4 only.
etlmcp connects from a server whose public IPv4 address, when the operator has configured one, appears on the Destinations page in the note that tells you which address to allow through a firewall. Since that published address is IPv4, the address you allowlist and the route etlmcp uses should be IPv4 too. You have two ways to get there:
- The shared pooler in session mode (no extra cost). Supabase lists the session pooler as IPv4 on every plan, and its Supavisor FAQ says that if you do not need client queuing, IPv4 compatibility is session mode's main benefit.
- The IPv4 add-on, if you want etlmcp on the direct host with the plain
postgresuser.
The settings to enter
| etlmcp field | Value for the shared pooler, session mode |
|---|---|
| Host | aws-<index>-<region>.pooler.supabase.com, copied from the Connect dialog |
| Port | 5432 |
| User | postgres.<project-ref>, or <role>.<project-ref> for a role you created |
| Password | your database password |
| Database | postgres unless you created another |
Copy the host rather than typing it: Supabase says the index in the host name is not derived from the region, so you cannot work it out. Through the shared pooler, plain postgres is not enough; the project reference has to follow a dot so the pooler knows which project you mean.
Supabase does not show the database password again after the project is created. If you reset it in the Connect dialog or Database Settings, any other client still on the old password stops connecting, so update them at the same time.
Why not transaction mode
Supavisor's transaction mode listens on port 6543 and hands each transaction to whichever server connection is free. Supabase states that the shared pooler does not support prepared statements in this mode and asks you to turn them off in your driver. Session mode keeps one server session per client and supports them.
etlmcp writes rows with psycopg's executemany and never changes psycopg's prepare_threshold, the setting that controls automatic preparation. psycopg's own documentation says a pooler that switches server sessions is generally not compatible with prepared statements unless it declares otherwise. etlmcp gives you no switch to turn preparation off, so pick session mode on port 5432 and avoid the problem.
Network Restrictions
Supabase's Network Restrictions allow every IP address until you apply some. Once applied, they cover every route into the database, pooled and direct alike, so one entry protects both. Add etlmcp's published address as a single-host CIDR, the address followed by /32. Restrictions do not touch Supabase's HTTPS APIs, such as PostgREST, Storage or Auth, so they only limit Postgres connections like etlmcp's.
SSL
etlmcp connects with sslmode=require by default, which encrypts the connection. Supabase recommends require over the libpq default prefer, which can fall back to plaintext. Neither require nor prefer checks the server certificate; see PostgreSQL SSL modes and etlmcp for what that means.
Test before you schedule
The Test button on the Destinations page inserts one sample row into your table and rolls it back. Because it runs a real insert through the connection you entered, a passing Test confirms the host, the pooler user, the password and write access in one step. When it passes, it reports the PostgreSQL major version and that the table is ready to load. If it fails, PostgreSQL destination errors explains the messages, and the PostgreSQL destination covers the table etlmcp creates.