Alibaba Cloud RDS OpenAPI MCP-Server
MCP-Server für RDS-Dienste über OPENAPI
Voraussetzungen
Installieren Sie uv von Astral oder der GitHub-README
Installieren Sie Python mit uv python install 3.12
Alibaba Cloud-Anmeldeinformationen mit Zugriff auf Alibaba Cloud RDS-Dienste
Related MCP server: AlibabaCloud MCP Server
Schnellstart
Verwendung von Cherry-Studio (empfohlen)
Installieren Sie die MCP-Umgebung gemäß der Dokumentation von Cherry-Studio und konfigurieren und verwenden Sie anschließend RDS MCP. Fügen Sie der MCP-Client-Konfigurationsdatei die folgende Konfiguration hinzu:
"mcpServers": {
"rds-openapi-mcp-server": {
"command": "uvx",
"args": [
"alibabacloud-rds-openapi-mcp-server@latest"
],
"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
}
}
}
Verwenden von Cline
Legen Sie Ihre Umgebung fest und führen Sie den MCP-Server aus.
# 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
# run mcp server
uvx alibabacloud-rds-openapi-mcp-server@latest
Nach dem Ausführen des MCP-Servers wird die folgende Ausgabe angezeigt:
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)
Und dann konfigurieren Sie die Cline.
remote_server = "http://127.0.0.1:8000/sse";
Mit Claude
Von Github herunterladen
git clone https://github.com/aliyun/alibabacloud-rds-openapi-mcp-server.git
Fügen Sie der MCP-Client-Konfigurationsdatei die folgende Konfiguration hinzu:
"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
}
}
}
Komponenten
Werkzeuge
create_db_instance : Erstellen Sie eine RDS-Instanz.
describe_db_instances : Fragt Instanzen ab.
describe_db_instance_attribute : Fragt die Details einer Instanz ab.
describe_db_instance_performance : Fragt die Leistungsdaten einer Instanz ab.
describe_error_logs : Fragt das Fehlerprotokoll einer Instanz ab.
describe_db_instance_net_info : Ruft im Batch Netzwerkkonfigurationsdetails für mehrere RDS-Instanzen ab.
describe_db_instance_ip_allowlist : Ruft im Batch IP-Whitelist-Konfigurationen für mehrere RDS-Instanzen ab.
describe_db_instance_databases : Ruft im Batch Datenbankinformationen für mehrere RDS-Instanzen ab.
describe_db_instance_accounts : Ruft im Batch Kontoinformationen für mehrere RDS-Instanzen ab.
describe_available_classes : Abfrage verfügbarer Instanzklassen und Speicherbereiche.
describe_available_zones : Abfrage der verfügbaren Zonen für RDS-Instanzen.
describe_bills : Abfrage der Verbrauchsübersicht aller Produktinstanzen oder Abrechnungspositionen für einen Benutzer innerhalb eines bestimmten Abrechnungszeitraums.
describe_vpcs : VPC-Liste abfragen.
describe_vswitches : VSwitch-Liste abfragen.
describe_slow_log_records : Abfrage langsamer Protokolldatensätze für eine RDS-Instanz.
describe_db_instance_parameters : Ruft im Batch Parameterinformationen für mehrere RDS-Instanzen ab.
modify_parameter : RDS-Instanzparameter ändern.
modify_db_instance_spec : RDS-Instanzspezifikationen ändern.
get_current_time : Ruft die aktuelle Uhrzeit ab.
Ressourcen
Zurzeit keine
Eingabeaufforderungen
# 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.
Beitragen
Beiträge sind willkommen! Senden Sie gerne einen Pull Request.
Forken Sie das Repository
Erstellen Sie Ihren Feature-Zweig ( git checkout -b feature/amazing-feature )
Übernehmen Sie Ihre Änderungen ( git commit -m 'Add some amazing feature' )
Pushen zum Zweig ( git push origin feature/amazing-feature )
Öffnen einer Pull-Anfrage
Lizenz
Dieses Projekt ist unter der Apache 2.0-Lizenz lizenziert.