About Alibaba Cloud AnalyticDB for MySQL
Alibaba Cloud AnalyticDB for MySQL is an MCP server published by aliyun in the Developer Tools category: analyticDB for MySQL MCP Server. Conduid read 32 tools from its source: create_account, describe_accounts, describe_audit_log_records, describe_available_advices, describe_bad_sql_detection, describe_cluster_access_whitelist and 26 more. It is published to PyPI as adb-mysql-mcp-server and runs with uvx.
The repository has 32 stars and 24 forks, is licensed Apache-2.0, and its last commit was on 30 Jul 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools.
Install
uvx adb-mysql-mcp-serverpip install adb-mysql-mcp-servergit clone https://github.com/aliyun/alibabacloud-adb-mysql-mcp-serverTools (32)
create_accountCreate a database account| Parameter | Type | Description |
|---|---|---|
| account_description | string | Optional account description. |
| account_name * | string | Account name. |
| account_password * | string | Account password (must comply with the password policy). |
| account_type | string | Account type — Normal or Super, default Normal. |
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_accountsList database accounts in a cluster| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_audit_log_recordsQuery SQL audit log records| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| db_name | string | Optional database name filter. |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| host_address | string | Optional source IP filter. |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| query_keyword | string | Optional SQL keyword filter. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| sql_type | string | Optional SQL type filter (e.g. SELECT, INSERT, UPDATE, DELETE). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
| user | string | Optional user name filter. |
describe_available_advicesGet optimization advices| Parameter | Type | Description |
|---|---|---|
| advice_date | string | Advice generation date in yyyyMMdd format (e.g. 20250101). Defaults to T-2 days. |
| advice_type | string | Advice type filter — INDEX (index optimization) or TIERING (hot/cold data optimization). |
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| keyword | string | Table name keyword for fuzzy search. |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| schema_table_name | string | Full qualified table name in "database.table" format (e.g. tpch.lineitem). |
describe_bad_sql_detectionDetect bad SQL impacting cluster stability| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| lang | string | Language: zh (Chinese) or en (English). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
describe_cluster_access_whitelistGet cluster IP whitelist| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_cluster_net_infoGet cluster network connection info| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_controller_detectionAccess node diagnostics| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| lang | string | Language: zh (Chinese) or en (English). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
describe_db_cluster_attributeGet detailed cluster attributes| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_db_cluster_health_statusQuery cluster health status| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_db_cluster_performanceQuery cluster performance metrics (CPU, memory, QPS, etc.)| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| key * | string | Metric key (e.g.AnalyticDB_CPU,AnalyticDB_QPS,AnalyticDB_QueryFailedRatio,AnalyticDB_QueryRT,AnalyticDB_QueryWaitTime,AnalyticDB_Connections, |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| resource_pools | string | |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
describe_db_cluster_space_summaryGet cluster storage space summary| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_db_clustersList ADB MySQL clusters in a region| Parameter | Type | Description |
|---|---|---|
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_db_resource_groupGet resource group configuration| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| group_name | string | Optional resource group name filter (returns all if omitted). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_diagnosis_recordsQuery SQL diagnosis summary records| Parameter | Type | Description |
|---|---|---|
| database | string | Optional database name filter. |
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| keyword | string | Optional SQL keyword filter. |
| lang | string | Language: zh (Chinese) or en (English). |
| max_peak_memory | integer | Optional maximum peak memory in bytes. |
| max_scan_size | integer | Optional maximum scan size in bytes. |
| min_peak_memory | integer | Optional minimum peak memory in bytes. |
| min_scan_size | integer | Optional minimum scan size in bytes. |
| order | string | Sort the SQL statement according to the specified fields, in JSON format(e.g. [{"Field":"StartTime", "Type": "desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| query_condition | string | JSON filter condition. Supported types: - {"Type":"maxCost","Value":"100"} — top 100 queries by cost. - {"Type":"status","Value":"running"} — filter by status (running/finished/failed). - {"Type":"cost","Min":"10","Max":"200"} — filter by cost range (ms). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| resource_group | string | Optional resource group name filter. |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
| user_name | string | Optional user name filter. |
describe_diagnosis_sql_infoGet SQL execution details (plan, runtime info)| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| lang | string | Language: zh (Chinese) or en (English). |
| process_id * | string | SQL process ID (query ID). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_excessive_primary_keysDetect tables with excessive primary keys| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_executor_detectionCompute node diagnostics| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| lang | string | Language: zh (Chinese) or en (English). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
describe_inclined_tablesDetect data-skewed tables| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| table_type | string | Optional table type filter, FactTable or DimensionTable, default FactTable. |
describe_oversize_non_partition_table_infosDetect oversized non-partition tables| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_sql_patternsQuery SQL pattern list| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| keyword | string | Optional SQL keyword filter. |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
describe_table_partition_diagnoseDiagnose table partitioning issues| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| lang | string | Language: zh (Chinese) or en (English). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"StartTime","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_table_statisticsQuery table-level statistics| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| keyword | string | Optional table name filter (supports fuzzy match). |
| order | string | Sort by specified fields in JSON format (e.g. [{"Field":"TotalSize","Type":"desc"}]). |
| page_number | integer | Page number, default 1. |
| page_size | integer | Page size, default 30. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
describe_worker_detectionStorage node diagnostics| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| end_time | string | End time in ISO 8601 UTC (e.g. 2025-01-01T01:00Z). Defaults to now. |
| lang | string | Language: zh (Chinese) or en (English). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| start_time | string | Start time in ISO 8601 UTC (e.g. 2025-01-01T00:00Z). Defaults to 1 hour ago. |
execute_sqlExecute SQL on an ADB MySQL cluster. Read-only SQL is allowed by default; full SQL execution requires `ENABLE_SQL_WRITE_TOOLS=true`| Parameter | Type | Description |
|---|---|---|
| database | string | Target database name (optional). |
| db_cluster_id | string | Cluster ID, optional in direct mode. |
| query * | string | The SQL statement to execute. |
| region_id | string | Alibaba Cloud region ID, optional in direct mode. |
get_current_timeGet current server timeget_execution_planGet EXPLAIN ANALYZE actual execution plan for a single SELECT or read-only WITH CTE statement| Parameter | Type | Description |
|---|---|---|
| database | string | Target database name (optional). |
| db_cluster_id | string | Cluster ID, optional in direct mode. |
| query * | string | The SQL statement to analyze. |
| region_id | string | Alibaba Cloud region ID, optional in direct mode. |
get_query_planGet EXPLAIN execution plan for a single SELECT or read-only WITH CTE statement| Parameter | Type | Description |
|---|---|---|
| database | string | Target database name (optional). |
| db_cluster_id | string | Cluster ID, optional in direct mode. |
| query * | string | The SQL statement to analyze. |
| region_id | string | Alibaba Cloud region ID, optional in direct mode. |
kill_processKill a running query process| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| process_id * | string | Process ID to terminate. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
modify_cluster_access_whitelistModify cluster IP whitelist| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| db_cluster_ip_array_name | string | Whitelist group name, default "default". |
| modify_mode | string | Cover (overwrite), Append (add), or Delete (remove). |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
| security_ips * | string | Comma-separated IP addresses or CIDR blocks. |
modify_db_cluster_descriptionModify cluster description| Parameter | Type | Description |
|---|---|---|
| db_cluster_id * | string | Cluster ID (e.g. amv-xxx). |
| description * | string | New description text. |
| region_id * | string | Alibaba Cloud region ID (e.g. cn-hangzhou). |
my_toolEnumeration of MCP component types.| Parameter | Type | Description |
|---|---|---|
| x * | string |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 9 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTP and HTTP with SSEsrc/adb_mysql_mcp_server/server.py:1223, src/adb_mysql_mcp_server/server.py:1221
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 9 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 3.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README