Skip to main content

MCP server: JSON/MaxCompute export to Excel and OSS

Project description

Data Export MCP Server

通过 stdio 提供 MCP 工具:JSON / MaxCompute 查询导出 Excel 并上传 OSS。

依赖

  • Python ≥ 3.10

本地开发

仓库根目录 develop_mcp

pip install -e .
data-export-mcp-server

或在 data-export-mcp-server 下(需已安装依赖):

cd data-export-mcp-server
pip install -r requirements.txt
python data_export_server.py

兼容旧命令:

data-export-server

发布到 PyPI

在仓库根目录执行:

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

发布成功后,可直接通过 uvx 拉起:

uvx data-export-mcp-server

如果你想先验证 TestPyPI,可先上传测试仓库:

python -m twine upload --repository testpypi dist/*
uvx --index-url https://test.pypi.org/simple/ data-export-mcp-server

环境变量

.env 放在仓库根、data-export-mcp-server 下(见 server.py 加载顺序)。

  • OSSOSS_ACCESS_KEY_IDOSS_ACCESS_KEY_SECRETOSS_ENDPOINTOSS_BUCKET_NAME
  • MaxCompute(可选)ODPS_ACCESS_IDODPS_ACCESS_KEYODPS_PROJECTODPS_ENDPOINT
  • 可选MCP_LOG_LEVEL(默认 ERROR

接入 Cursor / MCP 客户端

在客户端配置中使用 stdio,启动命令示例:

{
  "mcpServers": {
    "data-export": {
      "command": "uvx",
      "args": ["data-export-mcp-server"],
      "env": {}
    }
  }
}

若不通过 uvx,也可将 command 改为本机 python 路径,args["-m", "mcp_servers.data_export.server"],并设置 cwddata-export-mcp-server 或在 PYTHONPATH 中包含该目录。

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

data_export_mcp_server-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

data_export_mcp_server-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file data_export_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: data_export_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for data_export_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 042c2c86ac15f53ff388aaa31f372851abf6297b36da9091b07ed83703d8c8d1
MD5 6947a5c1ade2909aac572a53bc343fa5
BLAKE2b-256 330081b40c09c4815ccfbcb576698d32b214ac2371d55b9ea6a8d3c860ef6f47

See more details on using hashes here.

File details

Details for the file data_export_mcp_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: data_export_mcp_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for data_export_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76178324ece25a5f8c19f2babc0c9d2665a5c65978419adaec86e9b35d4127cb
MD5 e879d5f215529ac3ac7c9244b645a522
BLAKE2b-256 b51c6b208b52aec69bed2f92bf7e7452cf48c426739bbae158d1be1caf22ce76

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