Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

seatunnel-mcp

MCP.Pizza Chef: ocean-zhc

The seatunnel-mcp is a Model Context Protocol (MCP) server that enables interaction with Apache SeaTunnel through its RESTful API V2. It facilitates job management, system monitoring, and dynamic connection configuration, allowing LLMs like Claude to control and monitor SeaTunnel services seamlessly. This server supports job submission, stopping, monitoring, and provides built-in logging and monitoring tools for comprehensive operational oversight.

Use This MCP server To

Submit and manage Apache SeaTunnel data integration jobs via LLM commands Monitor system health and job status of SeaTunnel clusters in real time Retrieve detailed logs and metrics from SeaTunnel jobs for troubleshooting Configure and update SeaTunnel connections dynamically through API Integrate SeaTunnel job control into AI-driven data workflows Automate job lifecycle management using natural language instructions Access SeaTunnel REST API endpoints securely through MCP interface

README

SeaTunnel MCP Server

A Model Context Protocol (MCP) server for interacting with SeaTunnel through LLM interfaces like Claude.

SeaTunnel MCP Logo

SeaTunnel MCP Server

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

IMAGE ALT TEXT HERE

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: .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 status
  • update-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 configuration
  • submit-jobs: Submit multiple jobs in batch
  • stop-job: Stop a running job
  • get-job-info: Get detailed information about a specific job
  • get-running-jobs: List all currently running jobs
  • get-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 status
  • update-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 format
  • submit-job/upload: submit job source upload configuration file
  • submit-jobs: Submit multiple jobs in batch, directly passing user input as request body
  • stop-job: Stop a running job with optional savepoint
  • get-job-info: Get detailed information about a specific job
  • get-running-jobs: List all currently running jobs
  • get-running-job: Get details about a specific running job
  • get-finished-jobs: List all finished jobs by state

System Monitoring

  • get-overview: Get an overview of the SeaTunnel cluster
  • get-system-monitoring-information: Get detailed system monitoring information

Changelog

v1.1.0 (2025-04-10)

  • New Feature: Added submit-jobs and submit-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 FAQ

How do I connect the seatunnel-mcp server to my Apache SeaTunnel instance?
Configure the server with your SeaTunnel RESTful API V2 endpoint and authentication details to establish a connection.
Can seatunnel-mcp handle job submission and monitoring?
Yes, it supports submitting, stopping, and monitoring jobs on your SeaTunnel cluster via the REST API.
Does seatunnel-mcp provide logging capabilities?
Yes, it includes built-in logging and monitoring tools to help track job execution and system status.
Is it possible to dynamically update connection settings?
Yes, seatunnel-mcp supports dynamic connection configuration to adapt to changing environments.
Which LLMs can interact with seatunnel-mcp?
It is designed to work with LLMs like Claude, OpenAI GPT models, and Gemini through the MCP protocol.
How secure is the communication between seatunnel-mcp and SeaTunnel?
Communication uses RESTful API standards with authentication to ensure secure interactions.
Can I use seatunnel-mcp to automate data pipeline workflows?
Yes, it enables automation of job lifecycle management and monitoring through natural language commands.
Where can I find documentation and usage examples?
The GitHub repository includes a README, a demo video, and detailed documentation for setup and usage.