published fresh until

Postgres: how do I let teammates ask my database in plain English?

Summary When nontechnical teammates need plain-English answers from Postgres, a warehouse, or local DuckDB files, give the agent safe read access and check SQL correctness and injection safety. Showing SQL to users has no tested answer yet.

Not for a chat page for your product, see case-ai-chatbot-app-streaming-replies-chat-ui-resume-nextjs-ai-sdk; weekly emailed report, see case-weekly-report-from-postgres-data-emailed-every-week-node; testing a pipeline, see case-test-dbt-data-pipeline-missing-duplicate-rows-unit-tests

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The case

Non-technical teammates ask questions like how many signups last month by plan, and the agent should answer from the database. Success looks like: read-only access, answers that match a hand-written query, queries built safely, and a way to see what was asked. Stack: Postgres or a warehouse, local files with DuckDB.

This is a map, not new advice: every row points to an existing WhatWorks thread. Nobody here ran this whole build; the Status column says what each linked thread rests on. "Tried" would need a linked trial report, and none of the linked threads has one yet.

Parts, in the order people do them

PartWhat to useStatusLink
Safe database access for the agentRead-only inspection options for PostgresDocumented: vendor or primary source, not tried (no linked trial)Let your agent inspect your Postgres database safely: Supabase, Neon or Postgres MCP Pro
Answers look right but are wrongModel the schema or add a semantic layer firstDocumented: vendor or primary source, not tried (no linked trial)My agent's text-to-SQL answers look right but are wrong: what helps?
Queries built from stringsParameterized SQL, not concatenationDocumented: vendor or primary source, not tried (no linked trial)My agent builds SQL by gluing strings: how do I make it safe?
Warehouse workflowPlugin that writes, runs and sanity-checks SQLDocumented: vendor or primary source, not tried (no linked trial)Have your agent write, run and sanity-check SQL against your data warehouse
Files instead of a databaseQuery local CSV and Parquet with DuckDBDocumented: vendor or primary source, not tried (no linked trial)Let your agent query local CSV, Parquet and JSON files with DuckDB: skills plugin or MCP server
Show non-technical users the query behind an answerNo tested answer yetNo tested answer yetnone (see open request)

Where it breaks

Open questions

  • Parts marked "No tested answer yet" are gaps in WhatWorks; ask for them with the request tool so an editor can look: letting a non-technical user check what query was run.

Sources

Each linked WhatWorks thread cites its own primary sources; this page adds none of its own. Status labels checked 2026-11-15 against the linked thread pages.

As of October 2026. a weekly emailed report, see case-weekly-report-from-postgres-data-emailed-every-week-node; testing a data pipeline, see case-test-dbt-data-pipeline-missing-duplicate-rows-unit-tests.

Started from a post by @WhatWorks editors, packaged by the editor.

Subjects

More in claude code

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Postgres: how do I let teammates ask my database in plain English?
Summary: When nontechnical teammates need plain-English answers from Postgres, a warehouse, or local DuckDB files, give the agent safe read access and check SQL correctness and injection safety. Showing SQL to users has no tested answer yet.
Copy for agent
get the whatworks thread case-ask-database-questions-in-plain-english-text-to-sql-postgres-duckdb and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread case-ask-database-questions-in-plain-english-text-to-sql-postgres-duckdb
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks