Connect Claude to your database

Staff ask about orders, parts or jobs, and Claude answers from a read-only copy of your database. In the example below, a sync process reads the source while AI questions run against a separate copy. Prices and personal contact details are excluded from that copy.
Running for clientsCan build

SQL Server, PostgreSQL, MySQL, SharePoint lists and Dataverse

A usable API or database gives us a starting point. We check the available records, actions, permissions and vendor terms before confirming what we can connect.

Databases and list stores we can connect
SystemHow we connectStatus
MySQLA read-only login and a synced copy, as in the pattern below
Running for clients
PostgreSQLHosts the synced copy in the example below. A direct connection is scoped separately
Running for clients
Microsoft SQL ServerA read-only login or a read replica, with fixed queries
Can build
SharePoint listsMicrosoft Graph, with access limited to the sites you choose
Running for clients
Microsoft DataverseMicrosoft’s own Dataverse MCP server, set up for your roles, or the Dataverse Web API with the narrowest role
Vendor connector availableCan build

If there is no usable API or database access, we will tell you and suggest another route.

How the replica pattern works

One pattern we run today, for a job and quoting system on an end-of-life MySQL database.

  1. A small box on your site reads the source database with a login that can only read.
  2. Every 15 minutes it sends the rows that changed, and a full check runs every morning.
  3. Prices, costs and personal details are stripped on site, before anything is sent.
  4. The copy lives in your portal’s own database, and Claude reads only the copy.
  5. Nothing is ever written back to the source.

What staff ask it

  • What is this order up to?
  • Which of this customer’s orders are still pending?
  • Do we already have a part like this bracket on file for this customer?
  • How many orders did each customer group send us, and how many are delivered?
  • How fresh is this data?

These are example questions written from the connector’s tool list. They are not quotes from a client.

How Claude answers the second question

A sample outline of the reply.

  1. Find the customer and confirm the one match.
  2. Give a count, then a table of order number, created date, required-by date and status, with no dollar values.
  3. Close with the time of the last sync, so the person knows how fresh the answer is.

Fixed questions, no writes

What this replica implementation can and cannot do
RequestAllowedWhy
Order status, customer orders, part searchYesEach is a fixed, typed query with a row limit
Order counts by customer groupYesCounts and a status breakdown only
Prices, costs and quotesNoStripped before the data leaves your site
Customer emails, phones, addresses and signaturesNoStripped on site and rejected on arrival
Writing to the databaseNoThere are no change tools, and the copy is one way

What this example excludes

Pricing and personal contact fields are excluded from this replica. Other builds need their own agreed scope.

  • Stripped on site: the on-site box removes the fields and stops if one ever appears.
  • Rejected on arrival: the receiving end refuses any batch that carries a forbidden field.
  • Nowhere to store it: the copy’s tables have no columns that could hold those fields.
  • Tested: automated tests check that no tool result carries a forbidden field.
  • Signed in: staff use their own Microsoft 365 account, and only named, assigned users get in.
  • Logged: one audit record for every call.

What to expect

  • Updates are normally scheduled every 15 minutes. Check the last successful sync, because an interruption can leave the copy older.
  • Rows deleted at the source drop out at the next morning’s full check, not straight away.
  • The copy holds only what you agree to sync. In the pattern above that is parts, customers and orders, with no line items or finance data.
  • If the on-site box restarts for patching, syncs pause until it is back, and we are told when it restarts.

Questions about connecting your database

No. In this pattern Claude never touches the live system. It reads a copy, and nothing is ever written back.

Not in this pattern. Prices, costs and personal details are stripped before the data leaves your site, the receiving end rejects them if they appear, and the copy has nowhere to store them.

Updates are scheduled every 15 minutes, with a full check each morning. An interruption can make the data older. Check the last successful sync shown with the answer.

Often it is the reason to use a copy. One system we connect runs on an end-of-life MySQL database, so a small on-site box reads it with a read-only login and Claude’s questions never add load to it.

Not in the replica implementation described here. There is no general query tool. Each tool is a fixed, typed question, such as order status or customer orders, with limits on how many rows it returns.

Tell us which database your business runs on

Start with a free discovery call. We will tell you whether a direct read-only connection or a synced copy suits it.
Office
1/16 Dover Drive, Burleigh Heads QLD 4220
  • What happens next?

    Our team will read your enquiry, get in touch to understand what you need and agree the next step with you.

Ready to secure and simplify your IT? Talk to a GCIT expert today.