Atlas / MCP servers / aliyun / AnalyticDB for MySQL

AnalyticDB for MySQLSAFE

mcp/aliyun/analyticdb-for-mysql

AnalyticDB for MySQL MCP Server

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
34 26r · 7w · 1d
Transport
streamable-http
License
Apache-2.0
Stars
32
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

English | 中文

AnalyticDB for MySQL MCP Server is a universal interface between AI Agents and AnalyticDB MySQL. It provides two tool groups:

  • SQL Tools & Resources (sql group): Connect directly to ADB MySQL clusters to execute SQL, view execution plans, and browse database metadata. The sql group is only a tool-group switch; execute_sql runs in read-only mode by default, and full SQL execution mode requires the additional explicit setting ENABLE_SQL_WRITE_TOOLS=true.
  • OpenAPI Tools (openapi group): Manage clusters, whitelists, accounts, networking, monitoring, diagnostics, and audit logs via Alibaba Cloud OpenAPI.

Read-only tools are annotated with ToolAnnotations(readOnlyHint=True) per the MCP protocol, allowing clients to distinguish them from mutating operations.

一、Prerequisites

  • Python >= 3.13
  • uv (recommended package manager and runner)
  • Alibaba Cloud AccessKey (required for OpenAPI tools)
  • Optional: ADB MySQL connection credentials (for SQL tools in direct-connection mode)

二、Quick Start

2.0 Choose a Configuration

Choose the tool groups and extra switches for your scenario before copying a client configuration:

Read from source at commit 769b5d6a6a40OBSERVED · 2026-10-08
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add adb-mysql-mcp-server --env ADB_MYSQL_PASSWORD=${ADB_MYSQL_PASSWORD} --env ALIBABA_CLOUD_ACCESS_KEY_ID=${ALIBABA_CLOUD_ACCESS_KEY_ID} --env ALIBABA_CLOUD_ACCESS_KEY_SECRET=${ALIBABA_CLOUD_ACCESS_KEY_SECRET} --env ALIBABA_CLOUD_SECURITY_TOKEN=${ALIBABA_CLOUD_SECURITY_TOKEN} -- uvx adb-mysql-mcp-server
claude-desktop
{
  "mcpServers": {
    "adb-mysql-mcp-server": {
      "command": "uvx",
      "args": [
        "adb-mysql-mcp-server"
      ],
      "env": {
        "ADB_MYSQL_PASSWORD": "${ADB_MYSQL_PASSWORD}",
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "${ALIBABA_CLOUD_ACCESS_KEY_ID}",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "${ALIBABA_CLOUD_ACCESS_KEY_SECRET}",
        "ALIBABA_CLOUD_SECURITY_TOKEN": "${ALIBABA_CLOUD_SECURITY_TOKEN}"
      }
    }
  }
}
03

Exposed tools (34)

26 read · 7 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
create_accountwriteCreate a database account for a cluster.
describe_accountsreadList database accounts in a cluster.
describe_audit_log_recordsreadQuery SQL audit log records. Requires SQL audit to be enabled on the cluster.
describe_available_advicesreadGet available optimization advices (index, partition, etc.) for a cluster.
describe_bad_sql_detectionreadDetect bad SQL queries that may impact cluster stability.
describe_cluster_access_whitelistreadGet the IP whitelist configuration of a cluster.
describe_cluster_net_inforeadGet network connection info of a cluster (VPC/public endpoints, ports).
describe_controller_detectionwriteRun diagnostics on access nodes (Controllers).
describe_db_cluster_attributereadGet detailed attributes of a cluster (spec, status, VPC info, etc.).
describe_db_cluster_health_statusreadQuery the health status of a cluster (connections, disk, nodes, etc.).
describe_db_cluster_performancereadQuery cluster performance metrics.
describe_db_cluster_space_summaryreadGet the storage space summary of a cluster (data, index, log sizes).
describe_db_clustersreadList ADB MySQL clusters in a region.
describe_db_resource_groupreadGet resource group configuration of a cluster.
describe_diagnosis_recordsreadQuery SQL diagnosis summary records within a time range.
describe_diagnosis_sql_inforeadGet execution details of a single SQL (plan, runtime info, diagnosis).
describe_excessive_primary_keysreadDetect tables with excessive primary key usage that may impact performance.
describe_executor_detectionwriteRun diagnostics on compute nodes (Executors).
describe_inclined_tablesreadDetect data-skewed tables where data distribution is uneven across nodes.
describe_oversize_non_partition_table_infosreadDetect oversized non-partition tables that should consider partitioning.
describe_sql_patternsreadQuery SQL pattern (template) list sorted by aggregated statistics.
describe_table_partition_diagnosereadDiagnose table partitioning issues (skew, too many/few partitions, etc.).
describe_table_statisticsreadQuery table-level statistics (row count, data size, index size, etc.).
describe_worker_detectionwriteRun diagnostics on storage nodes (Workers).
execute_sqlwriteExecute a SQL query on an ADB MySQL cluster.
get_current_timereadGet the current time of the MCP Server (provides time context for LLMs).
get_execution_planreadGet the EXPLAIN ANALYZE actual execution plan with runtime statistics.
get_query_planreadGet the EXPLAIN logical execution plan of a SQL query.
kill_processdestructiveKill a running query process in the cluster.
modify_cluster_access_whitelistwriteModify the IP whitelist of a cluster.
modify_db_cluster_descriptionwriteModify the description of a cluster.
my_toolreadreturn x
tool_areadreturn
tool_breadreturn
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (16)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
kill_process
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:438
remote_server = "http://127.0.0.1:8000/sse"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README_zh.md:438
remote_server = "http://127.0.0.1:8000/sse"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
skill/alibabacloud-adb-highlight-editing/tests/test_highlight_service.py:72
base = f"http://127.0.0.1:{self.server.server_port}"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
skill/alibabacloud-adb-highlight-editing/tests/test_highlight_service.py:336
f"http://127.0.0.1:{self.server.server_port}"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
skill/alibabacloud-adb-highlight-editing/tests/test_highlight_service.py:401
f"http://127.0.0.1:{self.server.server_port}"
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
skill/alibabacloud-adb-mysql-copilot/requirements.txt
alibabacloud-adb20211201, alibabacloud-tea-openapi, alibabacloud-tea-util, pymysql
Why it matters. 4 requirement(s) not pinned with ==
Fix. pin exact versions
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
skill/alibabacloud-adb-openclaw-insight/requirements.txt
mysql-connector-python, APScheduler, openai, anthropic
Why it matters. 4 requirement(s) not pinned with ==
Fix. pin exact versions
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
skill/alibabacloud-adb-smart-analyst/requirements.txt
pymysql
Why it matters. 1 requirement(s) not pinned with ==
Fix. pin exact versions
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
README.md:339
If the server is bound to a non-loopback host, configure `API_KEY` on the server side and send it from the client side as an HTTP header. In short: `API_KEY` is the server-side token, and `Authorizati
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
INFOInventory / provenance · inv.oversize · CWE-1104
assets/cherry-config.png
assets/cherry-config.png
Why it matters. 1132088 bytes not read
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skill/alibabacloud-adb-mysql-copilot/skill_readme.md:34
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skill/alibabacloud-adb-mysql-copilot/skill_readme_cn.md:34
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skill/alibabacloud-adb-openclaw-insight/README.md:37
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skill/alibabacloud-adb-openclaw-insight/README_CN.md:37
curl -LsSf https://astral.sh/uv/install.sh | sh
INFOSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
skill/alibabacloud-adb-openclaw-insight/SKILL.md:32
curl -LsSf https://astral.sh/uv/install.sh | sh

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 769b5d6a6a40full audit observations/trust-audit/mcp-server/aliyun__analyticdb-for-mysql.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08769b5d6a6a40SAFEB89first audit
06

Questions

What is the AnalyticDB for MySQL MCP server?

AnalyticDB for MySQL MCP Server

What tools does AnalyticDB for MySQL expose?

34 in total: 26 read-only, 7 that write, and 1 that can delete or overwrite (kill_process). Every one is listed on this page with its risk.

Is AnalyticDB for MySQL safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does AnalyticDB for MySQL need?

It reads ADB_MYSQL_PASSWORD, ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, ALIBABA_CLOUD_SECURITY_TOKEN and API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does AnalyticDB for MySQL run?

It speaks streamable-http, so it runs as a service you connect to over the network. It is published on PyPI as adb-mysql-mcp-server.

How current is this page?

The grade is for one exact copy of the source (769b5d6a6a40), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement