Alibaba Cloud DMS MCP Server
OfficialAlibabaCloud DMS MCP サーバー
AI を活用した統合データ管理ゲートウェイは、 30 を超えるデータ ソースへの接続をサポートし、マルチクラウド ユニバーサル データ MCP サーバーとして機能して、ワンストップ ソリューションでクロスソース データの安全なアクセスを実現します。
Alibaba Cloud シリーズ全体をサポートします: RDS、PolarDB、ADB シリーズ、Lindorm シリーズ、TableStore シリーズ、MaxCompute シリーズ。
主流のデータベース/ウェアハウスをサポートします: MySQL、MariaDB、PostgreSQL、Oracle、SQLServer、Redis、MongoDB、StarRocks、Clickhouse、SelectDB、DB2、OceanBase、Gauss、BigQuery など。
コア機能
AI に統合されたデータ アクセス層とメタデータ アクセス層を提供し、標準化されたインターフェースを通じて次の問題を解決します。
データソースの断片化によって発生するメンテナンスコスト
異種プロトコル間の互換性の問題
制御されていないアカウント権限と監査不可能な操作によるセキュリティリスク
MCP の主な機能は次のとおりです。
NL2SQL :自然言語でSQLを実行してデータ結果を取得します
コード生成: このサービスを通じてスキーマ情報を取得し、DAO コードを生成したり、構造解析を実行したりします。
データ取得: ビジネスサポートのために正確なデータソースにSQLを自動的にルーティングします
セキュリティ: きめ細かなアクセス制御と監査可能性
Related MCP server: MCP TapData Server
ツールリスト
メタデータ関連
addInstance: DMSにインスタンスを追加します。インスタンスが既に存在する場合は、既存のインスタンスの情報を返します。
db_user (文字列、必須): データベースに接続するためのユーザー名。
db_password (文字列、必須): データベースに接続するためのパスワード。
instance_resource_id (文字列、オプション): 通常はクラウド サービス プロバイダーによって割り当てられるインスタンスのリソース ID。
host (文字列、オプション): インスタンスの接続アドレス。
port (文字列、オプション): インスタンスの接続ポート番号。
リージョン(文字列、オプション): インスタンスが配置されているリージョン (例: "cn-hangzhou")。
getInstance: ホストとポートの情報に基づいて DMS からインスタンスの詳細を取得します。
host (文字列、必須): インスタンスの接続アドレス。
port (文字列、必須): インスタンスの接続ポート番号。
sid (文字列、オプション): Oracle のようなデータベースでは必須で、デフォルトは None です。
searchDatabase: schemaName に基づいて DMS 内のデータベースを検索します。
search_key (文字列、必須): schemaName。
page_number (整数、オプション): 取得するページ番号 (1 から始まる)、デフォルトは 1。
page_size (整数、オプション): ページあたりの結果数 (最大 1000)、デフォルトは 200。
getDatabase: DMS から特定のデータベースに関する詳細情報を取得します。
host (文字列、必須): インスタンスの接続アドレス。
port (文字列、必須): インスタンスの接続ポート番号。
schema_name (文字列、必須): データベース名。
sid (文字列、オプション): Oracle のようなデータベースでは必須で、デフォルトは None です。
listTable: databaseId と tableName に基づいて DMS 内のデータ テーブルを検索します。
database_id (文字列、必須): 検索範囲を制限するデータベース ID (getDatabase 経由で取得)。
search_name (文字列、必須): テーブル名と一致する検索キーワードとしての空でない文字列。
page_number (整数、オプション): ページ区切りページ番号 (デフォルト: 1)。
page_size (整数、オプション): ページあたりの結果数 (デフォルト: 200、最大: 200)。
getTableDetailInfo: フィールドやインデックスの詳細など、特定のデータ テーブルの詳細なメタデータ情報を取得します。
table_guid (文字列、必須): searchTable または listTable から取得されるテーブルの一意の識別子 (形式: dmsTableId.schemaName.tableName)。
SQL実行関連
executeScript: DMS を介して SQL スクリプトを実行し、結果を返します。
database_id (文字列、必須): DMS データベース ID (getDatabase 経由で取得)。
script (文字列、必須): 実行する SQL スクリプトの内容。
NL2SQL関連
nl2sql: 自然言語の質問を実行可能な SQL クエリに変換します。
question (文字列、必須): SQL に変換する自然言語の質問。
database_id (整数、必須): DMS データベース ID (getDatabase 経由で取得)。
knowledge (文字列、オプション): SQL 生成を支援する追加のコンテキストまたはデータベース知識。
サポートされているデータソース
データソース/ツール | NL2SQL nlsql | スクリプトを実行する executeScript | スキーマを表示 getTableDetailInfo | アクセス制御の デフォルト | 監査ログの デフォルト |
MySQL | ✅ | ✅ | ✅ | ✅ | ✅ |
マリアDB | ✅ | ✅ | ✅ | ✅ | ✅ |
PostgreSQL | ✅ | ✅ | ✅ | ✅ | ✅ |
オラクル | ✅ | ✅ | ✅ | ✅ | ✅ |
SQLサーバー | ✅ | ✅ | ✅ | ✅ | ✅ |
レディス | ✅ | ✅ | ✅ | ✅ | ✅ |
モンゴDB | ✅ | ✅ | ✅ | ✅ | ✅ |
スターロックス | ✅ | ✅ | ✅ | ✅ | ✅ |
クリックハウス | ✅ | ✅ | ✅ | ✅ | ✅ |
選択DB | ✅ | ✅ | ✅ | ✅ | ✅ |
DB2 | ✅ | ✅ | ✅ | ✅ | ✅ |
オーシャンベース | ✅ | ✅ | ✅ | ✅ | ✅ |
ガウス | ✅ | ✅ | ✅ | ✅ | ✅ |
ビッグクエリ | ✅ | ✅ | ✅ | ✅ | ✅ |
ポーラDB | ✅ | ✅ | ✅ | ✅ | ✅ |
ポーラーDB-X | ✅ | ✅ | ✅ | ✅ | ✅ |
アナリティクスDB | ✅ | ✅ | ✅ | ✅ | ✅ |
リンドルム | ✅ | ✅ | ✅ | ✅ | ✅ |
テーブルストア | ✅ | ✅ | ✅ | ✅ | ✅ |
マックスコンピュート | ✅ | ✅ | ✅ | ✅ | ✅ |
ホログレス | ✅ | ✅ | ✅ | ✅ | ✅ |
はじめる
オプション1: ソースコードから実行
コードをダウンロードする
git clone https://github.com/aliyun/alibabacloud-dms-mcp-server.gitMCPクライアントの設定
構成ファイルに次の内容を追加します。
"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 グループ ID: 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