
Alibaba Cloud Yaochi DB MCP Server
@aliyun
About Alibaba Cloud Yaochi DB MCP Server
No overview available yet
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"yaochi-db": {
"command": "<project-path>/alibabacloud-yaochi-db-mcp-server/.venv/bin/yaochi-db-mcp-server",
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "your-ak",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your-sk",
"ALIBABA_CLOUD_REGION_ID": "cn-hangzhou",
"YAOCHI_ENABLE_WRITE_SQL": "true",
"YAOCHI_ENABLE_DDL_SQL": "true"
}
}
}
}Tools
10Yaochi Database Agent — AI database advisor (diagnosis, best practices, architecture)
Create a database instance
List existing instances
Execute SQL via instance ID (ephemeral account, no password needed)
Direct connect to MySQL/PolarDB and execute SQL
Direct connect to MongoDB and execute commands
Direct connect to Tair/Redis and execute commands
Search databases in DMS
Execute SQL via DMS
Register instance to DMS
Overview
What is Alibaba Cloud Yaochi DB MCP Server?
A database tool service built on the Model Context Protocol (MCP) that allows AI coding assistants (e.g., Cursor, Claude Desktop, Qoder) to directly operate Alibaba Cloud databases. It enables automatic database creation, SQL execution, and AI‑powered performance diagnosis — all without leaving the IDE.
How to use Alibaba Cloud Yaochi DB MCP Server?
Clone the repository, create a Python 3.10+ virtual environment, install with pip install ., and run yaochi-db-mcp-server (it enters stdio waiting mode). Then configure your AI client’s MCP settings with the command path and required environment variables (ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, ALIBABA_CLOUD_REGION_ID).
Key features of Alibaba Cloud Yaochi DB MCP Server
- Supports multiple database engines: RDS MySQL, PolarDB MySQL, MongoDB, Tair (Redis).
- Ephemeral account mode – no persistent database credentials.
- Built‑in Yaochi Database Agent for AI‑driven diagnosis and best practices.
- SQL safety checks that block DROP/TRUNCATE and dangerous operations.
- Restrictive whitelist that automatically provisions only the current IP.
- Fine‑grained write control via environment variables (DML/DDL permissions).
Use cases of Alibaba Cloud Yaochi DB MCP Server
- AI writes code, then automatically creates a database, builds tables, executes SQL to verify, and diagnoses performance.
- Developers manage Alibaba Cloud databases directly from their IDE without switching consoles.
- Automated database provisioning and SQL testing as part of AI‑assisted development workflows.
- Use the Yaochi Database Agent for instant, expert‑backed database advice and troubleshooting.
FAQ from Alibaba Cloud Yaochi DB MCP Server
What Alibaba Cloud databases does the server support?
It supports RDS MySQL, PolarDB MySQL, MongoDB, and Tair (Redis) – with operations like creating instances and executing SQL or commands.
How does the server handle security?
It uses ephemeral accounts that are automatically created and destroyed per SQL execution, blocks dangerous SQL (e.g., DROP/TRUNCATE), restricts whitelist to the current IP only, and allows DML/DDL control via environment variables.
What are the runtime requirements?
Python 3.10 or higher, and valid Alibaba Cloud AccessKey credentials (ID and Secret). The server expects those credentials as environment variables.
Can I perform performance diagnosis?
Yes, the ask_yaochi_agent tool provides AI‑powered diagnosis,
More Databases MCP servers
MongoDB Lens
furey🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
mcp_mysql_server
xwb602625136Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Chroma MCP Server
chroma-coreA Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Comments