Integrations
Provides a universal interface for AI agents to interact with Alibaba Cloud AnalyticDB for MySQL, enabling database metadata retrieval, SQL query execution, query plan analysis, and access to table structures across databases.
AnalyticDB for MySQL MCP 服务器
AnalyticDB for MySQL MCP Server 作为 AI Agent 与AnalyticDB for MySQL数据库之间的通用接口,实现 AI Agent 与 AnalyticDB for MySQL 之间的无缝通信,帮助 AI Agent 获取 AnalyticDB for MySQL 数据库元数据并执行 SQL 操作。
1. MCP 客户端配置
方式一:使用本地文件
下载 GitHub 存储库
MCP 集成
在MCP客户端配置文件中添加如下配置:
模式 2:使用 PIP 模式
安装
使用以下软件包安装 MCP 服务器:
MCP 集成
在MCP客户端配置文件中添加如下配置:
2. 开发自己的 AnalyticDB for MySQL MCP 服务器
如果您想开发自己的 AnalyticDB for MySQL MCP Server,可以使用以下命令安装 python 依赖包:
- 从 GitHub 下载源代码。
- 安装uv包管理器。
- 安装Node.js ,它提供了一个名为
npx
的 node 包工具 - 使用以下命令在项目根目录中安装 python 依赖项:
- 如果您想在本地调试 mcp 服务器,您可以使用以下命令启动MCP Inspector :
3. AnalyticDB for MySQL MCP Server组件介绍
工具
execute_sql
SQL 查询get_query_plan
:获取 SQL 查询的查询计划get_execution_plan
:获取 SQL 查询的实际执行计划和运行时统计信息
资源
内置资源
adbmysql:///databases
:获取 mysql 集群解析中的所有数据库
资源模板
adbmysql:///{schema}/tables
:获取特定数据库中的所有表adbmysql:///{database}/{table}/ddl
:获取特定数据库中表的 DDL 脚本adbmysql:///{config}/{key}/value
:获取集群中配置键的值
提示
目前未提供。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通用接口,使 AI 代理能够与 Adb MySQL 数据库无缝通信,从而允许它们检索数据库元数据并执行 SQL 操作。
Related MCP Servers
- AsecurityAlicenseAqualityThis server enables AI models to interact with MySQL databases through a standardized interface.Last updated -561858JavaScriptMIT License
- AsecurityFlicenseAqualityEnables AI models to perform MySQL database operations through a standardized interface, supporting secure connections, query execution, and comprehensive schema management.Last updated -716JavaScript
- -securityAlicense-qualityA server that enables AI models to interact with MySQL databases through a Model Control Protocol, providing tools for table creation, schema inspection, query execution, and data retrieval.Last updated -20PythonMIT License
Hologres MCP Serverofficial
AsecurityAlicenseAqualityA universal interface that enables AI Agents to communicate with Hologres databases, allowing them to retrieve database metadata and execute SQL operations.Last updated -617PythonApache 2.0