Skip to main content
Glama
Alibaba Cloud DMS MCP Server

Alibaba Cloud DMS MCP Server

Official
by aliyun

AlibabaCloud DMS MCP 서버

30개 이상의 데이터 소스에 대한 연결을 지원하는 AI 기반 통합 데이터 관리 게이트웨이 로, 멀티 클라우드 범용 데이터 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로, 일반적으로 클라우드 서비스 제공자가 할당합니다.

  • 호스트 (문자열, 선택 사항): 인스턴스의 연결 주소입니다.

  • port (문자열, 선택 사항): 인스턴스의 연결 포트 번호입니다.

  • 지역 (문자열, 선택 사항): 인스턴스가 위치한 지역(예: "cn-hangzhou")입니다.

getInstance: 호스트 및 포트 정보를 기반으로 DMS에서 인스턴스 세부 정보를 검색합니다.

  • 호스트 (문자열, 필수): 인스턴스의 연결 주소입니다.

  • port (문자열, 필수): 인스턴스의 연결 포트 번호입니다.

  • sid (문자열, 선택 사항): Oracle 계열 데이터베이스에 필수이며 기본값은 None입니다.

searchDatabase: schemaName을 기준으로 DMS에서 데이터베이스를 검색합니다.

  • 검색 키 (문자열, 필수): schemaName.

  • page_number (정수, 선택 사항): 검색할 페이지 번호(1부터 시작), 기본값은 1입니다.

  • page_size (정수, 선택 사항): 페이지당 결과 수(최대 1000), 기본값은 200입니다.

getDatabase: DMS에서 특정 데이터베이스에 대한 자세한 정보를 검색합니다.

  • 호스트 (문자열, 필수): 인스턴스의 연결 주소입니다.

  • 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 (문자열, 필수): 테이블에 대한 고유 식별자(형식: dmsTableId.schemaName.tableName), searchTable 또는 listTable을 통해 얻습니다.


SQL 실행 관련

executeScript: DMS를 통해 SQL 스크립트를 실행하고 결과를 반환합니다.

  • database_id (문자열, 필수): DMS 데이터베이스 ID(getDatabase를 통해 얻음).

  • 스크립트 (문자열, 필수): 실행할 SQL 스크립트 내용입니다.


NL2SQL 관련

nl2sql: 자연어 질문을 실행 가능한 SQL 쿼리로 변환합니다.

  • 질문 (문자열, 필수): SQL로 변환할 자연어 질문입니다.

  • database_id (정수, 필수): DMS 데이터베이스 ID(getDatabase를 통해 얻음).

  • 지식 (문자열, 선택 사항): SQL 생성을 돕기 위한 추가적인 컨텍스트 또는 데이터베이스 지식입니다.


지원되는 데이터 소스

데이터 소스/도구

NL2SQL nlsql

스크립트 실행 executeScript

스키마 getTableDetailInfo 표시

접근 제어 기본값

감사 로그 기본값

MySQL

✅

✅

✅

✅

✅

마리아DB

✅

✅

✅

✅

✅

포스트그레스큐엘

✅

✅

✅

✅

✅

신탁

✅

✅

✅

✅

✅

SQL서버

✅

✅

✅

✅

✅

레디스

✅

✅

✅

✅

✅

몽고디비

✅

✅

✅

✅

✅

스타록스

✅

✅

✅

✅

✅

클릭하우스

✅

✅

✅

✅

✅

셀렉트DB

✅

✅

✅

✅

✅

DB2

✅

✅

✅

✅

✅

오션베이스

✅

✅

✅

✅

✅

가우스

✅

✅

✅

✅

✅

빅쿼리

✅

✅

✅

✅

✅

폴라디비

✅

✅

✅

✅

✅

폴라DB-X

✅

✅

✅

✅

✅

분석DB

✅

✅

✅

✅

✅

린도름

✅

✅

✅

✅

✅

테이블스토어

✅

✅

✅

✅

✅

맥스컴퓨트

✅

✅

✅

✅

✅

홀로그레스

✅

✅

✅

✅

✅


시작하기

옵션 1: 소스 코드에서 실행

코드 다운로드

지엑스피1

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 그룹 ID: 129600002740)에 가입하세요.

특허

이 프로젝트는 Apache 2.0 라이선스에 따라 라이선스가 부여되었습니다.

Available Tools

16 tools
addInstanceA

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.

answerSqlSyntaxA
Read-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.

createDataChangeOrderA
Destructive

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.

executeScriptA
Destructive

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.

fixSqlA
Read-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.

generateSqlA
Read-only

Generate SELECT-type SQL queries from natural language input.

Inputs: database_id (required), question (required), knowledge, model.

getDatabaseB
Read-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.

getInstanceA
Read-only

Retrieve detailed instance information from DMS using the host and port.

Inputs: host (required), port (required), sid.

getOrderInfoA
Read-only

Retrieve order information from DMS using the order ID.

Inputs: order_id (required).

getTableDetailInfoA
Read-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).

listInstancesC
Read-only

Search for instances from DMS.

Inputs: search_key, db_type, env_type.

listTablesA
Read-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.

optimizeSqlA
Read-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.

searchDatabaseA
Read-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

    A3.7/5.0

    Scored across 16 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      4
      5
      ISC
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      410
      MIT