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.

Free forever plan Paid plans from $19/month
logo connect
Windsor.ai is your proven PostgreSQL to Claude connector
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2

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

Supported fields: 5 dimensions

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.

Claude summarizing a PostgreSQL leads table through Windsor.ai: leads, Closed Won, win rate and revenue by channel
Join 40,000+ businesses that trust Windsor.ai to streamline PostgreSQL to Claude integration
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma

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.

1

Add your PostgreSQL table to Windsor.ai

Choose PostgreSQL as your data source in Windsor.ai. Enter the host, port, user, password, database, schema and table, and click Add Account. Use a database user that can read that table.

Windsor.ai onboarding page with PostgreSQL selected as the data source
Windsor.ai listing in the Claude connector directory with the Connect to Claude button
Claude summarizing a PostgreSQL leads table through Windsor.ai: leads, Closed Won, win rate and revenue by channel

FAQs

What PostgreSQL data can Claude read through Windsor.ai?

The columns of the table you add when you connect PostgreSQL. Each table is added as its own account, and its columns become fields, for example pipeline_stage, channel, campaign_name, revenue and created_at. Claude asks Windsor.ai for the columns it needs and gets the rows back. See the PostgreSQL field reference.

Tired of manual PostgreSQL data exports? Try Windsor.ai today to automate your reporting

Access your data from various sources in one place. Get started for free.
g logo
fb logo
big query data
youtube logo
power logo
looker logo