Skip to main content
Mintive is the new name for MintMCP.Read the announcement

Set up the MySQL Toolbox MCP server

MySQL Toolbox is a hosted Mintive connector, built on Google's MCP Toolbox, that exposes SQL and database-introspection tools against a single MySQL database. You choose which tools it exposes (e.g., ready-made tools for listing tables or analyzing query plans, plus your own parameterized SQL) by declaring them in a configuration value.

Prerequisites​

  • A Mintive admin account
  • A MySQL database Mintive can reach: a managed cloud MySQL (e.g., Amazon RDS, Cloud SQL, PlanetScale), any host reachable over the internet, or a server inside your network reached through a Private Network
  • Credentials for a database user

Create a connector user​

All users of this connector share a single database connection using the user you configure, so create a dedicated, least-privilege user rather than reusing an admin account.

  1. Connect to your MySQL server as a user with sufficient privileges and create the connector user. Replace mydb with your database name and choose a strong password:
CREATE USER 'mintmcp_ro'@'%' IDENTIFIED BY 'choose-a-strong-password';
GRANT SELECT ON mydb.* TO 'mintmcp_ro'@'%';

The '%' host wildcard allows connections from any IP; narrow it to Mintive's egress IP (see Allow Mintive to reach the database) once you know it.

  1. To enable the mysql-list-active-queries tool, which reads information_schema.processlist and innodb_trx, also grant PROCESS:
GRANT PROCESS ON *.* TO 'mintmcp_ro'@'%';

PROCESS lets the user see all running queries and transactions, not just their own (similar to PostgreSQL's pg_monitor).

  1. To enable the mysql-list-table-stats tool, which reads performance_schema, also grant SELECT on it:
GRANT SELECT ON performance_schema.* TO 'mintmcp_ro'@'%';

performance_schema must also be enabled on the server. It's on by default on managed providers like Amazon RDS and Cloud SQL, but some self-hosted builds turn it off.

A few things to keep in mind:

  • GRANT SELECT ON mydb.* covers only the named database. If your data lives in multiple databases, add a grant for each one.
  • PROCESS is a global privilege required only if you enable the mysql-list-active-queries tool. Skip it if you don't need active-query monitoring.
  • SELECT ON performance_schema.* is required only if you enable the mysql-list-table-stats tool. Skip it otherwise.
  • The user is the real boundary on what the connector can do. If you expose write or arbitrary-SQL tools (see below), they can only run what this user is granted, so keep it read-only unless you intend to allow writes.

Choose how Mintive reaches the database​

The setup dialog asks for an Authentication Method, which is how the connector reaches your database:

  • Direct connection if the database is reachable from the internet, usually behind an IP allowlist
  • Private Network if it's only reachable inside your infrastructure

Direct connection​

MySQL Toolbox uses a dedicated egress IP shown on its Mintive connector settings page.

  1. In Mintive, go to MCP store > Manage store and open the MySQL Toolbox connector page.
  2. Note the Egress IP shown there.
  3. If your database or its firewall / security group restricts inbound traffic, add that IP to the allowlist and confirm port 3306 is open. For managed providers like Amazon RDS or Cloud SQL, add it to the instance's authorized networks.

Private Network​

Set up a Private Network with a route to the database that has Hosted connectors enabled, and note the route's name or pnrte_... id. The connector dials that route instead of a hostname, so the database needs no public listener or allowlist.

Through a route, the driver sees the address Mintive supplies rather than your server's hostname. MYSQL_TLS=true fails certificate verification, so use skip-verify to keep the connection encrypted.

Define the tools​

The connector exposes only the tools you declare in the TOOLBOX_TOOLS environment variable. Every tool runs against the database you configure in Add MySQL Toolbox to Mintive, so tools never set a source. Each tool has a kind and an optional description, and you can group tools into named toolsets.

There are two categories of tools:

  • Ready-made tools: built-in introspection and monitoring tools that need only a kind and a description. Their queries are built in and they expose their own input parameters (e.g., mysql-list-tables accepts an optional list of table names), so they never take a statement.
  • Custom SQL tools: mysql-sql runs a fixed, parameterized statement you write; mysql-execute-sql runs an arbitrary statement supplied by the caller.
{
"tools": {
"list_tables": { "kind": "mysql-list-tables", "description": "List tables in the database." },
"get_customer": {
"kind": "mysql-sql",
"description": "Look up a customer by id.",
"statement": "SELECT id, name, created_at FROM customers WHERE id = ?",
"parameters": [
{ "name": "id", "type": "integer", "description": "Customer id." }
]
},
"execute_sql": { "kind": "mysql-execute-sql", "description": "Execute an arbitrary SQL statement." }
},
"toolsets": {
"read": ["list_tables", "get_customer"],
"write": ["execute_sql"]
}
}

Available tools​

Pick a category to see what each tool returns, then expand Copy as JSON to grab a ready-to-paste config for that category. Ready-made tools need only a kind and a description; mysql-sql and mysql-execute-sql are the custom SQL tools.

KindRequired fieldsPurpose
mysql-sqlstatement, plus parameters (bound ?) and/or templateParameters ({{.name}})A fixed query you define and expose as a single tool
mysql-execute-sqlnoneRun an arbitrary SQL statement passed by the caller (read or write)
Copy as JSON
{
"tools": {
"top_customers": {
"kind": "mysql-sql",
"description": "Highest-spending customers.",
"statement": "SELECT name, total FROM customers ORDER BY total DESC LIMIT ?",
"parameters": [
{ "name": "limit", "type": "integer", "description": "Number of rows to return.", "default": 10 }
]
},
"execute_sql": { "kind": "mysql-execute-sql", "description": "Execute an arbitrary SQL statement." }
},
"toolsets": { "sql": ["top_customers", "execute_sql"] }
}

MySQL-only lock​

The connector only talks to MySQL. If TOOLBOX_TOOLS declares its own sources or uses a tool kind outside mysql-*, the connector refuses to start and logs the reason, so it never connects anywhere unexpected.

Add MySQL Toolbox to Mintive​

  1. Go to app.mintmcp.com/vmcps?tab=manage-store.
  2. Find MySQL Toolbox and click to install it.
  3. Pick the Authentication Method you chose in Choose how Mintive reaches the database and fill in its fields.
FieldValue
Host (MYSQL_HOST)Database hostname or IP
Port (MYSQL_PORT)Port, pre-filled with 3306
Database (MYSQL_DATABASE)Database name
User (MYSQL_USER)Database user (e.g., mintmcp_ro)
Password (MYSQL_PASSWORD)User password, stored as a secret
TLS Mode (MYSQL_TLS)false, preferred (pre-filled), skip-verify, or true
Tool Definitions (TOOLBOX_TOOLS)The tool definitions (see Define the tools)

Most managed databases require TLS, so set TLS Mode to true to verify the server certificate, or skip-verify to encrypt the connection without verifying it. The default, preferred, attempts TLS and falls back to an unencrypted connection if the server does not offer it.

Click Save. On startup the connector connects to your database and loads your tools, and it becomes available once the connection succeeds. If the database is unreachable or TOOLBOX_TOOLS is invalid, the connector fails to start and its logs say why.

Security considerations​

  • Every user queries your database as the single configured user, so use a read-only, least-privilege user unless you intend to allow writes.
  • The MySQL-only lock prevents the connector from reaching other databases or services, but it does not restrict SQL operations. The mysql-execute-sql tool and any write mysql-sql tools can run whatever the user is granted, so the database user is the real guardrail. Omit those tools, or keep the user read-only, to prevent writes.
  • Connection details are stored as Mintive global environment variables; the password is held as a secret.
  • Prefer MYSQL_TLS=true (or skip-verify) for managed or remote databases.
  • Combine the dedicated egress IP with a database firewall allowlist so only Mintive can reach the database, or use a Private Network so the database needs no public listener at all.

Next steps​