
ocean-zhc/seatunnel-mcp 是从 https://github.com/ocean-zhc/seatunnel-mcp. 导入的 MCP 服务器候选
概览
ocean-zhc/seatunnel-mcp 是从 https://github.com/ocean-zhc/seatunnel-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一个模型上下文协议(MCP)服务器,通过如Claude等LLM接口与SeaTunnel交互。
视频行动
为了帮助您更好地理解SeaTunnel MCP的功能和使用方法,我们提供了一段视频演示。请参考下方链接或直接查看项目文档目录中的视频文件。
https://www.youtube.com/watch?v=JaLA8EkZD7Q
提示:如果视频无法直接播放,请确保你的设备支持MP4格式,并尝试用现代浏览器或视频播放器打开。
特色
- 作业管理(提交、停止、监控)
- 系统监控与信息检索
- REST API 与 SeaTunnel 服务的交互
- 内置日志和监控工具
- 动态连接配置
- 全面的职位信息和统计数据
安装
要求
- Python ≥ 3.12
- 运行 SeaTunnel 实例
- Node.js(用于MCP Inspector测试)
用途
环境变量
动态连接配置
服务器提供工具,可在运行时查看和更新连接设置:
get-connection-settings:查看当前连接URL和API密钥状态
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SeaTunnel MCP Server
A Model Context Protocol (MCP) server for interacting with SeaTunnel through LLM interfaces like Claude.
Operation Video
To help you better understand the features and usage of SeaTunnel MCP, we provide a video demonstration. Please refer to the link below or directly check the video file in the project documentation directory.
https://www.youtube.com/watch?v=JaLA8EkZD7Q
Tip: If the video does not play directly, make sure your device supports MP4 format and try opening it with a modern browser or video player.
Features
- Job management (submit, stop, monitor)
- System monitoring and information retrieval
- REST API interaction with SeaTunnel services
- Built-in logging and monitoring tools
- Dynamic connection configuration
- Comprehensive job information and statistics
Installation
# Clone repository
git clone
cd seatunnel-mcp
# Create virtual environment and install
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -e .
Requirements
- Python ≥ 3.12
- Running SeaTunnel instance
- Node.js (for testing with MCP Inspector)
Usage
Environment Variables
SEATUNNEL_API_URL=http://localhost:8090 # Default SeaTunnel REST API URL
SEATUNNEL_API_KEY=your_api_key # Optional: Default SeaTunnel API key
Dynamic Connection Configuration
The server provides tools to view and update connection settings at runtime:
get-connection-settings: View current connection URL and API key statusupdate-connection-settings: Update URL and/or API key to connect to a different SeaTunnel instance
Example usage through MCP:
// Get current settings
{
"name": "get-connection-settings"
}
// Update connection settings
{
"name": "update-connection-settings",
"arguments": {
"url": "http://new-host:8090",
"api_key": "new-api-key"
}
}
Job Management
The server provides tools to submit and manage SeaTunnel jobs:
submit-job: Submit a new job with job configurationsubmit-jobs: Submit multiple jobs in batchstop-job: Stop a running jobget-job-info: Get detailed information about a specific jobget-running-jobs: List all currently running jobsget-finished-jobs: List all finished jobs by state (FINISHED, CANCELED, FAILED, etc.)
Running the Server
python -m src.seatunnel_mcp
Usage with Claude Desktop
To use this with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"seatunnel": {
"command": "python",
"args": ["-m", "src.seatunnel_mcp"],
"cwd": "Project root directory"
}
}
}
Testing with MCP Inspector
安装
npx @modelcontextprotocol/inspector python -m src.seatunnel_mcp配置
{
"mcpServers": {
"seatunnel": {
"command": "python",
"args": ["-m", "src.seatunnel_mcp"],
"cwd": "Project root directory"
}
}
}