Alibaba Cloud RDS OpenAPI MCP Server (Q CLI Adapted)
Click on "Install 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 (Q CLI Adapted)list my RDS instances"
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 (Q CLI Adapted)
Note: This project is forked from aliyun/alibabacloud-rds-openapi-mcp-server and has been adapted for seamless integration with Amazon Q Developer CLI.
MCP server for RDS Services via OPENAPI, optimized for Amazon Q Developer CLI integration.
Prerequisites
Install
uvfrom Astral or the GitHub READMEInstall Python using
uv python install 3.11Alibaba Cloud credentials with access to Alibaba Cloud RDS services
Related MCP server: Amplify Data API MCP Server
Quick Setup for Amazon Q Developer CLI
git clone https://github.com/RadiumGu/alibabacloud-rds-openapi-mcp-server-QCLI.git
cd alibabacloud-rds-openapi-mcp-server-QCLI
./setup.shThen configure your Alibaba Cloud credentials and use the provided mcp_config.json file with Amazon Q Developer CLI.
Q CLI Adaptations
This fork includes several enhancements specifically for Amazon Q Developer CLI integration:
π Enhanced Features
Pre-configured MCP settings - Ready-to-use
mcp_config.jsonfor Q CLIAutomated setup script - One-command installation with
./setup.shEnvironment template -
.env.templatefor easy credential configurationProtocol compliance - Full MCP protocol validation and testing
Optimized performance - Streamlined for Q CLI's interaction patterns
π Additional Documentation
Q CLI Integration Guide - Step-by-step setup instructions
Q CLI Usage Examples - Common usage patterns and examples
Configuration Optimization - Performance tuning tips
MCP Protocol Compliance Report - Technical validation details
π§ What's Different from Original
Added Q CLI-specific configuration files
Enhanced error handling and logging
Improved environment variable management
Added comprehensive testing suite
Optimized for Q CLI's MCP client implementation
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 Amazon Q Developer CLI
Clone the repository:
git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
cd alibabacloud-rds-openapi-mcp-serverInstall
uvfrom Astral or the GitHub READMEInstall Python using
uv python install 3.11Set up a virtual environment:
uv venv
source .venv/bin/activate
uv pip install -e .Configure your Alibaba Cloud credentials:
# Copy the template and edit with your credentials
cp .env.template .env
nano .envEdit the .env file with your actual credentials:
ALIBABA_CLOUD_ACCESS_KEY_ID=your_actual_access_key_id
ALIBABA_CLOUD_ACCESS_KEY_SECRET=your_actual_access_key_secret
ALIBABA_CLOUD_REGION=cn-hangzhouRun the MCP server:
uv run src/alibabacloud_rds_openapi_mcp_server/server.pyThe server is already configured in Amazon Q Developer CLI. To enable it:
Edit
~/.aws/amazonq/mcp.jsonFind the
alibabacloud-rds-openapi-mcp-serverentryChange
"disabled": trueto"disabled": false
Alternatively, you can use the provided mcp_config.json file as a reference for your MCP configuration.
Using Cline
Set you env and run mcp server.
# set env
export SERVER_TRANSPORT=sse;
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; # Optional, after configuration, requests will undergo API Key authentication.
# 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://0.0.0.0:8000 (Press CTRL+C to quit)And then configure the Cline.
remote_server = "http://127.0.0.1:8000/sse";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: 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):
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
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.Use Cases
mydba
Alibaba Cloud Database MyDBA Agent(README.md)
Buy 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceA MCP server that exposes OpenAPI schema information to LLMs like Claude. This server allows an LLM to explore and understand large OpenAPI schemas through a set of specialized tools, without needing to load the whole schema into the context11350MIT
- Flicense-qualityDmaintenanceThis MCP server enables users to interact with AWS Amplify Gen2 application data through natural language, allowing AI assistants like Claude to perform operations on Amplify data models using conversational language instead of complex code.4
- Alicense-qualityDmaintenanceMCP server for interacting with QUADS infrastructure systems via API, enabling resource management and automation through LLM applications.MIT
- Alicense-qualityDmaintenanceRuntime MCP server that dynamically bridges any OpenAPI 3.x spec to MCP tools.11MIT
Related MCP Connectors
Hosted Amazon Seller and Vendor MCP server for Claude, ChatGPT, Cursor, Codex, Gemini, Copilot.
MCP server for interacting with the Supabase platform
The official MCP Server from Mia-Platform to interact with Mia-Platform Console
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RadiumGu/alibabacloud-rds-openapi-mcp-server-QCLI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server