Alibaba Cloud AnalyticDB for MySQL + Claude Desktop App: Complete MCP Integration
Alibaba Cloud AnalyticDB for MySQL is a MCP server that Connect to a AnalyticDB for MySQL cluster for getting database or table metadata, querying and analyzing data.It will be supported to add the openapi for cluster operation in the future..
When integrated with Claude Desktop App, you can:
- Execute SQL queries on AnalyticDB for MySQL
- Retrieve query execution plan for optimization
- Get detailed execution plan with runtime statistics
This guide provides step-by-step instructions to set up Alibaba Cloud AnalyticDB for MySQL in Claude Desktop App, including configuration, examples, and troubleshooting.
What You'll Achieve
After completing this setup:
- Alibaba Cloud AnalyticDB for MySQL will be fully integrated and operational
- You can use Alibaba Cloud AnalyticDB for MySQL tools directly in Claude Desktop App
- All Alibaba Cloud AnalyticDB for MySQL capabilities will be available for your workflows
- Access to 5 different tools
Prerequisites
Before starting, ensure you have:
- AnalyticDB for MySQL cluster endpoint
- Database username
- Database password
- Claude Desktop App installed and configured
- Compatible operating system (Windows, macOS, Linux)
Installation
Step 1: Install Alibaba Cloud AnalyticDB for MySQL
Configuration
Step 2: Configure Claude Desktop App
-
Locate your configuration file:
- Windows:
%APPDATA%\\Claude\\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- Windows:
-
Add server configuration:
{
"mcpServers": {
"alibaba-cloud-analyticdb-for-mysql": {
"command": "alibaba cloud analyticdb for mysql",
"args": [""],
"env": {
"ADB_MYSQL_HOST": "adb-cluster-123.mysql.rds.aliyuncs.com",
"ADB_MYSQL_PORT": "3306",
"ADB_MYSQL_USER": "analytics_user",
"ADB_MYSQL_PASSWORD": "secure_password123",
"ADB_MYSQL_DATABASE": "analytics_db"
}
}
}
}
- Restart Claude Desktop App
Completely quit and restart Claude Desktop App to load the new configuration.
Examples
Once configured, you can use Alibaba Cloud AnalyticDB for MySQL in Claude Desktop App:
Real-time Analytics Dashboard
undefined
Ask Claude Desktop App: "Execute hourly sales aggregation and performance metrics"
Expected Result: undefined
Data Warehouse Optimization
undefined
Ask Claude Desktop App: "Analyze execution plan for monthly revenue report"
Expected Result: undefined
Schema Management
undefined
Ask Claude Desktop App: "Document all tables and their relationships in the analytics database"
Expected Result: undefined
Testing Your Setup
- Start a new conversation in Claude Desktop App
- Ask Claude Desktop App to list available tools
- Try using Alibaba Cloud AnalyticDB for MySQL functionality
Test prompts:
- "Can you list the available tools from Alibaba Cloud AnalyticDB for MySQL?"
- "Please use Alibaba Cloud AnalyticDB for MySQL to {example_task}"
Troubleshooting
Common Issues
Server Not Appearing
Symptoms: No server in interface, Tools not available
Cause: Configuration file error or server installation issue
Solution:
- Validate JSON syntax using online validator
- Check configuration file location
- Verify server installation
- Restart Claude Desktop completely
Server Error on Startup
Symptoms: Error messages in logs, Server fails to start
Cause: Missing dependencies or environment variables
Solution:
- Check server requirements are met
- Verify environment variables are set
- Check system logs for detailed errors
Alibaba Cloud AnalyticDB for MySQL not appearing in Claude Desktop App
Symptoms: Server not listed, Tools not available
Cause: Configuration or installation issue
Solution:
- Verify configuration syntax
- Check Alibaba Cloud AnalyticDB for MySQL installation
- Restart Claude Desktop App
- Check logs for error messages
Next Steps
Now that Alibaba Cloud AnalyticDB for MySQL is integrated with Claude Desktop App:
- Explore all Alibaba Cloud AnalyticDB for MySQL capabilities through Claude Desktop App
- Check out other MCP servers that work with Claude Desktop App
- Join the MCP community for tips and support
- Consider contributing to Alibaba Cloud AnalyticDB for MySQL development
Need Help?
- Search for Alibaba Cloud AnalyticDB for MySQL documentation
- Check the Claude Desktop App MCP guide
- Join the MCP community discussions