Your PlanetScale Postgres data, where work happens.
PlanetScale Postgres, direct on 5432 or through PSBouncer on 6432. This is the Postgres product, not the Vitess one.
Use the results in Excel, Google Sheets, AI tools and your apps through the Database REST API.
Every connector type is on Free. Start with 2 data sources and 1 agent.
Run read-only queries inside your network.
Read-only queries · outbound connectionSource credentials stay on the agent. Your tools receive query results.
Query Streams reads PlanetScale Postgres from Microsoft Excel, Google Sheets, Power BI, AI assistants over MCP and a REST endpoint through one read-only connection. This card is for PlanetScale Postgres specifically — the newer product on .horizon.psdb.cloud — and not for the Vitess-backed MySQL service PlanetScale is better known for. The card defaults to PSBouncer on port 6432, which is where most PlanetScale Postgres databases expect you, and the agent turns off prepared statements to suit it.
- Postgres, not Vitess
- PSBouncer on 6432 by default
- Prepared statements handled for you
Connect PlanetScale with the right settings.
Keep the connection on the Network Agent. These are the details specific to PlanetScale.
- Host
- <name>.<region>.horizon.psdb.cloud
- Port
- 6432 for PSBouncer, 5432 direct. Same host either way — the card defaults to 6432
- Driver
- Npgsql, carried by the agent — nothing to install at the PlanetScale end
- Username
- Dotted, as postgres.<database-id>. The card checks the dot is there
- TLS
- Required, and forced by the agent for every .horizon.psdb.cloud host. Encrypted; the certificate chain is not verified
- Pooling
- On 6432 the agent disables prepared statements and skips the session reset, which is what a transaction pooler needs
- Saved as
- PostgreSQL, with PlanetScale kept as a badge — there is no connection type called PlanetScale
- Not this card
- PlanetScale's Vitess-backed MySQL service. This preset is the Postgres product only
- Default schema
- public, which is what a federated reference carries
The pooler detail is the one that earns its place. PlanetScale puts PSBouncer in transaction mode, which means the connection you hold is not pinned to one backend — between two statements you can be moved. A Postgres driver left at its defaults assumes the opposite: it prepares statements once and expects them to still be there next time, and it resets the session on close. Against a transaction pooler both assumptions break, and they break intermittently, which is the worst way for anything to break. The agent turns both off when it sees port 6432, so you do not have to know any of this.
Naming the product boundary is not pedantry either. PlanetScale is famous for Vitess, so someone arriving here with a PlanetScale connection string in hand may well have a MySQL one. Saying plainly that this card is the Postgres service — and that the Vitess product has no preset — costs a sentence and saves a support conversation.
For a cross-source query PlanetScale is ordinary Postgres. A connection you called ps_app is written ps_app.public.orders, and it joins to a folder of CSVs, an on-premises system of record or a billing API in one read-only statement — with nothing copied and nothing scheduled.
Provider reference: planetscale.com
Built for how PlanetScale works.
This is PlanetScale Postgres, not PlanetScale MySQL
PlanetScale spent years as the Vitess company, so it is worth being blunt about which product this card connects to.
- This connector is for PlanetScale Postgres — the managed Postgres service on .horizon.psdb.cloud. It speaks the Postgres wire protocol and the agent connects to it with Npgsql.
- It is not for the Vitess-backed MySQL service. There is no preset for that, and a MySQL connection string from PlanetScale will not fit this card.
- The connection is saved as PostgreSQL with PlanetScale kept as the badge. There is no connection type called PlanetScale — which also means a plain Postgres connection you made earlier to a .horizon.psdb.cloud host will pick up the branding on sight.
- Everything downstream is ordinary Postgres: schemas, types, and public as the default schema in a cross-source reference.
PSBouncer is the default, and the port is what decides
PlanetScale runs its pooler on the same hostname as the direct endpoint, one port along. The card defaults you to the pooled one because that is where PlanetScale points you.
- Direct is port 5432. PSBouncer — PlanetScale's transaction pooler — is port 6432 on the same host. Nothing else changes between them.
- On 6432 the agent turns prepared statements off and stops resetting the session on close. A transaction pooler can hand you a different backend between statements, and a driver that assumes otherwise fails in ways that look random.
- The port is what triggers that, not the dropdown. The dropdown exists so the card can refuse to let the two disagree: pick pooled with the wrong port, or direct on 6432, and it tells you before you save rather than after the first odd failure.
- There is no separate pooled hostname to remember and no second set of credentials. Change the port, and that is the whole switch.
The username has a dot in it, and it matters
Two of the four fields are easy to get subtly wrong, so the card checks both.
- PlanetScale usernames take the form postgres.<database-id>. Paste one without the dot and the card stops you, because the part after the dot is what selects the database.
- A password with leading or trailing whitespace is flagged. It is a clipboard artifact and it fails as an ordinary authentication error, which sends people looking for the wrong problem.
- Anything that is not a Postgres connection string is rejected with a message naming where the right one lives, rather than being half-parsed into the wrong fields.
- The pasted string is never stored. It is read once to fill the form and then dropped, so the password lives in one place rather than two.
-- Ordinary Postgres, read-only, through PSBouncer or direct
SELECT c.name,
COUNT(o.id) AS orders,
SUM(o.amount) AS revenue
FROM public.customers AS c
JOIN public.orders AS o ON o.customer_id = c.id
WHERE o.placed_at >= now() - interval '30 days'
GROUP BY c.name
ORDER BY revenue DESC;From connection to useful results.
- Install the Network Agent wherever suits you. It opens one outbound connection and never listens, so PlanetScale sees an ordinary client and your network needs no inbound rule.
- Copy the string from Database then Connect in the PlanetScale console and paste it in. Both the postgresql:// form and the host= keyword form are read.
- Leave the mode on PSBouncer Pool unless you have a reason not to — port 6432 on the same host, which is where PlanetScale points you by default.
- Check the username kept its dot. PlanetScale usernames look like postgres.<database-id>, and the part after the dot is what routes you to the right database.
- Save. Microsoft Excel, Google Sheets, Power BI, MCP and REST all read through that one connection, or join it to your other sources in a single read-only statement.
Put your PlanetScale results to work.
One connection serves your spreadsheets, apps and AI tools. Share permission to run a saved query; recipients see the allowed results, with the SQL and source login hidden.
For your team, vendors and partners
Pull live PlanetScale results straight into a worksheet and refresh them on demand — desktop Excel, Excel Online, Microsoft 365.
PostgreSQL guideRun a saved PlanetScale query from the sidebar and drop the rows into the sheet. Shared collaborators can refresh it themselves.
PostgreSQL guideAsk a question in plain English. Nova already knows your PlanetScale tables, writes and runs the SQL, explains the answer and charts it — no query to write, no credentials to hand over.
How Nova worksShare a live PlanetScale result with anyone — a colleague, a vendor, a partner — as a bookmarkable grid that re-runs fresh when opened, on a phone, a tablet or a desktop. They see the results, never the SQL or the credentials.
How the Data Viewer worksFor apps and systems
Publish a PlanetScale query as an authenticated JSON endpoint any application can call, with an OpenAPI 3.1 spec and ready-made Postman, Insomnia and Hoppscotch collections. No database port is opened.
PostgreSQL guidePaste the generated Power Query M into the Power BI Advanced Editor and the report reads live PlanetScale results over HTTPS — no ODBC driver, no database port opened.
Explore Power BISync PlanetScale rows into an Airtable base on a schedule, or fetch them inside an Airtable automation script.
PostgreSQL guideFeed a Baserow table from PlanetScale over the REST endpoint — self-hosted or Baserow cloud.
PostgreSQL guideKeep a SeaTable base current with PlanetScale data without exporting a file or exposing the database.
PostgreSQL guidePush PlanetScale results into a Smartsheet grid so plans and reports read from the source system, not last week's export.
PostgreSQL guideBack an Anvil Python app with PlanetScale through the REST endpoint instead of embedding database credentials in the app.
PostgreSQL guideFor AI tools
Give an AI assistant read-only access to PlanetScale with the schema it needs to write correct SQL — no credentials in the chat.
PostgreSQL guideDelivered to people
Put a PlanetScale query on a schedule and have the rows delivered to Slack, Discord, email or a signed webhook — or hold the message until a row count, threshold or percentage change crosses the line you set.
How alerts and reports workJoin PlanetScale to the rest of your data.
Bring databases, business APIs, files and logs into one read-only query. Every connector supports Federated Queries.
Name the connections and tables. Query Streams handles the source queries and combines the results.
Explore Federated Queries-- nothing copied, nothing merged, nothing scheduled
SELECT c.region, COUNT(*) AS orders, SUM(i.amount_due) AS invoiced
FROM ps_app.public.orders1 f
JOIN erp_sql.dbo.customers2 c ON c.id = f.customer_id
JOIN billing.stripe.invoices3 i ON i.customer = c.stripe_id
GROUP BY c.region
ORDER BY invoiced DESC;Use your own connection, schema, table and column names.
Shared across the connector family.
True of every database connector
- Outbound only — the agent opens one encrypted connection out to Query Streams. No inbound port to forward, no VPN, no IP allowlist, nothing about your database exposed to the internet.
- Credentials stay put — the database username and password live on the machine you installed the agent on. Query Streams never receives them and cannot reach your database on its own.
- Read-only, enforced — one statement at a time, SELECT and friends only. A write is rejected on your own machine before it is ever sent to the server, rather than relying on a permission somebody remembered to set.
- Deploy as many agents as you like — one per site, region or cloud. Every data source they can see arrives in a single dropdown, so nobody has to know which agent hosts what.
What you get once a query is saved
- Share the capability, not the SQL — a colleague or an outside partner can run your query and change its filters without ever seeing the statement behind it.
- Filters from either direction — declare them yourself as @variables, or let the connector spot the literal values already sitting in your WHERE clause and offer those as dropdowns.
- Read it from anywhere — Microsoft Excel, Google Sheets, Power BI, the REST API, AI assistants over MCP, the Query Builder and Nova all read the same saved query.
- Run several at once — five saved queries into five worksheet tabs, streamed concurrently, however large the results.
- Join it to anything else you have connected — another database, a business API, or a folder of files, in one read-only statement.
Questions about PlanetScale Postgres
Where can I use PlanetScale Postgres query results?
Use PlanetScale Postgres results in Excel, Google Sheets, the Data Viewer, your apps through the Database REST API, and AI tools through MCP or Nova. Saved results also feed supported Automation destinations, reports and alerts. Destination availability and allowances depend on your plan.
Do I need to open an inbound port for PlanetScale Postgres?
No. Install the Network Agent on a machine that can reach PlanetScale Postgres. The agent connects outward to Query Streams; no inbound port or VPN is needed. Your source must still allow the agent machine to connect under its own access rules.
Can Query Streams change data in PlanetScale Postgres?
No. Queries are enforced read-only on the Network Agent before execution. Source credentials stay on that machine. Sharing grants permission to run a saved query and receive its results; it does not reveal the SQL or database login.
What do I need to connect PlanetScale Postgres?
Host: <name>.<region>.horizon.psdb.cloud. Port: 6432 for PSBouncer, 5432 direct. Same host either way — the card defaults to 6432. Driver: Npgsql, carried by the agent — nothing to install at the PlanetScale end. Username: Dotted, as postgres.<database-id>. The card checks the dot is there
Can I join PlanetScale Postgres to other connected sources?
Yes. Federated Queries support every connector type, including databases, business APIs, files and logs. Name the connections and tables in one read-only query. Query Streams translates the source portions as needed and combines their results. See how Federated Queries work.
Does PlanetScale Postgres use the PostgreSQL connector?
Yes. PlanetScale Postgres uses the PostgreSQL wire protocol. Its provider preset supplies the relevant connection settings. The linked PostgreSQL guides apply to the shared workflow; use the provider-specific connection details on this page for your endpoint and security requirements.
Put PlanetScale where the work happens.
Start with Free: every connector type, 2 data sources and 1 Network Agent. Add plan allowances as your needs grow.

