Alibaba Cloud DMS MCP Server
OfficialAlibabaCloud DMS MCP-Server
KI-gestütztes, einheitliches Datenverwaltungs-Gateway , das die Verbindung zu mehr als 30 Datenquellen unterstützt und als universeller Multi-Cloud-Daten-MCP-Server dient, um den sicheren Datenzugriff über mehrere Quellen hinweg in einer Komplettlösung zu ermöglichen.
Unterstützt die gesamte Alibaba Cloud-Serie: RDS, PolarDB, ADB-Serie, Lindorm-Serie, TableStore-Serie, MaxCompute-Serie.
Unterstützt gängige Datenbanken/Warehouses: MySQL, MariaDB, PostgreSQL, Oracle, SQLServer, Redis, MongoDB, StarRocks, Clickhouse, SelectDB, DB2, OceanBase, Gauss, BigQuery usw.
Kernfunktionen
Bietet KI eine einheitliche Datenzugriffsebene und Metadatenzugriffsebene und löst über standardisierte Schnittstellen:
Wartungskosten durch Datenquellenfragmentierung
Kompatibilitätsprobleme zwischen heterogenen Protokollen
Sicherheitsrisiken durch unkontrollierte Kontoberechtigungen und nicht überprüfbare Vorgänge
Zu den wichtigsten Funktionen von MCP gehören:
NL2SQL : Führen Sie SQL in natürlicher Sprache aus, um Datenergebnisse zu erhalten
Codegenerierung : Rufen Sie über diesen Dienst Schemainformationen ab, um DAO-Code zu generieren oder Strukturanalysen durchzuführen
Datenabruf : Leiten Sie SQL automatisch an genaue Datenquellen zur Geschäftsunterstützung weiter
Sicherheit : Feinkörnige Zugriffskontrolle und Überprüfbarkeit
Related MCP server: MCP TapData Server
Werkzeugliste
Metadatenbezogen
addInstance: Fügt eine Instanz zu DMS hinzu. Falls die Instanz bereits vorhanden ist, werden die vorhandenen Instanzinformationen zurückgegeben.
db_user (Zeichenfolge, erforderlich): Benutzername für die Verbindung mit der Datenbank.
db_password (Zeichenfolge, erforderlich): Passwort für die Verbindung mit der Datenbank.
instance_resource_id (Zeichenfolge, optional): Ressourcen-ID der Instanz, normalerweise vom Cloud-Dienstanbieter zugewiesen.
Host (Zeichenfolge, optional): Verbindungsadresse der Instanz.
Port (Zeichenfolge, optional): Verbindungsportnummer der Instanz.
Region (Zeichenfolge, optional): Region, in der sich die Instanz befindet (z. B. „cn-hangzhou“).
getInstance: Ruft Instanzdetails vom DMS basierend auf Host- und Portinformationen ab.
Host (Zeichenfolge, erforderlich): Verbindungsadresse der Instanz.
Port (Zeichenfolge, erforderlich): Verbindungsportnummer der Instanz.
sid (Zeichenfolge, optional): Erforderlich für Oracle-ähnliche Datenbanken, standardmäßig „Keine“.
searchDatabase: Suche nach Datenbanken im DMS basierend auf Schemaname.
Suchschlüssel (Zeichenfolge, erforderlich): Schemaname.
Seitenzahl (Ganzzahl, optional): Abzurufende Seitenzahl (beginnend bei 1), Standard ist 1.
page_size (Ganzzahl, optional): Anzahl der Ergebnisse pro Seite (maximal 1000), Standard ist 200.
getDatabase: Rufen Sie detaillierte Informationen zu einer bestimmten Datenbank von DMS ab.
Host (Zeichenfolge, erforderlich): Verbindungsadresse der Instanz.
Port (Zeichenfolge, erforderlich): Verbindungsportnummer der Instanz.
schema_name (Zeichenfolge, erforderlich): Datenbankname.
sid (Zeichenfolge, optional): Erforderlich für Oracle-ähnliche Datenbanken, standardmäßig „Keine“.
listTable: Suche nach Datentabellen im DMS basierend auf Datenbank-ID und Tabellenname.
database_id (Zeichenfolge, erforderlich): Datenbank-ID zum Einschränken des Suchbereichs (erhalten über getDatabase).
search_name (Zeichenfolge, erforderlich): Nicht leere Zeichenfolge als Suchbegriff zum Abgleichen von Tabellennamen.
page_number (Ganzzahl, optional): Seitennummer der Seitennummerierung (Standard: 1).
page_size (Ganzzahl, optional): Anzahl der Ergebnisse pro Seite (Standard: 200, Maximum: 200).
getTableDetailInfo: Rufen Sie detaillierte Metadateninformationen für eine bestimmte Datentabelle ab, einschließlich Feld- und Indexdetails.
table_guid (Zeichenfolge, erforderlich): Eindeutige Kennung für die Tabelle (Format: dmsTableId.schemaName.tableName), abgerufen über searchTable oder listTable.
SQL-Ausführung im Zusammenhang
executeScript: Führen Sie ein SQL-Skript über DMS aus und geben Sie die Ergebnisse zurück.
database_id (Zeichenfolge, erforderlich): DMS-Datenbank-ID (über getDatabase erhalten).
Skript (Zeichenfolge, erforderlich): Auszuführender SQL-Skriptinhalt.
NL2SQL-bezogen
nl2sql: Konvertiert Fragen in natürlicher Sprache in ausführbare SQL-Abfragen.
Frage (Zeichenfolge, erforderlich): Frage in natürlicher Sprache, die in SQL konvertiert werden soll.
database_id (Ganzzahl, erforderlich): DMS-Datenbank-ID (erhalten über getDatabase).
Wissen (Zeichenfolge, optional): Zusätzliches Kontext- oder Datenbankwissen zur Unterstützung der SQL-Generierung.
Unterstützte Datenquellen
Datenquelle/Tool | NL2SQL nlsql | Skript ausführen executeScript | Schema „getTableDetailInfo“ anzeigen | Standardmäßige Zugriffskontrolle | Standardmäßiges Überwachungsprotokoll |
MySQL | ✅ | ✅ | ✅ | ✅ | ✅ |
MariaDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PostgreSQL | ✅ | ✅ | ✅ | ✅ | ✅ |
Orakel | ✅ | ✅ | ✅ | ✅ | ✅ |
SQLServer | ✅ | ✅ | ✅ | ✅ | ✅ |
Redis | ✅ | ✅ | ✅ | ✅ | ✅ |
MongoDB | ✅ | ✅ | ✅ | ✅ | ✅ |
StarRocks | ✅ | ✅ | ✅ | ✅ | ✅ |
Clickhouse | ✅ | ✅ | ✅ | ✅ | ✅ |
Wählen SieDB | ✅ | ✅ | ✅ | ✅ | ✅ |
DB2 | ✅ | ✅ | ✅ | ✅ | ✅ |
Ozeanbasis | ✅ | ✅ | ✅ | ✅ | ✅ |
Gauss | ✅ | ✅ | ✅ | ✅ | ✅ |
BigQuery | ✅ | ✅ | ✅ | ✅ | ✅ |
PolarDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PolarDB-X | ✅ | ✅ | ✅ | ✅ | ✅ |
AnalyticDB | ✅ | ✅ | ✅ | ✅ | ✅ |
Lindorm | ✅ | ✅ | ✅ | ✅ | ✅ |
Tischladen | ✅ | ✅ | ✅ | ✅ | ✅ |
Maxcompute | ✅ | ✅ | ✅ | ✅ | ✅ |
Hologres | ✅ | ✅ | ✅ | ✅ | ✅ |
Erste Schritte
Option 1: Vom Quellcode ausführen
Code herunterladen
git clone https://github.com/aliyun/alibabacloud-dms-mcp-server.gitMCP-Client konfigurieren
Fügen Sie der Konfigurationsdatei den folgenden Inhalt hinzu:
"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"
}
}
}Option 2: Ausführen über das PyPI-Paket
"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"
}
}
}Kontaktieren Sie uns
Bei Fragen oder Anregungen treten Sie der Alibaba Cloud DMS MCP Group (DingTalk-Gruppen-ID: 129600002740) bei.
Lizenz
Dieses Projekt ist unter der Apache 2.0-Lizenz lizenziert.
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