Provides tools for managing Alibaba Cloud RDS database services, including creating instances, querying instance details and performance metrics, modifying instance specifications and parameters, and accessing logs.
Alibaba Cloud RDS OpenAPI MCP Server
MCP server for RDS Services via OPENAPI
Prerequisites
Install
uvfrom Astral or the GitHub READMEInstall Python using
uv python install 3.12Alibaba Cloud credentials with access to Alibaba Cloud RDS services
Related MCP server: AlibabaCloud MCP Server
Quick Start
Using cherry-studio (Recommended)
Download and install cherry-studio
Follow the documentation to install uv, which is required for the MCP environment
Configure and use RDS MCP according to the documentation. You can quickly import the RDS MCP configuration using the JSON below. Please set ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET to your Alibaba Cloud AK/SK.
The following error may appear during import, which can be ignored: xxx settings.mcp.addServer.importFrom.connectionFailed
Finally, click to turn on MCP
You can use the prompt template provided below to enhance your experience.
Using Cline
Set you env and run mcp server.
After run mcp server, you will see the following output:
And then configure the Cline.
If you encounter a
401 Incorrect API key providederror when using Qwen, please refer to the documentation for solutions.
Using Claude
Download from Github
Add the following configuration to the MCP client configuration file:
Components
OpenAPI Tools
add_tags_to_db_instance: Add tags to an RDS instance.allocate_instance_public_connection: Allocate a public connection for an RDS instance.attach_whitelist_template_to_instance: Attach a whitelist template to an RDS instance.create_db_instance: Create an RDS instance.create_db_instance_account: Create an account for RDS instance.describe_all_whitelist_template: Query the whitelist template list.describe_available_classes: Query available instance classes and storage ranges.describe_available_zones: Query available zones for RDS instances.describe_bills: Query the consumption summary of all product instances or billing items for a user within a specific billing period.describe_db_instance_accounts: Batch retrieves account information for multiple RDS instances.describe_db_instance_attribute: Queries the details of an instance.describe_db_instance_databases: Batch retrieves database information for multiple RDS instances.describe_db_instance_ip_allowlist: Batch retrieves IP allowlist configurations for multiple RDS instances.describe_db_instance_net_info: Batch retrieves network configuration details for multiple RDS instances.describe_db_instance_parameters: Batch retrieves parameter information for multiple RDS instances.describe_db_instance_performance: Queries the performance data of an instance.describe_db_instances: Queries instances.describe_error_logs: Queries the error log of an instance.describe_instance_linked_whitelist_template: Query the whitelist template list.describe_monitor_metrics: Queries performance and diagnostic metrics for an instance using the DAS (Database Autonomy Service) API.describe_slow_log_records: Query slow log records for an RDS instance.describe_sql_insight_statistic: Query SQL Log statistics, including SQL cost time, execution times, and account.describe_vpcs: Query VPC list.describe_vswitches: Query VSwitch list.modify_security_ips: Modify RDS instance security IP whitelist.get_current_time: Get the current time.modify_db_instance_description: Modify RDS instance descriptions.modify_db_instance_spec: Modify RDS instance specifications.modify_parameter: Modify RDS instance parameters.restart_db_instance: Restart an RDS instance.
SQL Tools
The MCP Server will automatically create a read-only account, execute the SQL statement, and then automatically delete the account. This process requires that the MCP Server can connect to the instance.
explain_sql: Execute sqlexplainand return sql result.show_engine_innodb_status: Execute sqlshow engine innodb statusand return sql result.show_create_table: Execute sqlshow create tableand return sql result.query_sql: Execute read-only sql and return sql result.
Toolsets
Toolsets group available MCP tools so you can enable only what you need. Configure toolsets when starting the server using either:
Command line:
--toolsetsparameterEnvironment variable:
MCP_TOOLSETS
Available Toolsets
Here is a list of toolsets and their functions:
rds: Enables all tools for the standard, managed RDS service
rds_custom_read: Enables read-only tools for the RDS Custom.
rds_custom_all: Enables full read and write tools for the RDS Custom.
Format
Use comma-separated toolset names (no spaces around commas):
Examples
Default Behavior
If no toolset is specified, the default rds group is loaded automatically.
Resources
None at this time
Prompts
Use Cases
mydba
Alibaba Cloud Database MyDBA Agent(README.md)
Buy RDS
Diagnose RDS
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the Apache 2.0 License.
Contact Information
For any questions or concerns, please contact us through the DingTalk group:106730017609