An offical mcp server for Adb MySQL of Alibaba Cloud
Project description
Adb MySQL MCP Server
Adb MySQL MCP Server serves as a universal interface between AI Agents and Adb MySQL databases. It enables seamless communication between AI Agents and Adb MySQL, helping AI Agents retrieve Adb MySQL database metadata and execute SQL operations.
Configuration
Mode 1: Using Local File
MCP Integration
Add the following configuration to the MCP client configuration file:
"mcpServers": {
"adb-mysql-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/alibabacloud-adb-mysql-mcp-server",
"run",
"adb-mysql-mcp-server"
],
"env": {
"ADB_MYSQL_HOST": "host",
"ADB_MYSQL_PORT": "port",
"ADB_MYSQL_USER": "database_user",
"ADB_MYSQL_PASSWORD": "database_password",
"ADB_MYSQL_DATABASE": "database"
}
}
}
Mode 2: Using PIP Mode
Installation
Install MCP Server using the following package:
pip install adb-mysql-mcp-server
MCP Integration
Add the following configuration to the MCP client configuration file:
"mcpServers": {
"adb-mysql-mcp-server": {
"command": "uv",
"args": [
"run",
"--with",
"adb-mysql-mcp-server",
"adb-mysql-mcp-server"
],
"env": {
"ADB_MYSQL_HOST": "host",
"ADB_MYSQL_PORT": "port",
"ADB_MYSQL_USER": "database_user",
"ADB_MYSQL_PASSWORD": "database_password",
"ADB_MYSQL_DATABASE": "database"
}
}
}
Components
Tools
-
execute_sql: Execute a SQL query in the Adb MySQL Cluster -
get_query_plan: Get the query plan for a SQL query -
get_execution_plan: Get the actual execution plan with runtime statistics for a SQL query
Resources
Built-in Resources
adbmysql:///databases: Get all the databases in the adb mysql cluster
Resource Templates
-
adbmysql:///{schema}/tables: Get all the tables in a specific database -
adbmysql:///{database}/{table}/ddl: Get the DDL script of a table in a specific database -
adbmysql:///{config}/{key}/value: Get the value for a config key in the cluster
Prompts
None at this time
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adb_mysql_mcp_server-1.0.0.tar.gz.
File metadata
- Download URL: adb_mysql_mcp_server-1.0.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46fedb3a8876ef75a54bda9a74f7a6ffda0d6fbf93bf04c3b1c086591a40619e
|
|
| MD5 |
876660aa02fc47490c8cf19a0340d45d
|
|
| BLAKE2b-256 |
d2b4520973e621ba45ae0cbc4fe7894532a398a60340e8b54d391dc304cfdde6
|
File details
Details for the file adb_mysql_mcp_server-1.0.0-py3-none-any.whl.
File metadata
- Download URL: adb_mysql_mcp_server-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14da87176c5f03e95ff8c251df4ca1f6cc5e0af886a855f7b0e4fd25e7982697
|
|
| MD5 |
992156f61f21406ad342bb91f7834200
|
|
| BLAKE2b-256 |
d3faaa5579e692a388a6d69354d1e528fd29123cb13b94847c02167fd25f9d09
|