MaxCompute的模型上下文协议(MCP)服务器。
该服务器提供4个核心工具:
get_latest_partition
table_name (字符串):表名read_query
query (字符串):SELECT SQL查询list_tables
describe_table
table_name (字符串):表名cd /path/to/maxcompute-mcp-server
uv pip install .
uv build
# 将服务器添加到您的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": "https://service.cn-shanghai.maxcompute.aliyun.com/api"
}
}
}