Connect PostgreSQL to Claude
Connect a PostgreSQL table to Claude with the Windsor.ai connector and ask about it in plain English.
Count rows by stage, total revenue by channel or compare periods from a table in your database, without writing SQL for each question.
Add your database details and the table, connect Windsor.ai in Claude, ask your first question.
What you can do with PostgreSQL data in Claude
With a PostgreSQL table connected through Windsor.ai, Claude reads its columns and rows. Four common uses:
Sum a table without SQL
Ask for counts and totals by any column, such as leads by pipeline stage or revenue by channel. Claude pulls the rows through Windsor.ai and adds them up.
Compare table data with ad spend
With Google Ads or Meta Ads in the same Windsor.ai account, Claude can put revenue from your table next to ad spend for the same days or campaigns.
Compare two periods
Name the date column and two date ranges. Claude pulls both and shows what changed by stage, channel or campaign.
Find rows with empty values
Claude counts how many rows have an empty value in each column, for example leads with no revenue or no campaign name.
Using Windsor.ai to connect data from PostgreSQL to Claude
Windsor.ai reads the PostgreSQL table you add, and its columns become the fields Claude can ask for. Each table is added as its own account. Claude doesn’t write or run SQL in your database. It gets the rows from Windsor.ai and does the sums itself. The connection is read-only: PostgreSQL has no write actions in Windsor.ai (checked on 23 November 2026). For extra safety, connect with a database user that only has read access to the table.
On 23 November 2026 we asked Claude about our own test table, dummy_data, which holds 45 sample leads with pipeline stage, channel, campaign and revenue. Claude found 37 leads from Google Ads with 15 Closed Won and $91,550 in revenue (a 40.5% win rate), and 8 from Facebook Ads with 3 Closed Won and $16,300 (37.5%). It also noted that 8 leads are too few to judge Facebook Ads on. We checked each number against the same rows pulled from Windsor.ai. The PostgreSQL to Claude how-to covers the setup in more detail. To use the same data in ChatGPT, see the PostgreSQL to ChatGPT connector page.
How to connect PostgreSQL to Claude with Windsor.ai
Watch the video or follow the step-by-step guide to connecting PostgreSQL to Claude. The PostgreSQL field reference explains how table columns become fields.
Connect Windsor.ai in Claude
In Claude, open Customize, then Connectors, search for Windsor and click Connect. A Windsor.ai page opens. Click Back to Claude to finish. You can also open the Windsor.ai listing in the Claude directory and click Connect to Claude.
Ask Claude about your table
Open a new chat, name the table and ask your question, such as leads and won revenue by channel.
FAQs
Which PostgreSQL details do I need?
The host, port, database user and password, database name, schema and table name. Use a user that can read the table.
Does Claude run SQL in my database?
No. Windsor.ai reads the table, and Claude does the sums on the rows it gets back. It doesn’t join tables in PostgreSQL. To combine tables, create a view in PostgreSQL and add the view as the table in Windsor.ai.
Can Claude change data in PostgreSQL?
No. The connection is read-only: PostgreSQL has no write actions in Windsor.ai (write actions list, checked on 23 November 2026). A database user with read access only keeps it that way on the database side too.
What prompts can I use with PostgreSQL data in Claude?
Name the table in your question. For example:
-
Count leads and Closed Won by channel in my leads table, with the win rate.
-
How many leads are in each pipeline stage right now?
-
Which rows have no value in the revenue column?
The free forever plan reaches back 30 days. A question about a quarter or a year needs a paid plan.
How much does it cost to connect PostgreSQL to Claude?
Windsor.ai has a free forever plan with 1 data source and the last 30 days of data. Paid plans start at $19/month for 3 sources, billed annually. See the pricing page.
Tired of manual PostgreSQL data exports? Try Windsor.ai today to automate your reporting

