Alibaba Cloud DMS MCP Server
OfficialServidor MCP de AlibabaCloud DMS
Puerta de enlace de gestión de datos unificada impulsada por IA que admite la conexión a más de 30 fuentes de datos y funciona como un servidor MCP de datos universal de múltiples nubes para abordar el acceso seguro a datos de fuentes cruzadas en una solución integral.
Admite toda la serie Alibaba Cloud: RDS, PolarDB, serie ADB, serie Lindorm, serie TableStore, serie MaxCompute.
Admite bases de datos y almacenes convencionales: MySQL, MariaDB, PostgreSQL, Oracle, SQLServer, Redis, MongoDB, StarRocks, Clickhouse, SelectDB, DB2, OceanBase, Gauss, BigQuery, etc.
Características principales
Proporciona a la IA una capa de acceso a datos unificada y una capa de acceso a metadatos , resolviendo problemas mediante interfaces estandarizadas:
Costos de mantenimiento causados por la fragmentación de las fuentes de datos
Problemas de compatibilidad entre protocolos heterogéneos
Riesgos de seguridad derivados de permisos de cuentas no controlados y operaciones no auditables
Las características clave a través de MCP incluyen:
NL2SQL : Ejecutar SQL mediante lenguaje natural para obtener resultados de datos
Generación de código : recupere información del esquema a través de este servicio para generar código DAO o realizar análisis estructurales
Recuperación de datos : enrute automáticamente SQL a fuentes de datos precisas para brindar soporte empresarial
Seguridad : Control de acceso de grano fino y auditabilidad
Related MCP server: MCP TapData Server
Lista de herramientas
Metadatos relacionados
addInstance: Agrega una instancia a DMS. Si la instancia ya existe, devuelve la información de la instancia existente.
db_user (cadena, obligatoria): nombre de usuario para conectarse a la base de datos.
db_password (cadena, obligatoria): Contraseña para conectarse a la base de datos.
instance_resource_id (cadena, opcional): ID de recurso de la instancia, normalmente asignado por el proveedor de servicios en la nube.
host (cadena, opcional): Dirección de conexión de la instancia.
puerto (cadena, opcional): número de puerto de conexión de la instancia.
región (cadena, opcional): región donde se ubica la instancia (por ejemplo, "cn-hangzhou").
getInstance: recupera detalles de la instancia de DMS según la información del host y del puerto.
host (cadena, obligatoria): Dirección de conexión de la instancia.
puerto (cadena, obligatorio): número de puerto de conexión de la instancia.
sid (cadena, opcional): obligatorio para bases de datos tipo Oracle, el valor predeterminado es Ninguno.
searchDatabase: busca bases de datos en DMS según el nombre del esquema.
search_key (cadena, obligatoria): nombreEsquema.
page_number (entero, opcional): Número de página a recuperar (comenzando desde 1), el valor predeterminado es 1.
page_size (entero, opcional): Número de resultados por página (máximo 1000), el valor predeterminado es 200.
getDatabase: recupera información detallada sobre una base de datos específica de DMS.
host (cadena, obligatoria): Dirección de conexión de la instancia.
puerto (cadena, obligatorio): número de puerto de conexión de la instancia.
schema_name (cadena, obligatoria): nombre de la base de datos.
sid (cadena, opcional): obligatorio para bases de datos tipo Oracle, el valor predeterminado es Ninguno.
listTable: busca tablas de datos en DMS según databaseId y tableName.
database_id (cadena, obligatoria): ID de la base de datos para limitar el alcance de la búsqueda (obtenido mediante getDatabase).
search_name (cadena, obligatoria): cadena no vacía como palabra clave de búsqueda para que coincida con los nombres de las tablas.
page_number (entero, opcional): Número de página de paginación (predeterminado: 1).
page_size (entero, opcional): Número de resultados por página (predeterminado: 200, máximo: 200).
getTableDetailInfo: recupera información detallada de metadatos para una tabla de datos específica, incluidos detalles de campo e índice.
table_guid (cadena, obligatoria): identificador único para la tabla (formato: dmsTableId.schemaName.tableName), obtenido mediante searchTable o listTable.
Relacionado con la ejecución de SQL
executeScript: ejecuta un script SQL a través de DMS y devuelve los resultados.
database_id (cadena, obligatoria): ID de la base de datos DMS (obtenida mediante getDatabase).
script (cadena, obligatorio): contenido del script SQL a ejecutar.
Relacionado con NL2SQL
nl2sql: Convierte preguntas en lenguaje natural en consultas SQL ejecutables.
pregunta (cadena, obligatoria): Pregunta en lenguaje natural para convertir a SQL.
database_id (entero, obligatorio): ID de la base de datos DMS (obtenido mediante getDatabase).
conocimiento (cadena, opcional): contexto adicional o conocimiento de base de datos para ayudar a la generación de SQL.
Fuentes de datos compatibles
Fuente de datos/Herramienta | NL2SQL nlsql | Ejecutar script executeScript | Mostrar esquema getTableDetailInfo | Control de acceso predeterminado | Registro de auditoría predeterminado |
MySQL | ✅ | ✅ | ✅ | ✅ | ✅ |
MariaDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PostgreSQL | ✅ | ✅ | ✅ | ✅ | ✅ |
Oráculo | ✅ | ✅ | ✅ | ✅ | ✅ |
Servidor SQL | ✅ | ✅ | ✅ | ✅ | ✅ |
Redis | ✅ | ✅ | ✅ | ✅ | ✅ |
MongoDB | ✅ | ✅ | ✅ | ✅ | ✅ |
Rocas estelares | ✅ | ✅ | ✅ | ✅ | ✅ |
Clickhouse | ✅ | ✅ | ✅ | ✅ | ✅ |
SelectDB | ✅ | ✅ | ✅ | ✅ | ✅ |
DB2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Base oceánica | ✅ | ✅ | ✅ | ✅ | ✅ |
Gauss | ✅ | ✅ | ✅ | ✅ | ✅ |
BigQuery | ✅ | ✅ | ✅ | ✅ | ✅ |
Base de datos polar | ✅ | ✅ | ✅ | ✅ | ✅ |
PolarDB-X | ✅ | ✅ | ✅ | ✅ | ✅ |
Base de datos analítica | ✅ | ✅ | ✅ | ✅ | ✅ |
Lindorm | ✅ | ✅ | ✅ | ✅ | ✅ |
Tienda de tablas | ✅ | ✅ | ✅ | ✅ | ✅ |
Máximo cálculo | ✅ | ✅ | ✅ | ✅ | ✅ |
Hologres | ✅ | ✅ | ✅ | ✅ | ✅ |
Empezando
Opción 1: Ejecutar desde el código fuente
Descargar el código
git clone https://github.com/aliyun/alibabacloud-dms-mcp-server.gitConfigurar el cliente MCP
Agregue el siguiente contenido al archivo de configuración:
"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"
}
}
}Opción 2: Ejecutar a través del paquete 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"
}
}
}Contáctanos
Si tiene alguna pregunta o sugerencia, únase al grupo Alibaba Cloud DMS MCP (ID de grupo DingTalk: 129600002740).
Licencia
Este proyecto está licenciado bajo la licencia 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