Serverless Postgres

Your Xata data, where work happens.

Xata Postgres over the wire protocol, addressed by database and branch. Paste the string from the Xata console and the branch you typed is the branch you get.

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.

XataYour existing database connection
Inside your networkQuery Streams Network Agent

Run read-only queries inside your network.

Read-only queries · outbound connection

Source credentials stay on the agent. Your tools receive query results.

Source → agent → allowed results

Query Streams reads Xata from Microsoft Excel, Google Sheets, Power BI, AI assistants over MCP and a REST endpoint through one read-only connection. Xata speaks the Postgres wire protocol, so the agent connects to it with Npgsql exactly as it would to any other Postgres. One thing is genuinely different: the Database field is a database:branch route rather than a plain name, and Xata is the only connector on the platform whose database name is passed through with its capitalisation intact. TLS is enforced for every .sql.xata.sh host whatever the checkbox says.

  • Branch capitalisation preserved
  • TLS forced for every Xata host
  • No pooler in the path

Connect Xata with the right settings.

Keep the connection on the Network Agent. These are the details specific to Xata.

Host
<region>.sql.xata.sh
Port
5432
Driver
Npgsql, carried by the agent — nothing to install at the Xata end
Database
A database:branch route such as mydb:main. Passed through with its capitalisation intact — the only connector where that is true
Username
Your workspace ID, not an account name
Password
An API key, not your account password
TLS
Required, and forced by the agent for every .sql.xata.sh host. Encrypted; the certificate chain is not verified
Pooling
None — Xata needs no pooled endpoint, so the agent connects directly
Saved as
PostgreSQL, with Xata kept as a badge — there is no connection type called Xata
Default schema
public, which is what a federated reference carries

The capitalisation rule is the whole reason this card exists rather than pointing people at the plain PostgreSQL one. Query Streams lower-cases Postgres database names on the way through, which is correct everywhere else — an unquoted identifier folds to lower case in Postgres, so preserving what someone typed would only create confusion. Xata's Database field is not an identifier at all. It is a route made of a database and a branch joined by a colon, and Xata reads the branch part literally. Fold it and a branch named Feature-X becomes feature-x and stops resolving. So Xata is exempted, and it is the only connector on the platform that is.

The failure that exemption prevents is a nasty one, because it does not look like a failure. Branch routing that goes wrong does not usually error — it lands you somewhere. A query against the wrong branch returns rows, and they look like data, and nothing about the result says you are reading last month's schema instead of this week's. The same reasoning is why a bare database name without a colon gets flagged: it works, it silently means the default branch, and a spreadsheet full of main when you meant a feature branch is worse than an error message.

For a cross-source query Xata is ordinary Postgres. A connection you called xata_app is written xata_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. The branch you chose in the connection is the branch the join reads.

Provider reference: xata.io

Built for how Xata works.

The Database field is a route, not a name

On every other Postgres connector the Database field holds an identifier, and Query Streams lower-cases it on the way through because that is what Postgres does with an unquoted name. On Xata that would be actively wrong, so it is the one place the rule is switched off.

  • The value is a database:branch pair — mydb:main — which Xata resolves as a route. It is not a Postgres identifier and it does not follow identifier folding rules.
  • A branch called Feature-X keeps its capital F and its capital X. Lower-cased to feature-x it stops resolving, which is why Xata is the only connector exempted from the normalisation.
  • Leave the colon out and the connection still works — it lands on the default branch. The card points this out rather than letting it pass silently, because landing on main when you meant a feature branch produces correct-looking numbers from the wrong data.
  • Nothing else about the name is checked. Query Streams passes the route through as you typed it and lets Xata decide whether it resolves.

What the agent does with a Xata host

Two behaviours are keyed to the .sql.xata.sh suffix, and neither is yours to configure.

  • TLS is required, not requested. Any .sql.xata.sh host is connected to with encryption on regardless of the Use SSL box, so a string that lost its sslmode in the clipboard still travels encrypted.
  • The connection is encrypted but the certificate chain is not verified. That is the honest description of it, and it is the same on every hosted provider Query Streams recognises.
  • There is no pooler in the path. Some serverless Postgres services put a transaction-mode pooler in front and need prepared statements pinned off to cope; Xata does not, so the agent connects directly and skips all of that.
  • The connection is saved as PostgreSQL with Xata kept as the badge. There is no connection type called Xata — which also means a plain Postgres connection you made earlier to the same host will pick up the Xata branding on sight.

Paste it rather than retyping it

Four credentials, two of which are easy to confuse and one of which is long enough to mistype. The card is built around pasting the string and catching the rest.

  • The postgresql:// URI from the console is the expected form. The libpq host= keyword form parses too.
  • Anything that is not a Postgres connection string is rejected with a message telling you where the right one lives, rather than being half-parsed into the wrong fields.
  • An API key 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.
  • Workspace ID goes in the username field and the API key goes in the password field. The card labels them that way rather than saying Username and Password and leaving you to guess.
-- Ordinary Postgres, read-only, against whichever branch you pointed at
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.

  1. Install the Network Agent wherever suits you. It opens one outbound connection and never listens, so there is no inbound rule and nothing about the database is exposed.
  2. Paste the connection string from the Xata console. Host, port, workspace ID, API key and the database:branch route are all read out of it.
  3. Check the Database field reads database:branch — mydb:main, for example. A bare name without the colon is accepted, and it quietly means the default branch.
  4. Remember which credential is which: the username is your workspace ID and the password is an API key, not your account password.
  5. Save. Microsoft Excel, Google Sheets, Power BI, MCP and REST all read the branch through that one connection, or join it to your other sources in a single read-only statement.

Put your Xata 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 Xata results straight into a worksheet and refresh them on demand — desktop Excel, Excel Online, Microsoft 365.

PostgreSQL guide

Ask a question in plain English. Nova already knows your Xata tables, writes and runs the SQL, explains the answer and charts it — no query to write, no credentials to hand over.

How Nova works

Share a live Xata 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 works

For apps and systems

Publish a Xata 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 guide

Paste the generated Power Query M into the Power BI Advanced Editor and the report reads live Xata results over HTTPS — no ODBC driver, no database port opened.

Explore Power BI

For AI tools

Delivered to people

Put a Xata 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 work

Join Xata 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
Illustrative cross-source query
-- nothing copied, nothing merged, nothing scheduled
SELECT   c.region, COUNT(*) AS orders, SUM(i.amount_due) AS invoiced
FROM     xata_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 Xata

Where can I use Xata query results?

Use Xata 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 Xata?

No. Install the Network Agent on a machine that can reach Xata. 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 Xata?

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 Xata?

Host: <region>.sql.xata.sh. Port: 5432. Driver: Npgsql, carried by the agent — nothing to install at the Xata end. Database: A database:branch route such as mydb:main. Passed through with its capitalisation intact — the only connector where that is true

Can I join Xata 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 Xata use the PostgreSQL connector?

Yes. Xata 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 Xata where the work happens.

Start with Free: every connector type, 2 data sources and 1 Network Agent. Add plan allowances as your needs grow.