MaxCompute MCP Server
本项目是基于阿里云的MCP的修改版,对业务进行了加固以及迭代
阿里云项目地址: https://github.com/datafe/maxcompute-mcp-server
主要修改:
1. 增加了sqlglot的依赖,实现对sql的专业化解析和处理,而不是简单的字符串查找
2. 移除了describe_table这个tool。实际上AI是完全自己能知道使用desc来获得表描述,
这个方法有点多此一举。
3. 相应的readme文案调整
Overview
A Model Context Protocol (MCP) server for MaxCompute.
Components
Tools
The server offers 3 core tools:
Query Tools
-
get_latest_partition- Get the latest partition name for a specific table
- Input:
table_name(string): Name of the table
- Returns: The latest partition name
-
read_query- Execute a read-only query on the MaxCompute project, such as SELECT or DESC query is allowed.
- Input:
query(string): The read only SQL queryresult_format(string,optional): Output format. The selectable formats are 'csv' and 'json', with 'csv' being the default.save_file_path(string,optional): local file that save the query results as json list
- Returns: Query results as array of objects
Schema Tools
list_tables- List all tables in the MaxCompute project
- No input required
- Returns: Array of table objects with name and comment
Build from source
- Code: GitLab
cd /path/to/tapdb-maxcompute-mcp
uv pip install .
uv build
Usage with Cline
# Add the server to your cline_mcp_settings.json
"mcpServers": {
"tapdb-maxcompute-mcp": {
"command": "uv",
"args": [
"run",
"--with",
"tapdb-maxcompute-mcp",
"tapdb-maxcompute-mcp"
],
"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"
}
}
}
Metadata
Release files for tapdb-maxcompute-mcp 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tapdb_maxcompute_mcp-0.1.11.tar.gz | 55.5 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tapdb_maxcompute_mcp-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.6 MB
Release files / tapdb_maxcompute_mcp-0.1.11.tar.gz
| Download URL | tapdb_maxcompute_mcp-0.1.11.tar.gz |
|---|---|
| Size | 55.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6e1983182bdef76dd1b3291156c8b9d91111064c092de027e208053ef4c0a6
|
|
BLAKE2b-256 checksum How to use checksums |
c9a83db4a6b6e7500c8b63e29bd652049d10a2dac64094346bcb809454ec673d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / tapdb_maxcompute_mcp-0.1.11-py3-none-any.whl
| Download URL | tapdb_maxcompute_mcp-0.1.11-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f4da1d429c52579fc3c09392a0a88170c35db4688b4bf66ef7a15e361514e42
|
|
BLAKE2b-256 checksum How to use checksums |
8ccc4f860b9ff6e5216f7fcb500e35cf45fa2129543dd742137ce2828cfa6ce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for tapdb-maxcompute-mcp 0.1.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.