New: one score for how consistent your answers are. See more

Connect MySQL to Claude / ChatGPT

Ask MySQL questions in Claude or ChatGPT, with your definitions and access rules applied. No warehouse needed: connect the app database you already have, through a read-only user.

Connects with a read-only database user

What to ask for

  • “How many accounts signed up each week this quarter, and how many of them created a first project?”
  • “Which customers placed an order last month but none this month?”
  • “What is the average time between signup and first payment, by plan?”
  • “Which features did our ten largest accounts use most in the last 30 days?”

At a lot of startups there is no warehouse yet. The answers live in the production MySQL database, and the one engineer who knows the schema gets every question. Contextflo connects that database to the Claude or ChatGPT your team already uses, so people ask in plain English and the engineer stops being the bottleneck.

How it connects

Contextflo connects with a dedicated MySQL user that has SELECT on the databases you choose, and nothing else. Point it at a read replica if you have one. You enter the host, port, database, username and password in Contextflo's form (or paste a connection string), and the credentials are stored encrypted.

Queries run live on your database. We never store raw data from your tables, and we don't store query results.

What Contextflo adds

An app database is full of tables that make sense to the people who built them and to nobody else. Contextflo lets the rest of the team self-serve on it, from whichever AI they use, while the engineering and data team gets its time back:

  • Table context. Plain-language descriptions of tables and columns, generated from your schema or your code repo, then reviewed by your team. This is where "status 3 means churned" gets written down once.
  • Saved queries and metrics. The agreed SQL for numbers like active accounts, reused by the AI instead of re-derived.
  • Group access control. Admins choose which tables each group can query, so nobody asks the AI about a users table they shouldn't see.
  • Audit log. Every question and query is logged per person.

Permissions

The MySQL grants are the ceiling: Contextflo can only read the databases the user has SELECT on. Inside that, groups in Contextflo narrow which tables each team can query. See access control.

Set it up

  1. Create a read-only user with GRANT SELECT on the database you want to expose.
  2. If you have a read replica, use its host.
  3. Make sure the database accepts connections from Contextflo's servers.
  4. In Contextflo, go to Data Sources, add a MySQL connection, and enter the host, port, database, username and password.
  5. Pick the tables your team asks about, then ask your first question in Claude or ChatGPT.

Full setup guide →

FAQ

Should I connect a read replica or the primary?

A read replica, if you have one. An exploratory question over a large table then runs against the replica, not the database serving your app. Contextflo works with either, and the setup is the same.

Can it slow down production?

Every question runs a real query on the database you connect, so a heavy query over a large table uses real resources. Connecting a read replica keeps that load off your primary. The user you create has SELECT only, so a query can read but never change your data.

Do we need a data warehouse first?

No. Many teams start by connecting the MySQL database behind their app. You can add a warehouse later and connect it alongside.

Which hosted MySQL services work?

Any hosted MySQL, including AWS RDS, Google Cloud SQL, Azure Database for MySQL and PlanetScale, as well as self-hosted MySQL. The database has to accept connections from Contextflo's servers.

Start free with MySQL