What are the prerequisites?
Python >= 3.13 and `uv` are required. For OpenAPI tools, an Alibaba Cloud AccessKey (ID and Secret) is needed. For SQL tools in direct‑connection mode, database host, port, username, and password are required.
@aliyun
Basic information
AnalyticDB for MySQL MCP Server
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"alibabacloud-adb-mysql-mcp-server": {
"command": "uv",
"args": [
"sync"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
AnalyticDB for MySQL MCP Server is a universal interface between AI Agents and Alibaba Cloud's AnalyticDB for MySQL. It provides two categories of capabilities: OpenAPI tools for managing clusters, whitelists, accounts, networking, monitoring, and diagnostics, and SQL tools for direct database query execution, execution plan viewing, and metadata browsing. Read-only tools are annotated per the MCP protocol to distinguish them from mutating operations.
Install by cloning the GitHub repository and running uv sync. Configure via environment variables: set ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET for OpenAPI tools, or ADB_MYSQL_HOST, ADB_MYSQL_PORT, ADB_MYSQL_USER, ADB_MYSQL_PASSWORD, and ADB_MYSQL_DATABASE for SQL tools. Run with uv --directory /path/to/alibabacloud-adb-mysql-mcp-server run adb-mysql-mcp-server. Transport can be stdio (default), SSE, or streamable HTTP, configured via SERVER_TRANSPORT and SERVER_PORT. Example configurations are provided for cherry-studio, Claude Code, and Cline.
Python >= 3.13 and `uv` are required. For OpenAPI tools, an Alibaba Cloud AccessKey (ID and Secret) is needed. For SQL tools in direct‑connection mode, database host, port, username, and password are required.
Set all relevant environment variables (both AccessKey and ADB MySQL credentials) simultaneously. If AccessKey is not configured, OpenAPI tools are automatically disabled and only SQL tools remain active.
The server supports stdio (default), SSE, and streamable HTTP transport. Use the `SERVER_TRANSPORT` environment variable to select the protocol and `SERVER_PORT` to set the port for SSE/HTTP (default 8000).
Yes. If `ADB_MYSQL_USER` and `ADB_MYSQL_PASSWORD` are not set but an AccessKey is available, a temporary database account is automatically created via OpenAPI for SQL execution and cleaned up afterward.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.

Model Context Protocol Servers
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Comments