Skip to content

Connect Databases

Mako connects to your databases directly — no data leaves your infrastructure. You get AI-powered SQL, schema exploration, and query collaboration on top of your existing databases.

DatabaseProtocolQuery Language
PostgreSQLTCP (port 5432)SQL
MySQLTCP (port 3306)SQL
MongoDBMongoDB protocolMongoDB queries
BigQueryGoogle Cloud APISQL
ClickHouseHTTP / nativeSQL
Amazon RedshiftTCP (port 5439)SQL
Cloud SQL (Postgres)Cloud SQL Auth ProxySQL
Cloudflare D1Cloudflare APISQL
Cloudflare KVCloudflare APIJavaScript
  1. Go to Settings → Databases in your workspace
  2. Select the database type
  3. Enter your connection details (host, port, credentials, database name)
  4. Click Test Connection to verify
  5. Save — Mako will discover your schema automatically

If your database requires IP whitelisting, add the following address to your allowlist:

34.79.190.46

This is the static outbound IP used by Mako’s cloud service for all database connections.

Standard connection string format:

postgresql://user:password@host:5432/database

Works with any Postgres-compatible database (Supabase, Neon, etc.). SSL connections are supported.

Standard connection string format:

mysql://user:password@host:3306/database

When connecting via MongoDB Atlas, the connection string format differs from what Atlas shows:

Atlas gives you:

mongodb+srv://user:password@cluster.server.mongodb.net/?appName=MyCluster

Mako needs:

mongodb+srv://user:password@cluster.server.mongodb.net/MyCluster

Note the query parameter (?appName=) becomes a path segment (/MyCluster).

Atlas IP whitelisting: Go to Network Access in your Atlas project → Add IP Address → enter 34.79.190.46Confirm.

Requires a Google Cloud service account with BigQuery access. Upload the service account JSON key file when adding the connection.

Connects over HTTP. Default port is 8123 (HTTP) or 9000 (native). Cloud-hosted ClickHouse (e.g. ClickHouse Cloud) is supported.

Standard Redshift connection using the Postgres wire protocol:

postgresql://user:password@cluster.region.redshift.amazonaws.com:5439/database

For Google Cloud SQL instances with the Auth Proxy. Provide the instance connection name (e.g. project:region:instance) and credentials.

Connects via the Cloudflare API. Requires your Cloudflare account ID and an API token with D1 permissions.

Connects via the Cloudflare API. Uses JavaScript for key-value operations rather than SQL. Requires your Cloudflare account ID, namespace ID, and an API token.

You can connect as many databases as you need — even different types. Mako handles the driver differences transparently. The AI agent knows which dialect to use for each database.