Skip to content

Start building

Integration · Databases

AI agents for MySQL

Read and query a MySQL database directly: Amazon RDS and Aurora MySQL, Google Cloud SQL, Azure, PlanetScale, or your own server with a public address.

Actions
5
Read
4
Write
1

Actions

What your agents can do in MySQL

Read and query a MySQL database directly: Amazon RDS and Aurora MySQL, Google Cloud SQL, Azure, PlanetScale, or your own server with a public address. Lists tables, describes their columns and keys, pages through rows and runs read-only SQL; writes only when the connection allows them.

Read 4

Look things up. Nothing changes.

  • List tables

    Lists the tables and views this user can see, with their database and an estimated row count, 200 at a time by database then name.

  • Describe a table

    One table's or view's columns (name, type, nullable, default), primary key, foreign keys and indexes.

  • Read rows

    A page of a table's rows (up to 1,000), ordered by a column or by the primary key.

  • Run a read query

    Runs one read-only SQL statement (SELECT, WITH, SHOW, EXPLAIN) and returns up to max_rows rows (default 200, at most 1,000 and about 190 KB; very large values are cut to a preview and cut says so).

Write 1

Create, change or send.

  • Run a write statementDeletes data

    Runs one statement that changes data (INSERT, UPDATE, DELETE, MERGE) with values in params (%s placeholders (write %% for a literal %)) and returns the rows affected.

A person can approve first

Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.

Connection

How it connects

Connect it once in the console, then give it to the agents and workflows that need it.

Direct connection

Connect straight to your MySQL database with its address and a database user, directly or through an SSH tunnel.

Settings

  • Host

Kept safe

  • Credentials are stored encrypted with your organization's own keys.
  • They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
  • Calls go only to the tool's own servers.

How we protect your data

Ideas

Ideas to start with

Starting points made only from the actions above. Mix them with any other tool your agents can use.

  • 01

    Ask about your MySQL data

    Ask a question in plain words. The agent can list tables, describe a table or read rows in MySQL, then answers with what it found.

  • 02

    Let an agent update MySQL

    Have the agent run a write statement in MySQL as part of a larger task. Turn on approval and a person signs off on each change first.

  • 03

    Share what it finds in Slack

    Give one agent MySQL and Slack: it can list tables in MySQL and post a summary to a Slack channel in the same run.

FAQ

MySQL and MyDeepAgents

Can MyDeepAgents connect to MySQL?

Yes. The MySQL connector has 5 actions: 4 read and 1 makes changes. Your agents can call them as tools, and your workflows can run them as steps.

How do I connect MySQL?

Connect straight to your MySQL database with its address and a database user, directly or through an SSH tunnel. The connection also asks for: Host. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.

Can an agent change data in MySQL without asking?

Only if you let it. Its one action that changes data can delete data, so it asks a person first by default.

Can I use MySQL in workflows as well as agents?

Yes. Every MySQL action also works as a step in a workflow, and the same connection serves your agents and your workflows.

Early access

Put MySQL to work

Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.