Alibaba Cloud DMS MCP Server
OfficialMCP-сервер AlibabaCloud DMS
Унифицированный шлюз управления данными на базе искусственного интеллекта , поддерживающий подключение к более чем 30 источникам данных и выступающий в качестве универсального многооблачного сервера MCP для обеспечения безопасного доступа к данным из разных источников в рамках единого решения.
Поддерживает все серии Alibaba Cloud: RDS, PolarDB, ADB, Lindorm, TableStore, MaxCompute.
Поддерживает основные базы данных/хранилища: MySQL, MariaDB, PostgreSQL, Oracle, SQLServer, Redis, MongoDB, StarRocks, Clickhouse, SelectDB, DB2, OceanBase, Gauss, BigQuery и т. д.
Основные характеристики
Предоставляет ИИ унифицированный уровень доступа к данным и уровень доступа к метаданным , решая с помощью стандартизированных интерфейсов:
Расходы на обслуживание, вызванные фрагментацией источника данных
Проблемы совместимости между разнородными протоколами
Риски безопасности, связанные с неконтролируемыми разрешениями учетных записей и непроверяемыми операциями
Ключевые особенности MCP включают в себя:
NL2SQL : выполнение SQL на естественном языке для получения результатов данных
Генерация кода : извлечение информации о схеме с помощью этой службы для генерации кода DAO или выполнения структурного анализа.
Извлечение данных : автоматическая маршрутизация SQL к точным источникам данных для поддержки бизнеса
Безопасность : Детальный контроль доступа и возможность аудита
Related MCP server: MCP TapData Server
Список инструментов
Метаданные, связанные
addInstance: Добавить экземпляр в DMS. Если экземпляр уже существует, вернуть информацию о существующем экземпляре.
db_user (строка, обязательно): Имя пользователя для подключения к базе данных.
db_password (строка, обязательно): Пароль для подключения к базе данных.
instance_resource_id (строка, необязательно): идентификатор ресурса экземпляра, обычно назначаемый поставщиком облачных услуг.
хост (строка, необязательно): адрес подключения экземпляра.
порт (строка, необязательно): номер порта подключения экземпляра.
регион (строка, необязательно): регион, в котором расположен экземпляр (например, «cn-hangzhou»).
getInstance: получение сведений об экземпляре из DMS на основе информации о хосте и порте.
host (строка, обязательно): адрес подключения экземпляра.
port (строка, обязательно): номер порта подключения экземпляра.
sid (строка, необязательно): требуется для баз данных типа Oracle, по умолчанию — None.
searchDatabase: Поиск баз данных в системе управления данными на основе schemaName.
search_key (строка, обязательно): schemaName.
page_number (целое число, необязательно): номер страницы для извлечения (начиная с 1), по умолчанию — 1.
page_size (целое число, необязательно): количество результатов на странице (максимум 1000), по умолчанию 200.
getDatabase: получение подробной информации о конкретной базе данных из DMS.
host (строка, обязательно): адрес подключения экземпляра.
port (строка, обязательно): номер порта подключения экземпляра.
schema_name (строка, обязательно): Имя базы данных.
sid (строка, необязательно): требуется для баз данных типа Oracle, по умолчанию — None.
listTable: Поиск таблиц данных в системе управления данными на основе databaseId и tableName.
database_id (строка, обязательно): идентификатор базы данных для ограничения области поиска (получается через getDatabase).
search_name (строка, обязательно): непустая строка в качестве ключевого слова для поиска по именам таблиц.
page_number (целое число, необязательно): номер страницы пагинации (по умолчанию: 1).
page_size (целое число, необязательно): количество результатов на странице (по умолчанию: 200, максимум: 200).
getTableDetailInfo: получение подробной информации о метаданных для определенной таблицы данных, включая сведения о полях и индексах.
table_guid (строка, обязательно): уникальный идентификатор таблицы (формат: dmsTableId.schemaName.tableName), полученный через searchTable или listTable.
Связанные с выполнением SQL
executeScript: выполнение скрипта SQL через DMS и возврат результатов.
database_id (строка, обязательно): идентификатор базы данных DMS (получен через getDatabase).
скрипт (строка, обязательно): содержимое скрипта SQL для выполнения.
Связанные с NL2SQL
nl2sql: Преобразование вопросов на естественном языке в исполняемые SQL-запросы.
вопрос (строка, обязательно): Вопрос на естественном языке для преобразования в SQL.
database_id (целое число, обязательно): идентификатор базы данных DMS (получен через getDatabase).
знания (строка, необязательно): Дополнительные знания контекста или базы данных для помощи в генерации SQL.
Поддерживаемые источники данных
Источник данных/Инструмент | NL2SQL nlsql | Выполнить скрипт executeScript | Показать схему getTableDetailInfo | Контроль доступа по умолчанию | Журнал аудита по умолчанию |
MySQL | ✅ | ✅ | ✅ | ✅ | ✅ |
MariaDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PostgreSQL | ✅ | ✅ | ✅ | ✅ | ✅ |
Оракул | ✅ | ✅ | ✅ | ✅ | ✅ |
SQLServer | ✅ | ✅ | ✅ | ✅ | ✅ |
Редис | ✅ | ✅ | ✅ | ✅ | ✅ |
MongoDB | ✅ | ✅ | ✅ | ✅ | ✅ |
СтарРокс | ✅ | ✅ | ✅ | ✅ | ✅ |
Кликхаус | ✅ | ✅ | ✅ | ✅ | ✅ |
SelectDB | ✅ | ✅ | ✅ | ✅ | ✅ |
DB2 | ✅ | ✅ | ✅ | ✅ | ✅ |
OceanBase | ✅ | ✅ | ✅ | ✅ | ✅ |
Гаусс | ✅ | ✅ | ✅ | ✅ | ✅ |
BigQuery | ✅ | ✅ | ✅ | ✅ | ✅ |
PolarDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PolarDB-X | ✅ | ✅ | ✅ | ✅ | ✅ |
Аналитическая БД | ✅ | ✅ | ✅ | ✅ | ✅ |
Линдорм | ✅ | ✅ | ✅ | ✅ | ✅ |
TableStore | ✅ | ✅ | ✅ | ✅ | ✅ |
Макскомпьютер | ✅ | ✅ | ✅ | ✅ | ✅ |
Голографы | ✅ | ✅ | ✅ | ✅ | ✅ |
Начиная
Вариант 1: Запуск из исходного кода
Загрузить код
git clone https://github.com/aliyun/alibabacloud-dms-mcp-server.gitНастроить MCP-клиент
Добавьте в файл конфигурации следующее содержимое:
"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"
}
}
}Вариант 2: запуск через пакет PyPI
"mcpServers": {
"dms-mcp-server": {
"command": "uvx",
"args": [
"alibabacloud-dms-mcp-server@latest"
],
"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"
}
}
}Связаться с нами
Если у вас есть вопросы или предложения, присоединяйтесь к группе Alibaba Cloud DMS MCP (идентификатор группы DingTalk: 129600002740).
Лицензия
Данный проект лицензирован по лицензии Apache 2.0.
Available Tools
16 toolsaddInstanceA
Add an instance to DMS. The username and password are required. Only Aliyun instances are supported. Either instance_resource_id or host and port must be provided. The region is optional, but it's recommended to include it.If the instance already exists, it will return the existing instance information.
Inputs: db_user (required), db_password (required), instance_resource_id, host, +2 more.
answerSqlSyntaxARead-only
Answer syntax-related questions for the corresponding database engine based on the database ID.If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), question (required), model.
approveOrderB
Approve or reject an order in DMS. The workflow_instance_id can be obtained from getOrderInfo.
Inputs: workflow_instance_id (required), approval_type (required), comment.
createDataChangeOrderADestructive
Execute SQL changes through a data change order, and a corresponding order ID will be returned. Prefer using the executeScript tool for SQL execution;only use this tool when explicitly instructed to perform the operation via a order.If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), script (required), logic, comment.
executeScriptADestructive
Execute SQL script against a database in DMS and return structured results.If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), script (required), logic.
fixSqlARead-only
Analyze and fix the SQL error based on the provided SQL statement, error message, and database ID.If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), sql (required), error (required), question, +1 more.
generateSqlARead-only
Generate SELECT-type SQL queries from natural language input.
Inputs: database_id (required), question (required), knowledge, model.
getDatabaseBRead-only
Obtain detailed information about a specific database in DMS when the host and port are provided.
Inputs: host (required), port (required), schema_name (required), sid.
getInstanceARead-only
Retrieve detailed instance information from DMS using the host and port.
Inputs: host (required), port (required), sid.
getOrderInfoARead-only
Retrieve order information from DMS using the order ID.
Inputs: order_id (required).
getTableDetailInfoARead-only
Retrieve detailed metadata information about a specific database table including schema and index details. If you don't know the table_guid parameter, retrieve it using listTables.
Inputs: table_guid (required).
listInstancesCRead-only
Search for instances from DMS.
Inputs: search_key, db_type, env_type.
listTablesARead-only
Search for tables by databaseId and (optional) table name. If you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), search_name, page_number, page_size.
optimizeSqlARead-only
Analyze and optimize SQL performance based on the provided SQL statement and database IDIf you don't know the databaseId, first use getDatabase or searchDatabase to retrieve it. (1) If you have the exact host, port, and database name, use getDatabase. (2) If you only know the database name, use searchDatabase. (3) If you don't know any information, ask the user to provide the necessary details. Note: searchDatabase may return multiple databases. In this case, let the user choose which one to use.
Inputs: database_id (required), sql (required), question, model.
searchDatabaseARead-only
Search databases in DMS by name.
Inputs: search_key (required), page_number, page_size.
submitOrderApprovalA
Submit the order for approval in DMS using the order ID.
Inputs: order_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Every tool has a clearly distinct purpose: instance management, database retrieval, SQL execution, SQL analysis (fix, optimize, generate, syntax), and order processing. Overlapping tools like executeScript and createDataChangeOrder are differentiated by direct vs. order-based execution, with clear descriptions.
All tools follow a verb_noun pattern in camelCase (e.g., addInstance, executeScript, getDatabase, listInstances). The naming is predictable and consistent, with no mixing of styles or unclear abbreviations.
16 tools is slightly above the ideal 3-15 range but still well-scoped for the DMS domain. Each tool serves a specific function without redundancy, and the count reflects a comprehensive feature set without being overwhelming.
The tool set covers core operations: instance CRUD (get, list, add but no delete/update), database queries, SQL analysis, and order management. Missing operations like instance/database deletion or user management create notable gaps, but the core workflow is supported.
Maintenance
Related MCP Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables large language models to interact with Apache Superset databases through REST API, supporting database queries, table lookups, field information retrieval, and SQL execution.45ISC

MCP TapData Serverofficial
FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.-- AlicenseNot gradedqualityDmaintenanceAn enhanced Model Context Protocol server that enables LLMs to inspect database schemas with rich metadata and execute read-only SQL queries with safety checks.188 npm25MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.410MIT