Junction

How to ask your database questions in plain English with Claude or ChatGPT

By the Junction team · Published 24 November 2026 · 5 min read

The short answer

Most companies already know what they would ask: who owes us money, what do we owe our vendors, which customers have the biggest balances. The answers sit in a database that only one or two people can query. This guide shows how to let an AI assistant answer those questions directly, and how to keep that safe.

What you need before you start

You need four things: a database that holds the data, a login for it that can see only what you want asked about, an AI app that supports custom connectors, and a few numbers you already trust. Junction is the MCP server in the middle, so you do not build or host one yourself.

  • A database. SQL Server, PostgreSQL, MySQL, MariaDB, Oracle, Snowflake and BigQuery all work, and so does any system that offers a documented API.
  • A limited login. A user created for this purpose, with permission to read the tables you want to ask about and nothing else.
  • An AI app. Claude, ChatGPT, Gemini and Copilot can all use a custom connector. Check that your plan allows it.
  • Three answers you can check. Pick three figures from a report you run today. You will test against them.

Step 1: Create a login just for this

Give Junction its own database user instead of reusing an administrator or a person's login. Grant it permission to read just the schemas or tables you want to ask about. If the login is limited, a mistake or a clever prompt has a small area to reach, and you can switch it off without touching anyone else's access.

Step 2: Connect the database

Sign up, choose your database, enter its details and Junction tests the connection. Your password is stored encrypted and never shown again. A database inside your own network connects through a small agent that only dials out, so you open no inbound firewall ports.

Step 3: Let Junction find the tables

You do not have to write a data model. Once connected, Junction reads the database's own list of tables and columns, so the AI can ask about what is actually there. Passwords, keys, tokens and card numbers are never offered to the AI, and you can narrow everything else by role.

Step 4: Add Junction to your AI app

Copy your Junction address into your AI app's connector settings, sign in and switch the connector on in a chat. The steps differ slightly by app and plan, and menu names change. Our guide to connecting Claude to your accounting data walks through Claude, and the others follow the same pattern.

Step 5: Ask, then check

Start with questions that match the tables you connected, then compare each answer with a number you trust. If a figure is off, look for a different status filter or cut-off date before anyone relies on it. Every answer names its source, so you can see where the number came from.

Good first questions if your database holds invoices

  • What systems are connected to you, and what kind of business data can you access?
  • Show me the five customers with the highest outstanding balances.
  • Show me the outstanding vendor invoices. Which are the largest, and when are they due?
  • Which customer payments are overdue? Rank the customers by outstanding amount and show the invoices.
  • Give me a financial overview: pending customer invoices, outstanding vendor invoices, total receivables and payables.

How to keep it safe

Safety comes from layers, not from trusting the AI. Limit the database login, set who sees what by role, make sure values in a question can never become query text, and keep an audit trail. The table below shows what each layer does and where it is set.

LayerWhat it doesWhere you set it
Limited database loginCaps what Junction can reach, whatever anyone asksIn your database
RolesNarrows each person to chosen systems, tables, columns and rows. Access can only be narrowed, never widenedIn the Junction portal
Questions are never run as commandsThe AI picks from named fields; the values it supplies are bound parameters, never query textBuilt in
Encrypted loginsYour database password is stored encrypted and is never shown againBuilt in
Audit logRecords who asked what and whether it worked, never the valuesIn the Junction portal
Pass-through dataRows from your live systems pass through memory to answer the question and are not keptBuilt in

Before the team starts, read the MCP security checklist. For ideas on what to ask once you are connected, see the 40 construction AI questions cheat sheet.

Frequently asked questions

Can I ask my database questions in plain English?
Yes. Connect the database to Junction, add Junction to your AI app and ask in everyday words. The AI chooses among the tables and columns Junction exposes, and each answer names its source.
Do I need to write a data model first?
No. For a database with no hand-written model, Junction reads the database's own table and column list, so you can start asking straight away. You can narrow what each person sees by role.
Which databases work?
SQL Server, PostgreSQL, MySQL, MariaDB, Oracle, Snowflake and BigQuery, plus systems that have a documented API. A database inside your network connects through an outbound-only agent.
Can the AI change or delete my data?
Questions are never run as commands. The AI picks from named fields, the values it supplies are bound parameters, and the database login you give Junction should only have permission to read.
Is my data stored by Junction?
Your data passes through. Rows from your live systems go through memory to answer the question and are not kept. Junction logs who asked and whether it worked, never your data.

Ask your AI about your own systems

Junction connects the systems your teams run, from construction ERPs to ad platforms, to Claude, ChatGPT, Gemini and Copilot. Connect in minutes.