
MaxCompute MCP Server

2025.04.28
0
Python数据查询数据库管理数据库
MaxCompute MCP Server 是一个为 MaxCompute 设计的模型上下文协议(MCP)服务器,提供了一系列核心工具来查询和管理 MaxCompute 项目中的数据。
View on GitHub
Overview
基本能力
产品定位
MaxCompute MCP Server 是一个为 MaxCompute 设计的模型上下文协议(MCP)服务器,主要用于查询和管理 MaxCompute 项目中的数据。
核心功能
- 查询工具
get_latest_partition
:获取指定表的最新分区名称。-
read_query
:执行 SELECT 查询并返回结果。 -
模式工具
list_tables
:列出 MaxCompute 项目中的所有表。describe_table
:获取指定表的模式信息。
适用场景
- 数据分析和查询
- 数据库管理
- 数据仓库操作
工具列表
- get_latest_partition
-
能力:获取指定表的最新分区名称。
-
read_query
-
能力:执行 SELECT 查询并返回结果。
-
list_tables
-
能力:列出 MaxCompute 项目中的所有表。
-
describe_table
- 能力:获取指定表的模式信息。
常见问题解答
- 无
使用教程
使用依赖
- 无明确前置依赖,但需要 MaxCompute 项目的访问权限。
安装教程
# Install maxcompute-mcp-server
cd /path/to/maxcompute-mcp-server
uv pip install .
uv build
调试方式
- 无明确调试命令,但可以通过配置
cline_mcp_settings.json
文件来设置服务器参数。
# Add the server to your cline_mcp_settings.json
"mcpServers": {
"maxcompute-mcp-server": {
"command": "uv",
"args": [
"run",
"--with",
"maxcompute-mcp-server",
"maxcompute-mcp-server"
],
"env": {
"ALIBABA_CLOUD_ACCESS_KEY_ID": "",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "",
"ALIBABA_CLOUD_MAXCOMPUTE_PROJECT": "",
"ALIBABA_CLOUD_MAXCOMPUTE_ENDPOINT": "http://service.cn.maxcompute.aliyun.com/api"
}
}
}