Skip to main content

A MCP server for MaxCompute

Project description

MaxCompute MCP Server

Overview

A Model Context Protocol (MCP) server for MaxCompute.

Components

Tools

The server offers 4 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 SELECT query on the MaxCompute project, only SELECT query is allowed
    • Input:
      • query (string): The SELECT SQL query
    • 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
  • describe_table

    • Get the schema information for a specific table
    • Input:
      • table_name (string): Name of the table
    • Returns: Raw output of DESC command

Usage with Cline

# Install maxcompute-mcp-server
cd /path/to/maxcompute-mcp-server
uv pip install .
uv build
  • maxcompute endpoints can view in endpoint

  • maxcompute projects can view in projects

# 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": "https://service.cn-shanghai.maxcompute.aliyun.com/api"
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maxcompute_mcp_server-0.1.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maxcompute_mcp_server-0.1.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file maxcompute_mcp_server-0.1.2.tar.gz.

File metadata

File hashes

Hashes for maxcompute_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fa46d98f5d08e726bc5dfdf26e23567dc2953e6fd0e1b7b5be19017cc9eaa8ac
MD5 91af00805e1a22e5237a6a581f994696
BLAKE2b-256 e2b79d19cd2f26337b142039b35792a6358a67dd564266127aade94ad6205662

See more details on using hashes here.

File details

Details for the file maxcompute_mcp_server-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for maxcompute_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b18fab4451dd42de9830d59466db3e0d71d5c7a935b5f24d628621e78f5ae7ae
MD5 ca0a9ee000152afb0f09cbb48bb9e7a3
BLAKE2b-256 724a1656df148d336a413ebfa92eb5fd7c8221c60e133dc050571c40acb82804

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page