home / mcp / alibaba rds openapi mcp server
Provides RDS OpenAPI capabilities through MCP for managing RDS resources and performing SQL tasks.
Configuration
View docs{
"mcpServers": {
"aliyun-alibabacloud-rds-openapi-mcp-server": {
"command": "uvx",
"args": [
"alibabacloud-rds-openapi-mcp-server@latest"
],
"env": {
"API_KEY": "YOUR_API_KEY",
"ALIBABA_CLOUD_ACCESS_KEY_ID": "$you_access_id",
"ALIBABA_CLOUD_SECURITY_TOKEN": "STS_TOKEN_EXAMPLE",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "$you_access_key"
}
}
}
}You can run the Alibaba Cloud RDS OpenAPI MCP Server to expose RDS OpenAPI capabilities through MCP clients. It enables you to manage and interact with RDS resources via MCP tooling, supporting a wide range of RDS operations and SQL tasks through structured tool sets and prompts.
Use an MCP client to connect to the MCP server using either a local (stdio) server process or a cloud-based/http endpoint configured in your MCP client. You can enable and configure the RDS OpenAPI MCP tools to perform operations such as creating or modifying RDS instances, managing security, querying performance data, and running read-only SQL tasks. Follow the instructions below to start the MCP server and connect your client to the server, then select the RDS toolsets you need for your workflow.
Prerequisites: install the required runtimes and set up credentials so the MCP server can access Alibaba Cloud RDS resources.
# Install uvx if using the Cherry-studio route (recommended)
# This step assumes you have access to uv/uvx via your environment
# Follow your environment's instructions to install uv or uvx
# Alternatively, install the MCP server client tooling as described belowTwo primary ways to run the MCP server are demonstrated: using Cherry-studio with uvx to run the MCP server package, or using Cline to run the server via a CLI command that launches the MCP server package. You can also run through Claude by invoking uv to run the Python-based MCP server. Ensure you provide Alibaba Cloud credentials and optional security tokens as required by your setup.
Choose one of the following configurations to start the MCP server and connect your MCP client.
{
"mcpServers": {
"rds-openapi": {
"name": "rds-openapi",
"type": "stdio",
"description": "RDS OpenAPI MCP server via UV/uvx",
"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"
}
}
}
}The following snippets illustrate how you can start the MCP server in different environments. Use the exact commands shown to ensure compatibility with MCP clients.
# Cherry-studio approach (recommended): use uvx to run the MCP server
uvx alibabacloud-rds-openapi-mcp-server@latest
# Example Cline approach: set environment and run
export SERVER_TRANSPORT=sse
export ALIBABA_CLOUD_ACCESS_KEY_ID=your_access_id
export ALIBABA_CLOUD_ACCESS_KEY_SECRET=your_access_key
export ALIBABA_CLOUD_SECURITY_TOKEN=your_sts_token # optional
export API_KEY=your_mcp_api_key # optional
uvx alibabacloud-rds-openapi-mcp-server@latestIf you encounter a 401 Incorrect API key provided error when using certain clients, verify that you have the correct API key configured and that the API key authentication is enabled for your MCP client. Ensure that the Alibaba Cloud credentials used by the MCP server have access to RDS services.
OpenAPI Tools provide a broad set of operations for RDS instances, networks, parameters, monitoring, and more. SQL Tools enable read-only or explain-style queries to analyze data and schema information without altering the database.
Toolsets group related MCP tools so you can enable only what you need. You can specify toolsets at startup or via environment variables. The default loads the standard RDS toolset if none is specified.
Add tags to an RDS instance.
Allocate a public connection for an RDS instance.
Attach a whitelist template to an RDS instance.
Create an RDS instance.
Create an account for an RDS instance.
Query the whitelist template list.
Query available instance classes and storage ranges.
Query available zones for RDS instances.
Query the consumption summary of all product instances or billing items for a user within a specific billing period.
Batch retrieves account information for multiple RDS instances.
Queries the details of an instance.
Batch retrieves database information for multiple RDS instances.
Batch retrieves IP allowlist configurations for multiple RDS instances.
Batch retrieves network configuration details for multiple RDS instances.
Batch retrieves parameter information for multiple RDS instances.
Queries the performance data of an instance.
Queries instances.
Queries the error log of an instance.
Query the whitelist template list.
Queries performance and diagnostic metrics for an instance using the DAS API.
Query slow log records for an RDS instance.
Query SQL Log statistics, including SQL cost time, execution times, and account.
Query VPC list.
Query VSwitch list.
Modify RDS instance security IP whitelist.
Get the current time.
Modify RDS instance descriptions.
Modify RDS instance specifications.
Modify RDS instance parameters.
Restart an RDS instance.
Execute sql explain and return sql result.
Execute sql show engine innodb status and return sql result.
Execute sql show create table and return sql result.
Execute read-only sql and return sql result.