← All integrations

Data & Storage · Integration

Embed a MySQL integration in your product

Add MySQL to your product for your customers, and give your AI agents governed access to it.

Embed a MySQL integration so your product can read and write data your customers keep in their own database, without you building and securing a connection layer per customer. Schemas differ per customer and change without warning, so table and column mapping is configuration rather than code, and access is limited to the database user the customer grants. fastn stores credentials encrypted per tenant, handles connection pooling, paginated reads and query throttling, so a large read does not compete with the customer's own application traffic.

In your product

Embedded for your customers. Per-tenant auth, customized per customer, monitored by fastn.

  • Let customers connect their own MySQL database so your product queries the tables they choose to expose.
  • Write or update rows from your product within a scoped database user's permissions.
  • Map each customer's schema as configuration, so a column rename on their side is not a release on yours.
  • Keep reads paginated and throttled so a bulk load does not slow the database their product runs on.

For your AI agents

Governed, audited access for the agents you build, through the MCP server.

  • An agent runs a scoped read-only query before it answers a question about the customer's data.
  • An agent inspects table and column names so it writes a valid query rather than guessing.
  • An agent performs an approved write within governed permissions, with the statement logged per tenant.

Example prompt

Query this week's failed transactions from the payments table and group them by error code.

Set up MySQL in 4 steps

  1. 01Open the MySQL connector from your fastn dashboard.
  2. 02Have each customer supply their own connection details and a scoped database user, stored encrypted per tenant.
  3. 03Map the tables, columns and queries your product uses, then enable the actions you need.
  4. 04Call them from your product, or expose them to an agent through the MCP server.

Why teams use the MySQL integration

  • Ship a MySQL integration without building it. Your customers connect their own MySQL account inside your product and work their records, datasets and fields there, and nothing lands on your team.
  • Handle the part that actually costs time: schemas differ per customer and change without notice, and volumes can be large. fastn handles the auth, token refresh, rate limits and pagination, and when MySQL changes, its maintainer agent proposes a tested fix, so a MySQL update does not start in your backlog.

Used by these teams

MySQL integration FAQ

Can AI agents use this MySQL integration?

Yes, through the fastn MCP gateway, scoped per customer and audited. An agent runs a scoped read-only query before it answers a question about the customer's data. For example: "Query this week's failed transactions from the payments table and group them by error code."

Does the MySQL integration adapt when a customer's schema changes?

Schema and field mapping is configuration per customer, so a change on their side is a mapping update rather than a code change and a release on yours.

How are large MySQL reads handled?

Pagination and throttling are handled for you, and initial backfills are rate-limited so a large import does not exhaust a customer's API allowance.

What can I build with the MySQL integration?

A common starting point: connect their own MySQL database so your product queries the tables they choose to expose. The use cases above list the rest.

Add MySQL to your product

Start free with 3 customer connections. No sales call required, and no per-customer integration code.