The DataWorks MCP Server provides a standardized interface for AI agents to interact with the Aliyun DataWorks Open API, enabling management of cloud resources and execution of data-related tasks.
Key capabilities include:
Project Management: Create and manage DataWorks projects, members, and roles
Workflow Automation: Create, update, import, export, execute, and monitor workflows and task instances
Data Integration: Configure, monitor, and manage data synchronization jobs including metrics and run details
Data Quality: Define rules, create evaluation tasks, view results, and ensure data integrity
Resource Management: Manage resource groups, networks, and schedules for efficient resource utilization
Data Sources: Create, clone, update, delete, and test connectivity of data sources
Monitoring & Alerts: Configure custom, event, and baseline alerts with detailed notifications
Metadata Management: Access and manage metadata for tables, columns, partitions, and lineage
Permission Control: Grant, revoke, and manage permissions through application orders
Data Service APIs: Manage lifecycle and testing of APIs (create, update, publish, test)
Logging & Troubleshooting: Access operation histories and logs for diagnostics
Enables interaction with DataWorks Open API, allowing AI agents to manage DataWorks cloud resources and perform operations in Alibaba Cloud environments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DataWorks MCP Serverlist my DataWorks projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DataWorks MCP Server
A Model Context Protocol (MCP) server that provides tools for AI, allowing it to interact with the DataWorks Open API through a standardized interface. This implementation is based on the Aliyun Open API and enables AI agents to perform cloud resources operations seamlessly.
Overview
This MCP server:
Interact with DataWorks Open API
Manage DataWorks resources
The server implements the Model Context Protocol specification to standardize cloud resource interactions for AI agents.
Related MCP server: MCP Server for n8n Integration
Prerequisites
Node.js (v16 or higher)
pnpm (recommended), npm, or yarn
DataWorks Open API with access key and secret key
Installation
Option 1: Install from npm (recommend for clients like Cursor/Cline)
# Install globally
npm install -g alibabacloud-dataworks-mcp-server
# Or install locally in your project
npm install alibabacloud-dataworks-mcp-serverOption 2: Build from Source (for developers)
Clone this repository:
git clone https://github.com/aliyun/alibabacloud-dataworks-mcp-server
cd alibabacloud-dataworks-mcp-serverInstall dependencies (pnpm is recommended, npm is supported):
pnpm installBuild the project:
pnpm run buildDevelopment the project (by @modelcontextprotocol/inspector):
pnpm run devopen http://localhost:5173
Configuration
MCP Server Configuration
If you installed via npm (Option 1):
{
"mcpServers": {
"alibabacloud-dataworks-mcp-server": {
"command": "npx",
"args": ["alibabacloud-dataworks-mcp-server"],
"env": {
"REGION": "your_dataworks_open_api_region_id_here",
"ALIBABA_CLOUD_ACCESS_KEY_ID": "your_alibaba_cloud_access_key_id",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your_alibaba_cloud_access_key_secret",
"TOOL_CATEGORIES": "optional_your_tool_categories_here_ex_UTILS",
"TOOL_NAMES": "optional_your_tool_names_here_ex_ListProjects"
},
"disabled": false,
"autoApprove": []
}
}
}If you built from source (Option 2):
{
"mcpServers": {
"alibabacloud-dataworks-mcp-server": {
"command": "node",
"args": ["/path/to/alibabacloud-dataworks-mcp-server/build/index.js"],
"env": {
"REGION": "your_dataworks_open_api_region_id_here",
"ALIBABA_CLOUD_ACCESS_KEY_ID": "your_alibaba_cloud_access_key_id",
"ALIBABA_CLOUD_ACCESS_KEY_SECRET": "your_alibaba_cloud_access_key_secret",
"TOOL_CATEGORIES": "optional_your_tool_categories_here_ex_SERVER_IDE_DEFAULT",
"TOOL_NAMES": "optional_your_tool_names_here_ex_ListProjects"
},
"disabled": false,
"autoApprove": []
}
}
}Environment Setup
init variables in your environment:
# DataWorks Configuration
REGION=your_dataworks_open_api_region_id_here
ALIBABA_CLOUD_ACCESS_KEY_ID=your_alibaba_cloud_access_key_id
ALIBABA_CLOUD_ACCESS_KEY_SECRET=your_alibaba_cloud_access_key_secret
TOOL_CATEGORIES=optional_your_tool_categories_here_ex_SERVER_IDE_DEFAULT
TOOL_NAMES=optional_your_tool_names_here_ex_ListProjectsConfiguration Description
Use Guide Description Link
Project Structure
alibabacloud-dataworks-mcp-server/
├── src/
│ ├── index.ts # Main entry point
├── package.json
└── tsconfig.jsonAvailable Tools
The MCP server provides the following DataWorks tools:
See this link
Security Considerations
Keep your private key secure and never share it
Use environment variables for sensitive information
Regularly monitor and audit AI agent activities
Troubleshooting
If you encounter issues:
Verify your Aliyun Open API access key and secret key are correct
Check your region id is correct
Ensure you're on the intended network (mainnet, testnet, or devnet)
Verify the build was successful
Dependencies
Key dependencies include:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the Apache 2.0 License.