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 <repository_url>
cd seatunnel-mcp
# Create virtual environment and install
python -m venv .venv
source .venv/bin/activate # On Windows: .venvScriptsactivate
pip install -e .
Requirements
- Python ≥ 3.9
- 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
Available Tools
Connection Management
get-connection-settings
: View current SeaTunnel connection URL and API key statusupdate-connection-settings
: Update URL and/or API key to connect to a different instance
Job Management
submit-job
: Submit a new job with configuration in HOCON formatsubmit-job/upload
: submit job source upload configuration filesubmit-jobs
: Submit multiple jobs in batch, directly passing user input as request bodystop-job
: Stop a running job with optional savepointget-job-info
: Get detailed information about a specific jobget-running-jobs
: List all currently running jobsget-running-job
: Get details about a specific running jobget-finished-jobs
: List all finished jobs by state
System Monitoring
get-overview
: Get an overview of the SeaTunnel clusterget-system-monitoring-information
: Get detailed system monitoring information
Changelog
v1.1.0 (2025-04-10)
- New Feature: Added
submit-jobs
andsubmit-job/upload
tool for batch job submission and Document submission operations- Allows submitting multiple jobs at once with a single API call
- Input is passed directly as the request body to the API
- Supports JSON format for job configurations
- Allow submission of jobs based on documents
v1.0.0 (Initial Release)
- Initial release with basic SeaTunnel integration capabilities
- Job management tools (submit, stop, monitor)
- System monitoring tools
- Connection configuration utilities
License
Apache License
SeaTunnel MCP Server
Project Details
- ocean-zhc/seatunnel-mcp
- Apache License 2.0
- Last Updated: 4/19/2025
Recomended MCP Servers
MCP for Replicate Flux Model - A powerful tool for generating customized images and SVG assets that match...
Send emails directly from Cursor with this email sending MCP server
This is the most comprehensive wordpress mcp server. Includes functionality to perform CRUD operations on Users, Blogs, Categories...
An MCP server to extend the context of agents. Useful when coding big features or vibe coding and...
A simple POC to expose Mythic as a MCP server
Local MCP server implementation for Starwind UI that you can use with Cursor, Windsurf, and other AI tools
A mcp server that bridges Dune Analytics data to AI agents.
Example of an MCP server with custom tools that can be called directly from cursor