Alibabacloud Adb Mysql MCP Server

AnalyticDB for MySQL MCP Server is a universal interface between AI Agents and [AnalyticDB MySQL](https://www.alibabacloud.com/zh/product/analyticdb-f

Local serverstdioPython

What is the Alibabacloud Adb Mysql MCP Server?

AnalyticDB for MySQL MCP Server is a universal interface between AI Agents and AnalyticDB MySQL. It

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
describe_db_clustersList ADB MySQL clusters in a region
describe_db_cluster_attributeGet detailed cluster attributes
describe_cluster_access_whitelistGet cluster IP whitelist
modify_cluster_access_whitelistModify cluster IP whitelist
describe_accountsList database accounts in a cluster
describe_cluster_net_infoGet cluster network connection info
get_current_timeGet current server time
describe_db_cluster_performanceQuery cluster performance metrics (CPU, memory, QPS, etc.)
describe_db_cluster_health_statusQuery cluster health status
describe_diagnosis_recordsQuery SQL diagnosis summary records
describe_diagnosis_sql_infoGet SQL execution details (plan, runtime info)
describe_bad_sql_detectionDetect bad SQL impacting cluster stability
describe_sql_patternsQuery SQL pattern list
describe_table_statisticsQuery table-level statistics
create_accountCreate a database account
modify_db_cluster_descriptionModify cluster description
describe_db_cluster_space_summaryGet cluster storage space summary
describe_audit_log_recordsQuery SQL audit log records
describe_executor_detectionCompute node diagnostics
describe_worker_detectionStorage node diagnostics
describe_controller_detectionAccess node diagnostics
describe_available_advicesGet optimization advices
kill_processKill a running query process
describe_db_resource_groupGet resource group configuration
describe_excessive_primary_keysDetect tables with excessive primary keys
describe_oversize_non_partition_table_infosDetect oversized non-partition tables
describe_table_partition_diagnoseDiagnose table partitioning issues
describe_inclined_tablesDetect data-skewed tables
execute_sqlExecute SQL on an ADB MySQL cluster. Read-only SQL is allowed by default; full SQL execution requires ENABLE_SQL_WRITE_TOOLS=true
get_query_planGet EXPLAIN execution plan for a single SELECT or read-only WITH CTE statement
get_execution_planGet EXPLAIN ANALYZE actual execution plan for a single SELECT or read-only WITH CTE statement

How to install the Alibabacloud Adb Mysql MCP Server

{
  "mcpServers": {
    "adb-mysql-mcp-server": {
      "name": "adb-mysql-mcp-server",
      "type": "stdio",
      "isActive": true,
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/alibabacloud-adb-mysql-mcp-server",
        "run",
        "adb-mysql-mcp-server"
      ],
      "env": {
        "ADB_MYSQL_HOST": "your_adb_mysql_host",
        "ADB_MYSQL_PORT": "3306",
        "ADB_MYSQL_USER": "your_username",
        "ADB_MYSQL_PASSWORD": "YOUR_ADB_MYSQL_PASSWORD",
        "ADB_MYSQL_DATABASE": "your_database",
        "MCP_TOOLSETS": "sql"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
ADB_MYSQL_HOSTDeclared in the maintainer’s client configuration.Check documentation
ADB_MYSQL_PORTDeclared in the maintainer’s client configuration.Optional
ADB_MYSQL_USERDeclared in the maintainer’s client configuration.Optional
ADB_MYSQL_PASSWORDDeclared in the maintainer’s client configuration.Check documentation
ADB_MYSQL_DATABASEDeclared in the maintainer’s client configuration.Check documentation
MCP_TOOLSETSDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Alibabacloud Adb Mysql to describe db clusters.”
  • “Use Alibabacloud Adb Mysql to describe db cluster attribute.”
  • “Use Alibabacloud Adb Mysql to describe cluster access whitelist.”

Frequently asked questions

AnalyticDB for MySQL MCP Server is a universal interface between AI Agents and [AnalyticDB MySQL](https://www.alibabacloud.com/zh/product/analyticdb-for-mysql). It Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.