You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-20Lines changed: 44 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,38 @@
5
5
6
6
# AlibabaCloud DMS MCP Server
7
7
8
-
**AI-powered unified data management gateway** that supports connection to over 40+ data sources, serving as a multi-cloud universal data MCP Server to address cross-source data secure access in one-stop solution.
8
+
**AI-Era Data Security Access Gateway |Intelligent Data Query Engine|Supports 40+ Data Sources**
-**Account and Password Security Management**:Safely manage database account passwords without manual maintenance, effectively preventing sensitive information leakage.
15
+
-**Fine-grained Permission Control**:Supports instance, database, table, field, and row-level access control, precisely restricting caller permissions to prevent unauthorized operations and ensure data security.
16
+
-**High-risk SQL Identification and Blocking**: Built-in rich rule engine that identifies and blocks potential high-risk SQL in real time to mitigate security risks.
17
+
-**SQL Audit Trail**: Records all SQL operation logs, supporting full traceability and compliance audits to meet regulatory requirements.
-**Built-in NL2SQL Algorithm**: Based on natural language input questions, it intelligently matches data tables, understands business semantics within tables, generates and executes SQL queries, and quickly obtains results.
21
+
-**Personalized Knowledge Base**: Built-in metadata and [knowledge base](https://help.aliyun.com/zh/dms/knowledge-base-management?) for data inquiry, supports custom business knowledge and query patterns to build tailored intelligent data inquiry capabilities aligned with business scenarios.
16
22
23
+
**Multi-data Source Support**
24
+
-**Wide Range of Data Source Support**: Supports over 40 mainstream databases/data warehouses, enabling unified access and integration from multiple sources.
25
+
-**Unified Management Across Environments**: Supports centralized management of database instances across development, testing, and production environments to improve operational efficiency.
26
+
-**Seamless Integration Across Platforms**: Covers major cloud platforms such as Alibaba Cloud and AWS, as well as self-built databases/data warehouses, effectively reducing maintenance costs.
17
27
18
28
---
19
29
20
-
## Core Features
21
-
Provides AI with a unified **data access layer** and **metadata access layer**, solving through standardized interfaces:
22
-
- Maintenance costs caused by data source fragmentation
23
-
- Compatibility issues between heterogeneous protocols
24
-
- Security risks from uncontrolled account permissions and non-auditable operations
25
-
26
-
Key features via MCP include:
27
-
-**NL2SQL**: Execute SQL via natural language to obtain data results
28
-
-**Code Generation**: Retrieve schema information through this service to generate DAO code or perform structural analysis
29
-
-**Data Retrieval**: Automatically route SQL to accurate data sources for business support
30
-
-**Security**: Fine-grained access control and auditability
31
-
-**Data Migration**: Configure data migration tasks
30
+
## Supported Ecosystem
31
+
- Supports all Alibaba Cloud data sources: RDS, PolarDB, ADB series, Lindorm series, TableStore series, Maxcompute series.
@@ -42,6 +50,7 @@ DMS MCP Server currently supports two usage modes.
42
50
You are a company DBA who needs to manage and access various types of database instances (e.g., MySQL, Oracle, PostgreSQL) in production, test, and development environments. With DMS MCP Server, you can achieve unified access and centralized management of these heterogeneous databases.
43
51
44
52
**Typical Question Examples:**
53
+
- Which of my instances are in the production environment?
45
54
- Get a list of all databases named `test`.
46
55
- Retrieve details of the `test_db` database from the `myHost:myPort` instance.
47
56
- What tables are in the `test_db` database?
@@ -50,7 +59,7 @@ You are a company DBA who needs to manage and access various types of database i
50
59
### Mode Two: Single Database Mode
51
60
- Directly specify the target database by configuring the `CONNECTION_STRING` parameter in the server (format: `dbName@host:port`).
52
61
- Suitable for scenarios that focus on accessing a single database.
53
-
#### Scenario Example:
62
+
#### Scenario Example 1:
54
63
You are a developer who frequently accesses a fixed database (e.g., `mydb@192.168.1.100:3306`) for development and testing. Set the `CONNECTION_STRING` parameter in the DMS MCP Server configuration as follows:
55
64
```ini
56
65
CONNECTION_STRING = mydb@192.168.1.100:3306
@@ -63,6 +72,21 @@ Afterward, every time the service starts, the DMS MCP Server will directly acces
63
72
- Retrieve the first 20 rows from the `test_table` table.
64
73
- Use a tool to answer: "What is today's user traffic?"
65
74
75
+
#### Scenario Example 2:
76
+
You are a data analyst at an e-commerce company, needing to frequently query and analyze business data such as orders, users, and products. The company's core business database is located at ecommerce@10.20.30.40:3306.
77
+
78
+
Configure the following parameters in DMS MCP Server:
79
+
```ini
80
+
CONNECTION_STRING = ecommerce@10.20.30.40:3306
81
+
```
82
+
Simply ask questions in natural language, and DMS MCP will parse the question into SQL and return the results.
83
+
84
+
**Typical Question Examples:**
85
+
- What is the total number of orders today?
86
+
- How are the order counts ranked by province?
87
+
- What is the number of new users each day over the past 7 days?
88
+
- Which product category has the highest sales revenue?
89
+
66
90
---
67
91
## Tool List
68
92
| Tool Name | Description | Applicable Mode |
@@ -114,9 +138,9 @@ Afterward, every time the service starts, the DMS MCP Server will directly acces
114
138
115
139
---
116
140
## Prerequisites
117
-
-uv is installed
141
+
-[uv](https://docs.astral.sh/uv/getting-started/installation/) is installed
118
142
- Python 3.10+ is installed
119
-
- An AK/SK or STS Token with access rights to Alibaba Cloud DMS(AliyunDMSFullAccess)
143
+
- An [AK/SK](https://www.alibabacloud.com/help/en/doc-detail/116811.html) or [STS Token](https://www.alibabacloud.com/help/en/ram/product-overview/what-is-sts) with access rights to Alibaba Cloud DMS(AliyunDMSFullAccess).Add permission operations, see [Authorization Management](https://www.alibabacloud.com/help/en/ram/user-guide/authorization-management/).
0 commit comments