Kestra MCP server

Integrates with Kestra workflow orchestration platform to enable natural language control of data pipelines, execution management, namespace operations, and enterprise features like user management through conversational interfaces.
Back to servers
Setup instructions
Provider
Kestra
Release date
Jun 20, 2025
Stats
6 stars

The Kestra Python MCP Server provides an interface between Kestra workflow orchestration and AI coding assistants through the Model Context Protocol (MCP). This server allows AI tools to interact with your Kestra workflows directly, enabling operations like listing flows, managing executions, and working with namespace files.

Installation with Docker

The easiest way to run the Kestra MCP Server is using Docker, which eliminates the need to manage Python dependencies on your local machine.

Configuration for OSS Users

Add this configuration to your MCP settings in your AI coding assistant (Cursor, Claude, or VS Code):

{
  "mcpServers": {
    "kestra": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--pull",
        "always",
        "-e", "KESTRA_BASE_URL",
        "-e", "KESTRA_TENANT_ID",
        "-e", "KESTRA_MCP_DISABLED_TOOLS",
        "ghcr.io/kestra-io/mcp-server-python:latest"
      ],
      "env": {
        "KESTRA_BASE_URL": "http://host.docker.internal:8080/api/v1",
        "KESTRA_TENANT_ID": "main",
        "KESTRA_MCP_DISABLED_TOOLS": "ee"
      }
    }
  }
}

If you have Basic Auth enabled, use this configuration instead:

{
  "mcpServers": {
    "kestra": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--pull",
        "always",
        "-e", "KESTRA_MCP_DISABLED_TOOLS",
        "-e", "KESTRA_BASE_URL",
        "-e", "KESTRA_TENANT_ID",
        "-e", "KESTRA_USERNAME",
        "-e", "KESTRA_PASSWORD",
        "ghcr.io/kestra-io/mcp-server-python:latest"
      ],
      "env": {
        "KESTRA_BASE_URL": "http://host.docker.internal:8080/api/v1",
        "KESTRA_TENANT_ID": "main",
        "KESTRA_MCP_DISABLED_TOOLS": "ee",
        "KESTRA_USERNAME": "[email protected]",
        "KESTRA_PASSWORD": "your_password"
      }
    }
  }
}

Configuration for Enterprise Edition Users

{
  "mcpServers": {
    "kestra": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--pull",
        "always",
        "-e", "KESTRA_BASE_URL",
        "-e", "KESTRA_API_TOKEN",
        "-e", "KESTRA_TENANT_ID",
        "-e", "KESTRA_MCP_DISABLED_TOOLS",
        "ghcr.io/kestra-io/mcp-server-python:latest"
      ],
      "env": {
        "KESTRA_BASE_URL": "http://host.docker.internal:8080/api/v1",
        "KESTRA_API_TOKEN": "<your_kestra_api_token>",
        "KESTRA_TENANT_ID": "main"
      }
    }
  }
}

Configuration Notes

  • The host.docker.internal hostname allows the Docker container to access services on your host machine. This works on macOS and Windows by default. On Linux, you may need to use host network mode or set up a custom bridge.
  • Replace <your_kestra_api_token> with your actual Kestra API token.
  • For OSS installations, you can use KESTRA_USERNAME and KESTRA_PASSWORD instead of KESTRA_API_TOKEN.
  • Set KESTRA_MCP_DISABLED_TOOLS=ee to disable Enterprise Edition tools in OSS installations.

Available Tools

The MCP server provides access to various Kestra functionality through tool groups:

  • πŸ”„ backfill - Manage flow backfills
  • βš™οΈ ee - Enterprise Edition tools (EE/Cloud only)
  • ▢️ execution - Manage flow executions
  • πŸ“ files - Work with namespace files
  • πŸ”€ flow - Manage flows
  • πŸ—οΈ kv - Work with key-value storage
  • 🌐 namespace - Manage namespaces
  • πŸ” replay - Replay flow executions
  • ♻️ restart - Restart flow executions
  • ⏸️ resume - Resume paused executions

Disabling Specific Tools

You can disable specific tools by setting the KESTRA_MCP_DISABLED_TOOLS environment variable:

KESTRA_MCP_DISABLED_TOOLS=files

To disable multiple tools, separate them with commas:

KESTRA_MCP_DISABLED_TOOLS=ee,files

Running Locally for Development

If you want to run the MCP server locally for development or extension:

Create a Virtual Environment

uv venv --python 3.13
uv pip install -r requirements.txt

Set Up Configuration

Create an .env file in the project root directory with your Kestra connection details.

Configure Your AI Coding Assistant

To use your local MCP server with an AI coding assistant, first find your uv path:

which uv

Then configure your AI coding assistant with this path:

{
  "mcpServers": {
    "kestra": {
      "command": "/path/to/your/uv",
      "args": [
        "--directory",
        "/path/to/your/mcp-server-python/src",
        "run",
        "server.py"
      ]
    }
  }
}

VS Code Integration

For VS Code integration:

  1. Create a .vscode folder in your project directory
  2. Create a file called mcp.json inside that folder
  3. Add this configuration (note the key is servers instead of mcpServers):
{
  "servers": {
    "kestra": {
      "command": "/path/to/your/uv",
      "args": [
        "--directory",
        "/path/to/your/mcp-server-python/src",
        "run",
        "server.py"
      ]
    }
  }
}
  1. Click the "Start" button that appears
  2. Navigate to the GitHub Copilot tab and switch to Agent mode
  3. Interact with Kestra by asking questions like "List all flows in the tutorial namespace"

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "kestra" '{"command":"docker","args":["run","-i","--rm","--pull","always","-e","KESTRA_BASE_URL","-e","KESTRA_TENANT_ID","-e","KESTRA_MCP_DISABLED_TOOLS","ghcr.io/kestra-io/mcp-server-python:latest"],"env":{"KESTRA_BASE_URL":"http://host.docker.internal:8080/api/v1","KESTRA_TENANT_ID":"main","KESTRA_MCP_DISABLED_TOOLS":"ee,codegen"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "kestra": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "--pull",
                "always",
                "-e",
                "KESTRA_BASE_URL",
                "-e",
                "KESTRA_TENANT_ID",
                "-e",
                "KESTRA_MCP_DISABLED_TOOLS",
                "ghcr.io/kestra-io/mcp-server-python:latest"
            ],
            "env": {
                "KESTRA_BASE_URL": "http://host.docker.internal:8080/api/v1",
                "KESTRA_TENANT_ID": "main",
                "KESTRA_MCP_DISABLED_TOOLS": "ee,codegen"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "kestra": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "--pull",
                "always",
                "-e",
                "KESTRA_BASE_URL",
                "-e",
                "KESTRA_TENANT_ID",
                "-e",
                "KESTRA_MCP_DISABLED_TOOLS",
                "ghcr.io/kestra-io/mcp-server-python:latest"
            ],
            "env": {
                "KESTRA_BASE_URL": "http://host.docker.internal:8080/api/v1",
                "KESTRA_TENANT_ID": "main",
                "KESTRA_MCP_DISABLED_TOOLS": "ee,codegen"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later