performance_schema. Use it for reporting, data sync, slow-query triage, index hygiene audits, and schema-aware agents — often alongside the Postgres connector when you operate both relational engines.
Prerequisites
- A MySQL server (5.7+ or 8.x) reachable from AgentRuntime (allowlist egress IPs if behind a firewall)
Host,Port,Database,User, andPasswordfor the target schemaSELECTfor reporting workflows;INSERT/UPDATE/DELETEonly when steps callmysql_execute_sqlfor mutationsperformance_schemaenabled for diagnostic tools (mysql_list_table_stats,mysql_list_active_queries)- project_contributor access
Connect in AgentRuntime
1
Create a connection
Go to Connections and click New custom connection to create a database connection with your MySQL credentials:
Host— server hostname or IP (e.g.db.example.com)Port— TCP port (default3306)Database— default schema for queriesUser/Password— authentication credentials
2
Add mysql MCP instance
Go to MCP, click Add instance for mysql, wire your connection on Instance config, set the profile active, and save.
3
Test with a schema listing
Add a workflow with a single mcp_call to
mysql_list_tables with output_format: "simple". Run it to confirm connectivity before production queries.4
Verify diagnostics access (optional)
Run mcp_call →
mysql_list_active_queries to confirm performance_schema access when you plan ops monitoring workflows.What you can build
- Daily ops digest —
mysql_list_active_queries+mysql_list_table_fragmentation→ LLM summary → Gmail or Slack alert. - Reporting pipeline —
mysql_execute_sqlSELECT on a schedule → transform rows → push to Google Sheets or a Postgres warehouse. - Index hygiene audit —
mysql_list_tables_missing_unique_indexes→ ticket creation in ClickUp or Wrike for tables without primary keys. - Approval-gated writes — human_task before
mysql_execute_sqlINSERT/UPDATE/DELETE on production tables.
Tools
Example
Fetch pending orders for a daily report:lua_script step:
Configuration
Troubleshooting
Related
- Integrations quickstart
- Postgres connector — similar SQL patterns for PostgreSQL
- Connector catalog
- Troubleshooting