Databases & warehouses
MySQL MCP server for questions about orders, users and revenue
MySQL runs a great many web and commerce applications, from self-managed servers to Amazon RDS for MySQL, Aurora MySQL, Azure Database for MySQL and Cloud SQL. The orders, carts, users and catalog tables in it are often the freshest record of how the business is doing.
MySQL
Available now: Nexatron answers MySQL questions with user-level access that inherits your existing MySQL permissions.
Updated
Can Claude, ChatGPT or Copilot access MySQL data?
Yes. To connect Claude, ChatGPT or Copilot to MySQL, add Nexatron from Claude’s connector directory, or by its MCP server URL in ChatGPT and Copilot. Then connect it in Nexatron. Users sign in with their own MySQL account (or your SSO), and Nexatron inherits their existing permissions.
What MySQL data a question reads
- Databases and InnoDB tables
- Application tables such as orders, order_items, customers and products, with their indexes and foreign keys.
- Views
- Reporting views your team defines over the application schema.
- information_schema
- Column names, types and comments, read at setup so questions use the right fields.
- Account privileges
- GRANTs on databases, tables and columns that limit what each MySQL account may read.
MySQL questions people ask
- What was gross merchandise value by day for the last 14 days?
- Which products were added to carts most often last week but rarely purchased?
- How many customers placed a second order within 60 days of their first?
- Which payment methods had the highest refund rate this month?
- What share of orders shipped within two days, by fulfillment center?
Who asks MySQL questions
- E-commerce and operations
- Sales, carts, refunds and fulfillment questions on the store’s own database.
- Developers and data owners
- A read-only, auditable way to let colleagues ask questions without sharing a database password.
Worked example: a governed MySQL answer
One question, and everything the answer shows so you can check it. The figures are invented sample data.
How many orders were placed each day over the last week?
Approved definition: Orders placed
Orders created in the day (store time zone), excluding cancelled and test orders, with order value before tax and shipping.
Source
- shop.orders
Query (SQL (MySQL))
SELECT DATE(o.created_at) AS order_date,
COUNT(*) AS orders,
SUM(o.subtotal_amount) AS order_value
FROM shop.orders o
WHERE o.status NOT IN ('cancelled', 'test')
AND o.created_at >= CURDATE() - INTERVAL 7 DAY
AND o.created_at < CURDATE()
GROUP BY DATE(o.created_at)
ORDER BY order_date;Result
| Date | Orders | Order value |
|---|---|---|
| Oct 6 | 412 | $31,840 |
| Oct 7 | 398 | $30,110 |
| Oct 8 | 455 | $35,270 |
| Oct 9 | 431 | $33,020 |
| Oct 10 | 502 | $39,660 |
| Oct 11 | 367 | $27,480 |
| Oct 12 | 344 | $25,930 |
Common pitfalls when asking MySQL questions
Each one is settled once in an approved definition, so every person and every assistant gets the same answer.
DATETIME has no time zone
DATETIME values are stored as written, while TIMESTAMP converts to the session zone. The definition fixes the zone, so daily totals do not shift.
Case-insensitive comparisons
Default collations treat 'Cancelled' and 'cancelled' as equal, and may ignore trailing spaces. Status filters can match more rows than expected.
Zero dates
Older schemas use '0000-00-00' as "no date". Without a filter these rows fall into odd buckets or break date math.
How Nexatron connects to MySQL
- API and sign-in
- A direct MySQL connection over TLS, with each user’s own MySQL account, by password or AWS IAM authentication for RDS and Aurora.
- User-level access
- Each question runs as the user’s own account, so its GRANTs limit what can be read. Queries are single read-only SELECTs, checked before they run, and every answer shows the SQL and tables used.
- Read-only
- Questions only read MySQL; asking a question never changes MySQL data.
- Setup
- An administrator enables MySQL in Nexatron. Users link their own MySQL account, or sign in through your SSO, the first time they ask. Queries run in MySQL, with no warehouse to load.
MySQL in Claude’s connector directory
Nexatron is listed in Claude’s MCP connector directory, so a Claude user can add it without a custom server URL. Its hosted MCP server answers MySQL questions for Claude, ChatGPT and Microsoft Copilot with user-level access, and the same governed answer as the Nexatron app. It is Nexatron’s own server, not one published by the vendor.
- Connect MySQL to your Nexatron workspace.
- In Claude, add Nexatron from Claude’s connector directory. In ChatGPT or Copilot, add a custom MCP connector with Nexatron’s server URL.
- Sign in with your own Nexatron identity (OAuth 2.1), then ask your MySQL questions.
Server URL for a custom connector: https://api.nexatron.io/api/v1/mcp
MySQL questions and answers
- Can Claude query a MySQL database directly?
- Yes. Connect MySQL to your Nexatron workspace, add Nexatron from Claude’s connector directory, and users link their own MySQL account. Claude asks through Nexatron, and every answer comes back with the SQL and tables it used.
- Does it support MariaDB?
- The connector speaks the MySQL protocol and dialect. MariaDB is close but not identical, so check your version with us before relying on it.
- Does a long query slow down my application?
- Point the connection at a read replica for analytical questions, so ad hoc queries never compete with the application. Every query is a single read-only SELECT, checked before it runs, and MySQL’s own resource limits for the account still apply.
- Which MySQL versions and hosts work?
- MySQL 8 servers reachable over TLS, including Amazon RDS for MySQL, Aurora MySQL, Azure Database for MySQL and Cloud SQL for MySQL. Older 5.7 servers usually work for read queries, but window functions and common table expressions need MySQL 8. MySQL 8.0 reached end of life in April 2026, with 8.4 as the LTS release, so check your version’s support status.
- Can AI write MySQL queries safely for business users?
- With guard rails, yes. Questions are read-only, the connection’s MySQL user is the outer limit, queries follow approved definitions, and each answer shows its SQL. Grant the user SELECT on only the schemas you want answered.
- Do I still need a MySQL dashboard tool?
- Keep dashboards for the views you watch daily. Nexatron answers the questions in between, with the same definitions, without someone building a new chart first.
Try Nexatron with your MySQL
Tell us the MySQL questions you want answered and who asks them, and we plan the demo around them. Do not include credentials or confidential records.
MySQL is a trademark of its owner.