Alibaba Cloud RDS OpenAPI MCP Server
OfficialThis MCP server enables AI assistants to manage and monitor Alibaba Cloud RDS instances through OpenAPI integration and SQL execution tools.
Instance Management: Create, restart, modify specifications and descriptions, manage parameters, and allocate public connections for RDS instances.
Monitoring & Diagnostics: Query performance metrics (CPU, memory, QPS/TPS, IOPS, sessions), error logs, slow logs, SQL insights, and advanced DAS metrics (disk usage, MDL locks, I/O statistics).
Security & Access Control: Modify security IP whitelists, apply whitelist templates, create database accounts, and add tags to instances.
SQL Execution: Run read-only queries, explain execution plans, show table definitions, and check InnoDB status.
Resource Discovery: List instances, available zones, instance classes, VPCs, VSwitches, and retrieve detailed instance attributes.
Configuration Management: View and modify database parameters, and batch retrieve network info, IP allowlists, databases, and accounts across multiple instances.
Financial Management: Query billing information and costs by billing cycle.
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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Alibaba Cloud RDS OpenAPI MCP Server show me my running RDS instances in the Singapore region"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
{
"mcpServers": {
"rds-openapi": {
"name": "rds-openapi",
"type": "stdio",
"description": "",
"isActive": true,
"registryUrl": "",
"command": "uvx",
"args": [
"alibabacloud-rds-openapi-mcp-server@latest"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "$you_access_id",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "$you_access_key"
}
}
}
}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.
# set env
export SERVER_TRANSPORT=sse;
export SERVER_HOST=127.0.0.1; # Default: 127.0.0.1. API_KEY is required when binding to a non-loopback host.
export ALIBABA_CLOUD_ACCESS_KEY_ID=$you_access_id;
export ALIBABA_CLOUD_ACCESS_KEY_SECRET=$you_access_key;
export ALIBABA_CLOUD_SECURITY_TOKEN=$you_sts_security_token; # optional, required when using STS Token
export API_KEY=$you_mcp_server_api_key; # Required when SERVER_HOST is not a loopback address.
export ENABLE_WRITE_TOOLS=false; # Set true only when intentionally exposing write-capable tools on a non-loopback host.
export ALLOW_HEADER_CREDENTIALS=false; # Default false. Set true only in trusted deployments that require per-request credentials.
# run mcp server
uvx alibabacloud-rds-openapi-mcp-server@latestAfter run mcp server, you will see the following output:
INFO: Started server process [91594]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)And then configure the Cline.
remote_server = "http://127.0.0.1:8000/sse";When API_KEY is configured, MCP clients must send Authorization: Bearer <API_KEY>.
If you encounter a
401 Incorrect API key providederror when using Qwen, please refer to the documentation for solutions.
Using Claude
Download from Github
git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.gitAdd the following configuration to the MCP client configuration file:
{
"mcpServers": {
"rds-openapi-mcp-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/alibabacloud-rds-openapi-mcp-server/src/alibabacloud_rds_openapi_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
}
}
}
}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: ExecuteEXPLAINfor a singleSELECTstatement and return the execution plan.show_engine_innodb_status: Execute sqlshow engine innodb statusand return sql result.show_create_table: ExecuteSHOW CREATE TABLEfor validated database and table identifiers.show_largest_table: Query the top few tables with the highest space occupancy.show_largest_table_fragment: Query the tables with the largest table fragments.query_sql: Execute a single read-only SQL statement (SELECT,SHOW,DESCRIBE, orEXPLAIN) 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):
rds,rds_custom_allExamples
# Single toolset
--toolsets rds
# Multiple tools
--toolsets rds,rds_mssql_custom
# Environment variable
export MCP_TOOLSETS=rds,rds_custom_allDefault Behavior
If no toolset is specified, the default rds group is loaded automatically.
Resources
None at this time
Skills
This project supports extending the capabilities of RDS Copilot through Skills. Two skills are available:
alibabacloud-rds-copilot: Invokes the RDS AI Assistant API for intelligent Q&A, SQL optimization, and troubleshooting.
alibabacloud-rds-instances-manage: Exposes this project's OpenAPI tools and SQL tools as a script/CLI for use with OpenClaw, Claude Code, and similar platforms. The model runs
alibabacloud-rds-instances-manage listandalibabacloud-rds-instances-manage run <tool_name> '<JSON args>'to manage RDS instances (query instances, monitoring, slow logs, parameters, run read-only SQL, etc.). After installing the package, thealibabacloud-rds-instances-managecommand is available; the skill directory isskill/alibabacloud-rds-instances-manage/.
For detailed information on using Skills, please refer to: Skills Documentation
Prompts
# Role
You are a professional Alibaba Cloud RDS Copilot, specializing in providing customers with efficient technical support and solutions for RDS (Relational Database Service). Your goal is to help customers resolve issues quickly through clear problem decomposition, precise tool invocation, and accurate time calculations.
## Skills
### Skill 1: Problem Decomposition and Analysis
- Deeply deconstruct user questions to identify core requirements and potential steps/commands involved.
- Provide clear task breakdowns to ensure each step contributes to the final solution.
- Please organize your answers in a table format as much as possible.
### Skill 2: RDS MCP Tool Invocation
- Proficiently invoke the RDS MCP tool to retrieve database information or execute operations.
- Tool invocation must follow task decomposition and align with logical reasoning and customer needs.
- Select appropriate MCP modules (e.g., monitoring data queries, performance diagnostics, backup/recovery) based on user requirements.
### Skill 3: Time Interpretation and Calculation
- Accurately parse relative time concepts like "today," "yesterday," or "the last hour."
- Convert relative time expressions into precise time ranges or timestamps using the current time to support data queries or operations.
## Constraints
- **Task Decomposition First**: Always provide detailed task breakdowns.
- **Tool Dependency Clarity**: All MCP tool invocations must be justified by clear task requirements and logical reasoning.
- **Time Precision**: Calculate exact time ranges for time-sensitive queries.
- **Professional Focus**: Discuss only Alibaba Cloud RDS-related technical topics.
- **Safety Awareness**: Ensure no operations negatively impact customer databases.Security Deployment Guide
Do not expose the MCP endpoint to the public Internet. The server can invoke Alibaba Cloud RDS OpenAPI tools and may use sensitive cloud credentials, so an Internet-facing MCP endpoint can create serious security risks.
The strongly recommended deployment model is to run the MCP server only on the local loopback address:
export SERVER_HOST=127.0.0.1If you must use a non-loopback address, restrict it to a trusted private network, enforce network access controls, configure API_KEY, and avoid enabling write-capable tools unless explicitly required.
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
Available Tools
36 toolsadd_tags_to_db_instanceC
add tags to db instance.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
tags: The tags to be added to the RDS instance.
Returns:
dict[str, Any]: The response.
Inputs: tags (required), region_id (required), db_instance_id (required).
allocate_instance_public_connectionC
allocate db instance public connection.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
connection_string_prefix: The prefix of connection string.
Returns:
dict[str, Any]: The response.
Inputs: region_id (required), db_instance_id (required), port, connection_string_prefix.
attach_whitelist_template_to_instanceD
allocate db instance public connection.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
template_id: Whitelist Template ID. Can be obtained via DescribeAllWhitelistTemplate.
Returns:
dict[str, Any]: The response.
Inputs: region_id (required), template_id (required), db_instance_id (required).
create_db_instanceB
Create an RDS instance.
Args:
region_id: Region ID.
engine: Database type (MySQL, SQLServer, PostgreSQL, MariaDB).
engine_version: Database version.
dbinstance_class: Instance specification. Query available class_codes by `describe_available_classes`.
dbinstance_storage: Storage space in GB.
security_ip_list: IP whitelist, separated by commas. Default: "127.0.0.1".
instance_network_type: Network type (Classic, VPC). Default: VPC.
zone_id: Zone ID. Query available zones by `describe_available_zones`.
zone_id_slave1: Slave Node1 Zone ID. Query available zones by `describe_available_zones`.
zone_id_slave2: Slave Node2 Zone ID. Query available zones by `describe_available_zones`.
pay_type: Payment type (Postpaid, Prepaid). Default: Postpaid.
instance_charge_type: Instance charge type.
system_db_charset: Character set.
dbinstance_net_type: Network connection type (Internet, Intranet). Default: Internet.
category: Instance category. Default: Basic.
dbinstance_storage_type: Storage type. (e.g. local_ssd,general_essd,cloud_essd,cloud_essd2,cloud_essd3)
vpc_id: VPC ID.
vswitch_id: VSwitch ID.
private_ip_address: Private IP address.
client_token: Idempotence token.
resource_group_id: Resource group ID.
tde_status: TDE status (Enable, Disable).
encryption_key: Custom encryption key.
serverless_config: Serverless instance configuration.
table_names_case_sensitive: Are table names case-sensitive.
db_time_zone: the db instance time zone.
connection_string: the connection string for db instance.
db_param_group_id: the db param group id for db instance.
Returns:
Dict[str, Any]: Response containing the created instance details.
Inputs: engine (required), vpc_id (required), zone_id (required), region_id (required), +23 more. Returns: result
create_db_instance_accountC
Create a new account for an RDS instance.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
account_name: The name of the new account.
account_password: The password for the new account.
account_description: The description for the new account.
account_type: The type of the new account. (e.g. Normal,Super)
Returns:
dict[str, Any]: The response.
Inputs: region_id (required), account_name (required), db_instance_id (required), account_password (required), +2 more.
describe_all_whitelist_templateBRead-only
describe all whitelist template.
Args:
region_id: The region ID of the RDS instance.
template_name: The ID of the RDS instance.
Returns:
List[Dict[str, Any]]: The response contains all whitelist template information.
Inputs: region_id (required), template_name. Returns: result
describe_available_classesARead-only
Query the RDS instance class_code and storage space that can be purchased in the inventory.
Args:
region_id: The region ID of the RDS instance.
zone_id: The zone ID of the RDS instance. Query available zones by `describe_available_zones`.
instance_charge_type: Instance payment type. Values: Prepaid, Postpaid, Serverless.
engine: Database engine type. Values: MySQL, SQLServer, PostgreSQL, MariaDB.
engine_version: Database version.
dbinstance_storage_type: Storage type. Values: local_ssd,general_essd,cloud_essd,cloud_essd2,cloud_essd3
category: Instance category. Values: Basic, HighAvailability, cluster, AlwaysOn, Finance, serverless_basic, serverless_standard, serverless_ha.
dbinstance_id: The ID of the RDS instance.
order_type: Order type. Currently only supports "BUY".
commodity_code: Commodity code for read-only instances.
Returns:
Dict[str, Any]: The response containing available instance classes and storage ranges.
Inputs: engine (required), zone_id (required), category (required), region_id (required), +6 more. Returns: result
describe_available_zonesARead-only
Query available zones for RDS instances.
Args:
region_id: Region ID.
engine: Database type (MySQL, SQLServer, PostgreSQL, MariaDB).
engine_version: Database version.
MySQL: 5.5, 5.6, 5.7, 8.0
SQL Server: 2008r2, 2012, 2014, 2016, 2017, 2019
PostgreSQL: 10.0, 11.0, 12.0, 13.0, 14.0, 15.0
MariaDB: 10.3
commodity_code: Commodity code.
bards: Pay-as-you-go primary instance (China site)
rds: Subscription primary instance (China site)
rords: Pay-as-you-go read-only instance (China site)
rds_rordspre_public_cn: Subscription read-only instance (China site)
bards_intl: Pay-as-you-go primary instance (International site)
rds_intl: Subscription primary instance (International site)
rords_intl: Pay-as-you-go read-only instance (International site)
rds_rordspre_public_intl: Subscription read-only instance (International site)
rds_serverless_public_cn: Serverless instance (China site)
rds_serverless_public_intl: Serverless instance (International site)
zone_id: Zone ID.
dispense_mode: Whether to return zones that support single-zone deployment.
1: Return (default)
0: Do not return
dbinstance_name: Primary instance ID. Required when querying read-only instance resources.
category: Instance category.
Basic: Basic Edition
HighAvailability: High-availability Edition
cluster: MySQL Cluster Edition
AlwaysOn: SQL Server Cluster Edition
Finance: Enterprise Edition
serverless_basic: Serverless Basic Edition
serverless_standard: MySQL Serverless High-availability Edition
serverless_ha: SQL Server Serverless High-availability Edition
Returns:
Dict[str, Any]: Response containing available zones information.
Inputs: engine (required), region_id (required), zone_id, category, +4 more. Returns: result
describe_billsBRead-only
Query the consumption summary of all product instances or billing items for a user within a specific billing period.
Args:
billing_cycles: bill cycle YYYY-MM, e.g. 2020-03
db_instance_id: DB instance id (e.g., "rm-xxx")
is_billing_item: Whether to pull data according to the billing item dimension.
Returns:
str: billing information.
Inputs: billing_cycles (required), db_instance_id, is_billing_item. Returns: object
describe_db_instance_accountsARead-only
Batch retrieves account information for multiple RDS instances.
Args:
region_id: The region ID of the RDS instance.
db_instance_ids: List of DB instance identifiers (e.g., ["rm-uf6wjk5****", "db-instance-01"])
Returns:
list[dict]: A list of dictionaries containing account information for each instance.
Inputs: region_id (required), db_instance_ids (required). Returns: result
describe_db_instance_attributeARead-only
Queries the details of an instance.
Args:
region_id: db instance region(e.g. cn-hangzhou)
db_instance_id: db instance id(e.g. rm-xxx)
:return:
Inputs: region_id (required), db_instance_id (required).
describe_db_instance_databasesARead-only
Batch retrieves database information for multiple RDS instances.
Args:
region_id: The region ID of the RDS instance.
db_instance_ids: List of DB instance identifiers (e.g., ["rm-uf6wjk5****", "db-instance-01"])
Returns:
list[dict]: A list of dictionaries containing database information for each instance.
Inputs: region_id (required), db_instance_ids (required). Returns: result
describe_db_instance_ip_allowlistARead-only
Batch retrieves IP allowlist configurations for multiple RDS instances.
Args:
region_id: The region ID of the RDS instance.
db_instance_ids: List of DB instance identifiers (e.g., ["rm-uf6wjk5****", "db-instance-01"])
Returns:
list[dict]: A list of dictionaries containing network configuration details for each instance.
Inputs: region_id (required), db_instance_ids (required). Returns: result
describe_db_instance_net_infoARead-only
Batch retrieves network configuration details for multiple RDS instances.
Args:
region_id: The region ID of the RDS instance.
db_instance_ids: List of DB instance identifiers (e.g., ["rm-uf6wjk5****", "db-instance-01"])
Returns:
list[dict]: A list of dictionaries containing network configuration details for each instance.
Inputs: region_id (required), db_instance_ids (required). Returns: result
describe_db_instance_parametersARead-only
Batch retrieves parameter information for multiple RDS instances.
Args:
region_id: The region ID of the RDS instance.
db_instance_ids: List of DB instance identifiers (e.g., ["rm-uf6wjk5****", "db-instance-01"])
paramters: List of parameter names (e.g., ["max_connections", "innodb_buffer_pool_size"])
Returns:
list[dict]: A list of dictionaries containing parameter information(ParamGroupInfo,ConfigParameters,RunningParameters) foreach instance.
Inputs: region_id (required), db_instance_ids (required), paramters. Returns: object
describe_db_instance_performanceBRead-only
Queries the performance data of an instance using the RDS OpenAPI.
This method provides performance data collected from the RDS service, such as MemCpuUsage, QPSTPS, Sessions, ThreadStatus, MBPS, etc.
Args:
region_id: db instance region(e.g. cn-hangzhou)
db_instance_id: db instance id(e.g. rm-xxx)
db_type: the db instance database type(e.g. mysql,pgsql,sqlserver)
perf_keys: Performance Key (e.g. ["MemCpuUsage", "QPSTPS", "Sessions", "COMDML", "RowDML", "ThreadStatus", "MBPS", "DetailedSpaceUsage"])
start_time: start time(e.g. 2023-01-01 00:00)
end_time: end time(e.g. 2023-01-01 00:00)
Inputs: db_type (required), end_time (required), perf_keys (required), region_id (required), +2 more.
describe_db_instancesCRead-only
Queries instances.
Args:
region_id: queries instances in region id(e.g. cn-hangzhou)
:return:
Inputs: region_id (required).
describe_error_logsARead-only
Query error logs of an RDS instance.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
start_time: The start time of the query. Format: yyyy-MM-dd HH:mm.
end_time: The end time of the query. Format: yyyy-MM-dd HH:mm.
page_size: The number of records per page. Range: 30~100. Default: 30.
page_number: The page number. Default: 1.
Returns:
Dict[str, Any]: A dictionary containing error log information
Inputs: end_time (required), region_id (required), start_time (required), db_instance_id (required), +2 more. Returns: result
describe_instance_linked_whitelist_templateDRead-only
describe instance linked whitelist template.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
Returns:
dict[str, Any]: The response.
Inputs: region_id (required), db_instance_id (required).
describe_monitor_metricsARead-only
Queries performance and diagnostic metrics for an instance using the DAS (Database Autonomy Service) API.
This method provides extra monitoring and diagnostic data which cannot be queried by describe_db_instance_performance, such as IOPSUsage, MdlLockSession, etc.
Args:
dbinstance_id (str): The ID of the RDS instance.
metrics_list (list[str]): The metrics to query. (e.g. ["IOBytesPS", "IOPSUsage", "MdlLockSession", "DiskUsage"])
db_type (str): The type of the database. (e.g. "mysql")
start_time(str): the start time. e.g. 2025-06-06 20:00:00
end_time(str): the end time. e.g. 2025-06-06 20:10:00
Returns:
the monitor metrics information.
Inputs: db_type (required), end_time (required), start_time (required), metrics_list (required), +1 more.
describe_slow_log_recordsARead-only
Query slow log records for an RDS instance.
Args:
region_id: The region ID of the RDS instance.
dbinstance_id: The ID of the RDS instance.
start_time: Start time in format: yyyy-MM-dd HH:mm.
Cannot be earlier than 30 days before the current time.
end_time: End time in format: yyyy-MM-dd HH:mm.
Must be later than the start time.
sqlhash: The unique identifier of the SQL statement in slow log statistics.
Used to get slow log details for a specific SQL statement.
db_name: The name of the database.
page_size: Number of records per page. Range: 30-100. Default: 30.
page_number: Page number. Must be greater than 0 and not exceed Integer max value. Default: 1.
node_id: Node ID. Only applicable to cluster instances.
If not specified, logs from the primary node are returned by default.
Returns:
Dict[str, Any]: The response containing slow log records.
Inputs: end_time (required), region_id (required), start_time (required), dbinstance_id (required), +5 more. Returns: result
describe_sql_insight_statisticBRead-only
Query SQL Log statistics, including SQL cost time, execution times, and account.
Args:
dbinstance_id (str): The ID of the RDS instance.
start_time(str): the start time of sql insight statistic. e.g. 2025-06-06 20:00:00
end_time(str): the end time of sql insight statistic. e.g. 2025-06-06 20:10:00
Returns:
the sql insight statistic information in csv format.
Inputs: end_time (required), start_time (required), dbinstance_id (required). Returns: result
describe_vpcsARead-only
Query VPC list.
Args:
region_id: The region ID of the VPC.
vpc_id: The ID of the VPC. Up to 20 VPC IDs can be specified, separated by commas.
vpc_name: The name of the VPC.
resource_group_id: The resource group ID of the VPC to query.
page_number: The page number of the list. Default: 1.
page_size: The number of entries per page. Maximum value: 50. Default: 10.
vpc_owner_id: The Alibaba Cloud account ID of the VPC owner.
tags: The tags of the resource.
Returns:
Dict[str, Any]: The response containing the list of VPCs.
Inputs: region_id (required), tags, vpc_id, vpc_name, +4 more. Returns: result
describe_vswitchesARead-only
Query VSwitch list.
Args:
region_id: The region ID of the VSwitch. At least one of region_id or vpc_id must be specified.
vpc_id: The ID of the VPC to which the VSwitch belongs. At least one of region_id or vpc_id must be specified.
vswitch_id: The ID of the VSwitch to query.
zone_id: The zone ID of the VSwitch.
vswitch_name: The name of the VSwitch.
resource_group_id: The resource group ID of the VSwitch.
page_number: The page number of the list. Default: 1.
page_size: The number of entries per page. Maximum value: 50. Default: 10.
Returns:
Dict[str, Any]: The response containing the list of VSwitches.
Inputs: vpc_id, zone_id, page_size, region_id, +5 more. Returns: result
explain_sqlBRead-only
show sql execute plan
Args:
dbinstance_id (str): The ID of the RDS instance.
region_id(str): the region id of instance.
db_name(str): the db name for table.
sql(str): the target sql.
Returns:
the sql execute plan.
Inputs: sql (required), db_name (required), region_id (required), dbinstance_id (required). Returns: result
get_current_timeARead-only
Get the current time.
Returns:
Dict[str, Any]: The response containing the current time.
Inputs: no named parameters. Returns: result
modify_db_instance_descriptionC
modify db instance description.
Args:
region_id: The region ID of the RDS instance.
db_instance_id: The ID of the RDS instance.
description: The RDS instance description.
Returns:
dict[str, Any]: The response.
Inputs: region_id (required), description (required), db_instance_id (required).
modify_db_instance_specB
Modify RDS instance specifications.
Args:
region_id: The region ID of the RDS instance.
dbinstance_id: The ID of the RDS instance.
dbinstance_class: Target instance specification.
dbinstance_storage: Target storage space in GB.
pay_type: Instance payment type. Values: Postpaid, Prepaid, Serverless.
effective_time: When the new configuration takes effect. Values: Immediate, MaintainTime, ScheduleTime.
switch_time: Scheduled switch time in format: yyyy-MM-ddTHH:mm:ssZ (UTC time).
switch_time_mode: Switch time mode. Values: Immediate, MaintainTime, ScheduleTime.
source_biz: Source business type.
dedicated_host_group_id: Dedicated host group ID.
zone_id: Zone ID.
vswitch_id: VSwitch ID.
category: Instance category.
instance_network_type: Instance network type.
direction: Specification change direction. Values: UP, DOWN.
auto_pause: Whether to enable auto pause for Serverless instances.
max_capacity: Maximum capacity for Serverless instances.
min_capacity: Minimum capacity for Serverless instances.
switch_force: Whether to force switch for Serverless instances.
client_token: Client token for idempotency, max 64 ASCII characters.
Returns:
Dict[str, Any]: The response containing the request ID.
Inputs: region_id (required), dbinstance_id (required), zone_id, category, +16 more. Returns: result
modify_parameterA
Modify RDS instance parameters.
Args:
region_id: The region ID of the RDS instance.
dbinstance_id: The ID of the RDS instance.
parameters (Dict[str, str], optional): Parameters and their values in JSON format.
Example: {"delayed_insert_timeout": "600", "max_length_for_sort_data": "2048"}
parameter_group_id: Parameter template ID.
forcerestart: Whether to force restart the database. Default: False.
switch_time_mode: Execution time mode. Values: Immediate, MaintainTime, ScheduleTime. Default: Immediate.
switch_time: Scheduled execution time in format: yyyy-MM-ddTHH:mm:ssZ (UTC time).
client_token: Client token for idempotency, max 64 ASCII characters.
Returns:
Dict[str, Any]: The response containing the request ID.
Inputs: region_id (required), dbinstance_id (required), parameters, switch_time, +4 more. Returns: result
modify_security_ipsB
modify security ips。
Args:
region_id (str): RDS instance region id.
dbinstance_id (str): RDS instance id.
security_ips (str): security ips list, separated by commas.
whitelist_network_type (str, optional): whitelist network type.
- MIX: mixed network type
- Classic: classic network
- VPC: vpc
default value: MIX
security_ip_type (str, optional): security ip type.
- normal: normal security ip
- hidden: hidden security ip
dbinstance_ip_array_name (str, optional): security ip array name.
dbinstance_ip_array_attribute (str, optional): security ip array attribute.
- hidden: hidden security ip
- normal: normal security ip
client_token (str, optional): idempotency token, max 64 ascii characters.
Returns:
Dict[str, Any]: response contains request id.
Inputs: region_id (required), security_ips (required), dbinstance_id (required), client_token, +4 more. Returns: result
query_sqlBRead-only
execute read-only sql likes show xxx, select xxx
Args:
dbinstance_id (str): The ID of the RDS instance.
region_id(str): the region id of instance.
db_name(str): the db name for execute sql.
sql(str): the sql to be executed.
Returns:
the sql result.
Inputs: sql (required), db_name (required), region_id (required), dbinstance_id (required). Returns: result
restart_db_instanceA
Restart an RDS instance.
Args:
region_id (str): The region ID of the RDS instance.
dbinstance_id (str): The ID of the RDS instance.
effective_time (str, optional): When to restart the instance. Options:
- Immediate: Restart immediately
- MaintainTime: Restart during maintenance window
- ScheduleTime: Restart at specified time
Default: Immediate
switch_time (str, optional): The scheduled restart time in format: yyyy-MM-ddTHH:mm:ssZ (UTC time).
Required when effective_time is ScheduleTime.
client_token (str, optional): Idempotency token, max 64 ASCII characters.
Returns:
Dict[str, Any]: Response containing the request ID.
Inputs: region_id (required), dbinstance_id (required), switch_time, client_token, +1 more. Returns: result
show_create_tableBRead-only
show create table db_name.table_name
Args:
dbinstance_id (str): The ID of the RDS instance.
region_id(str): the region id of instance.
db_name(str): the db name for table.
table_name(str): the table name.
Returns:
the sql result.
Inputs: db_name (required), region_id (required), table_name (required), dbinstance_id (required). Returns: result
show_engine_innodb_statusBRead-only
show engine innodb status in db.
Args:
dbinstance_id (str): The ID of the RDS instance.
region_id(str): the region id of instance.
Returns:
the sql result.
Inputs: region_id (required), dbinstance_id (required). Returns: result
show_largest_tableARead-only
Query the top few tables with the highest space occupancy
Inputs: region_id (required), dbinstance_id (required), topK. Returns: result
show_largest_table_fragmentBRead-only
Query the tables with the largest table fragments
Inputs: region_id (required), dbinstance_id (required), topK. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
Most tools have clearly distinct purposes, but there is some overlap between describe_db_instance_performance and describe_monitor_metrics (both query metrics), and a few tools like query_sql vs show_* tools could be confused. Additionally, attach_whitelist_template_to_instance has an incorrect description matching allocate_instance_public_connection, which may mislead agents.
The naming generally follows a verb_noun pattern (e.g., describe_db_instance_*, modify_db_instance_*), but there are minor inconsistencies like show_largest_table (no verb prefix), get_current_time (uses 'get' instead of describe/query), and explain_sql (verb_noun but different verb). Overall, the pattern is predictable.
With 36 tools covering instance lifecycle, monitoring, SQL execution, and network management, the count is well-suited for the RDS domain. Each tool adds clear value, and the set is neither too sparse nor overly bloated.
The tool surface lacks critical operations: no tool to delete an RDS instance, no create/modify/delete database tools (except via query_sql), and no backup/restore functionality. These gaps will likely cause agent failures when performing cleanup or database management tasks.
Maintenance
Related MCP Connectors
MCP server for Product Management
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
AlicenseAqualityDmaintenanceThe Redis Cloud API MCP Server provides an MCP Server for Redis Cloud's API, allowing you to manage your Redis Cloud resources using natural language.1643MIT
AlibabaCloud MCP Serverofficial
AlicenseBqualityBmaintenanceA server that provides access to Alibaba Cloud resources including ECS, VPC, and CloudMonitor through API and OOS implementations, enabling resource management and monitoring via a unified interface.34137Apache 2.0- FlicenseBqualityDmaintenanceA server that provides access to Alibaba Cloud workitem descriptions through MCP protocol, allowing agents to retrieve structured workitem data including text, images, and HTML content by ID.11-
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server for connecting to databases (PostgreSQL, MySQL, SQL Server, Redis) enabling SQL queries, table exploration, and Redis key-value operations.1MIT