Alibabacloud Dms MCP Server

Configure the following parameters in DMS MCP Server: ```ini CONNECTION_STRING = ecommerce@10.20.30.40:3306 ``` Simply ask questions in natural

Local serverstdioPython

What is the Alibabacloud Dms MCP server?

Alibabacloud dms mcp server lets Claude, Cursor and other MCP clients work with Alibabacloud Dms directly. Configure the following parameters in DMS MCP Server: ini CONNECTION_STRING = ecommerce@10.20.30.40:3306 Simply ask questions in natural language, and DMS MCP will parse the question into SQL and return the results.

What Alibabacloud Dms does

Configure the following parameters in DMS MCP Server: ini CONNECTION_STRING = ecommerce@10.20.30.40:3306 Simply ask questions in natural language, and DMS MCP will parse the question into SQL and return the results.

Installing the alibabacloud dms mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

Before the server will start you need to supply 7 environment variables: ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, ALIBABA_CLOUD_SECURITY_TOKEN, CONNECTION_STRING, ALICLOUD_ACCESS_KEY_ID, ALICLOUD_ACCESS_KEY_SECRET, ALICLOUD_REGION_ID. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  • uv is installed - Python 3.10+ is installed - An AK/SK or STS Token with access rights to Alibaba Cloud DMS(AliyunDMSFullAccess).Add permission operations, see [Authorization

Where it fits

Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Alibabacloud Dms sits in that group. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • Maintained by aliyun, written in Python.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the alibabacloud dms mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the Alibabacloud Dms MCP server

**Single Database Mode**
```json
{
  "mcpServers": {
    "dms-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/alibabacloud-dms-mcp-server/src/alibabacloud_dms_mcp_server",
        "run",
        "server.py"
      ],
      "env": {
        "ALIBABA_CLOUD_ACCESS_KEY_ID": "access_id",
        "ALIBABA_CLOUD_ACCESS_KEY_SECRET": "access_key",
        "ALIBABA_CLOUD_SECURITY_TOKEN": "sts_security_token optional, required when using STS Token",
        "CONNECTION_STRING": "dbName@host:port"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • uv is installed - Python 3.10+ is installed - An AK/SK or STS Token with access rights to Alibaba Cloud DMS(AliyunDMSFullAccess).Add permission operations, see [Authorization
VariableDescriptionRequired
ALIBABA_CLOUD_ACCESS_KEY_IDCredential the server authenticates with.Yes
ALIBABA_CLOUD_ACCESS_KEY_SECRETCredential the server authenticates with.Yes
ALIBABA_CLOUD_SECURITY_TOKENCredential the server authenticates with.Yes
CONNECTION_STRINGConfiguration value read at startup.Optional
ALICLOUD_ACCESS_KEY_IDCredential the server authenticates with.Yes
ALICLOUD_ACCESS_KEY_SECRETCredential the server authenticates with.Yes
ALICLOUD_REGION_IDConfiguration value read at startup.Optional

Frequently asked questions

It connects Alibabacloud Dms to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Alibabacloud Dms directly.