About kestra-io/mcp-server-python
kestra-io/mcp-server-python is an MCP server published by kestra-io in the Cloud category: python MCP Server for Kestra — you can use it as a tool in Kestra's AI Agents. Conduid read 39 tools from its source: add_execution_labels, backfill_executions, change_taskrun_state, create_flow_from_yaml, delete_execution_logs, delete_flow_logs and 33 more. No package is published for it, so it installs from a source checkout.
The repository has 35 stars and 12 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass Dependencies pinned and Scoped permissions. Its topics include cloud.
Install
git clone https://github.com/kestra-io/mcp-server-pythonTools (39)
add_execution_labelsAdd or update labels of a terminated execution. The execution must be in one of the terminal states:| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution ID to add labels to |
| labels * | object | The labels to add as a flat dictionary, e.g. {'team': 'datateam', 'replay': 'true'}. |
backfill_executionsBackfill executions for a flow within a time window. You can provide explicit start/end dates or use the `days`/`hours`/`minutes` parameters to calculate the start/end dates relative to the current time. Provide those values as integers, e.g., 2 to backfill executions for the last 2 days/hours/minutes.| Parameter | Type | Description |
|---|---|---|
| days | integer | The number of days to backfill |
| end | string | The end date of the backfill |
| flow_id * | string | The id of the flow |
| hours | integer | The number of hours to backfill |
| inputs | object | The inputs for the backfill |
| labels | array | The labels for the backfill |
| minutes | integer | The number of minutes to backfill |
| namespace * | string | The namespace of the flow |
| start | string | The start date of the backfill |
| trigger_id | string | The id of the trigger |
change_taskrun_stateRestart the execution from a failed task or change the state of a task run.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The ID of the execution to operate on |
| state | string | The new state for the task run. Default is 'SUCCESS'. |
| task_run_id | string | The ID of the task run to operate on. If not provided, the first failed task in the execution is restarted. |
create_flow_from_yamlCreate or update a Kestra flow from a raw YAML definition. Returns the created or updated flow's JSON metadata.| Parameter | Type | Description |
|---|---|---|
| yaml_definition * | string | The raw YAML definition of the flow to create or update |
delete_execution_logsDelete logs for a specific execution with optional filtering.| Parameter | Type | Description |
|---|---|---|
| attempt | integer | Delete logs for specific attempt number only. Default is None (delete all). |
| execution_id * | string | The execution ID to delete logs for |
| min_level | string | Minimum log level filter for deletion. Must be one of: ERROR, WARN, INFO, DEBUG, TRACE. Default is None (delete all logs). |
| task_id | string | Delete logs for specific task ID only. Default is None (delete all). |
| task_run_id | string | Delete logs for specific task run ID only. Default is None (delete all). |
delete_flow_logsDelete logs for all executions of a specific flow.| Parameter | Type | Description |
|---|---|---|
| flow_id * | string | The flow ID to delete logs for |
| namespace * | string | The namespace of the flow |
| trigger_id | string | Delete logs for specific trigger ID only. Default is None (delete all). |
download_execution_logsDownload logs for a specific execution as plain text.| Parameter | Type | Description |
|---|---|---|
| attempt | integer | Filter logs by specific attempt number. Default is None. |
| execution_id * | string | The execution ID to download logs for |
| min_level | string | Minimum log level filter. Must be one of: ERROR, WARN, INFO, DEBUG, TRACE. Default is None (no filter). |
| task_id | string | Filter logs by specific task ID. Default is None. |
| task_run_id | string | Filter logs by specific task run ID. Default is None. |
execute_flow| Parameter | Type | Description |
|---|---|---|
| flow_id * | string | The ID of the flow to execute |
| inputs | object | The inputs to the flow which must be provided as a flat dictionary, e.g. {'user': 'Harry Potter'}. Do NOT use a list of {'key': ..., 'value': ...} objects for inputs. Default is an empty dictionary. |
| labels | object | The labels for the execution as a flat dictionary, e.g. {'environment': 'test', 'project': 'hogwarts'}. Default is no labels. |
| namespace * | string | The namespace of the flow to execute |
| revision | integer | The revision of the flow to execute. Default is 0. |
| schedule_date | string | The date to schedule the execution for, which must be provided as a string in ISO 8601 format, e.g. '2025-12-28T12:00:00Z'. Default is an empty string. |
| wait | boolean | Whether to wait for the execution to complete. Default is False. |
find_flowFind a flow by approximate or partial name. Use this when you know| Parameter | Type | Description |
|---|---|---|
| namespace | string | Optional namespace to narrow the search |
| query * | string | Natural language flow name to search for, e.g. 'hello world' or 'data pipeline' |
follow_execution_logsFollow logs for a specific execution in real-time.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The execution ID to follow logs for |
| min_level | string | Minimum log level filter. Must be one of: ERROR, WARN, INFO, DEBUG, TRACE. Default is None (no filter). |
force_run_executionForce run an execution only if it is in CREATED, PAUSED, or QUEUED state.| Parameter | Type | Description |
|---|---|---|
| execution_id * | string | The ID of the execution to force run |
generate_appGenerate or regenerate an app based on a prompt and existing app context.| Parameter | Type | Description |
|---|---|---|
| app_yaml | string | Existing app YAML to use as context for regeneration. Optional - if not provided, a new app will be generated from scratch. |
| auto_create | boolean | If true, automatically create the app after generation. Defaults to false so you can review the YAML first. |
| provider_id | string | Optional AI provider ID to use for generation. Use the list from GET /ai/providers if multiple providers are configured. |
| user_prompt * | string | The user prompt describing what app to generate |
generate_dashboardGenerate or regenerate a dashboard based on a prompt and existing dashboard context.| Parameter | Type | Description |
|---|---|---|
| auto_create | boolean | If true, automatically create the dashboard after generation. Defaults to false so you can review the YAML first. |
| dashboard_yaml | string | Existing dashboard YAML to use as context for regeneration. Optional - if not provided, a new dashboard will be generated from scratch. |
| provider_id | string | Optional AI provider ID to use for generation. Use the list from GET /ai/providers if multiple providers are configured. |
| user_prompt * | string | The user prompt describing what dashboard to generate |
generate_flowGenerate or regenerate a flow based on a prompt and existing flow context.| Parameter | Type | Description |
|---|---|---|
| auto_create | boolean | If true, automatically create or update the flow after generation. Defaults to false so you can review the YAML first. |
| flow_yaml | string | Existing flow YAML to use as context for regeneration. Optional - if not provided, a new flow will be generated from scratch. |
| namespace | string | Optional namespace to use as context for the generated flow |
| provider_id | string | Optional AI provider ID to use for generation. Use the list from GET /ai/providers if multiple providers are configured. |
| user_prompt * | string | The user prompt describing what flow to generate |
generate_testGenerate or regenerate a unit test suite based on a prompt and existing test context.| Parameter | Type | Description |
|---|---|---|
| auto_create | boolean | If true, automatically create the test suite after generation. Defaults to false so you can review the YAML first. |
| provider_id | string | Optional AI provider ID to use for generation. Use the list from GET /ai/providers if multiple providers are configured. |
| test_yaml | string | Existing test suite YAML to use as context for regeneration. Optional - if not provided, a new test suite will be generated from scratch. |
| user_prompt * | string | The user prompt describing what test suite to generate |
get_execution_logsGet logs for a specific execution with optional filtering.| Parameter | Type | Description |
|---|---|---|
| attempt | integer | Filter logs by specific attempt number. Default is None. |
| execution_id * | string | The execution ID to get logs for |
| min_level | string | Minimum log level filter. Must be one of: ERROR, WARN, INFO, DEBUG, TRACE. Default is None (no filter). |
| task_id | string | Filter logs by specific task ID. Default is None. |
| task_run_id | string | Filter logs by specific task run ID. Default is None. |
get_instance_infoGet instance metadata: configuration (default) or license info.| Parameter | Type | Description |
|---|---|---|
| info | string | The type of instance info to get |
invite_userInvite a user to a tenant and and assign either a group or an IAM role. If an invitation already exists for this email, the tool returns the existing invitation details.| Parameter | Type | Description |
|---|---|---|
| email * | string | The email address of the user to invite |
| group_names | array | Optional list of group names to add the user to |
| role | string | Optional IAM role to assign: admin, developer, editor, launcher, viewer |
list_executions| Parameter | Type | Description |
|---|---|---|
| count | integer | Optional number of most recent executions to return. If None, returns all executions within the date range. |
| end_date | string | Absolute end of the date range in ISO 8601 format, e.g. '2025-04-30T23:59:59Z'. Only used with start_date. |
| flow_id | string | Optional flow ID to filter executions |
| namespace * | string | The namespace to list executions from |
| page_size | integer | Number of executions to fetch per page. Default is 100. |
| start_date | string | Absolute start of the date range in ISO 8601 format, e.g. '2025-04-01T00:00:00Z'. Takes precedence over time_range. |
| time_range | string | Relative time range as an ISO 8601 duration, e.g. 'P30D' for the last 30 days, 'P7D' for the last 7 days, 'PT5M' for the last 5 minutes, 'PT1H' for the last hour. Defaults to 'P90D' (last 90 days) when no date filter is provided. Use start_date/end_date instead for an absolute date range. |
list_flows_in_namespaceRetrieve all flows in a given namespace.| Parameter | Type | Description |
|---|---|---|
| namespace * | string | The namespace to list flows from |
list_flows_with_triggersList all flows that have one or more triggers.| Parameter | Type | Description |
|---|---|---|
| disabled_only | boolean | Whether to include only flows with disabled triggers. Default is False. |
| enabled_only | boolean | Whether to include only flows with enabled triggers. Default is False. |
| namespace | string | The namespace to list flows from. If not provided, all namespaces are scanned. |
list_namespace_dependenciesRetrieve all flow-to-flow dependencies within a given namespace and render them as an ASCII dependency graph **using only the flow IDs**. Always return the legend after the graph.| Parameter | Type | Description |
|---|---|---|
| namespace * | string | The namespace to list dependencies from |
list_namespacesList all existing namespaces, with an option to only include those with flows.| Parameter | Type | Description |
|---|---|---|
| page_size | integer | The number of namespaces to return per page. Default is 100. |
| query | string | The query string for full-text search in namespace names |
| with_flows_only | boolean | Whether to only include namespaces with at least one flow. Default is False. |
manage_announcements| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: list, create, update, delete |
| active | boolean | Whether the banner is active. Default is True. |
| endDate | string | The end date in ISO format. Required for create and update actions. |
| id_ | string | The banner ID. Required for update and delete actions. |
| message | string | The banner message. Required for create and update actions. |
| startDate | string | The start date in ISO format. Required for create and update actions. |
| tenantId | string | The tenant ID. Optional. |
| type | string | The banner type. Required for create and update actions. |
manage_appsManage an app by an action (create, enable, disable, delete). For 'create', yaml_source is required (YAML string for the app definition). For 'enable', 'disable', or 'delete', uid is required.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: create, enable, disable, delete |
| uid | string | The UID of the app. Required for 'enable', 'disable', or 'delete' action. |
| yaml_source | string | The YAML string for the app definition. Required for 'create' action. If the app already exists, it will be updated. |
manage_executionsManage an execution by action. Base don the action, the tool returns:| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: pause, kill, delete, get, change_status. Use 'pause' to pause a running execution, 'kill' to kill an execution (and its subflows if cascade=True), 'delete' to delete an execution by ID, 'get' to retrieve full details for a single execution by its ID, 'change_status' to change the state of an execution (requires 'status'). |
| cascade | boolean | Whether to cascade kill to subflows. Only for 'kill', default True. |
| execution_id * | string | The execution ID to operate on |
| status | string | The new status for 'change_status' action. Required for 'change_status' action. |
manage_flowManage a flow by action. The action must be one of 'enable', 'disable', 'list_revisions', 'list_dependencies', 'get_yaml', or 'delete'.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: enable, disable, list_revisions, list_dependencies, get_yaml, or delete |
| flow_id * | string | The ID of the flow |
| namespace * | string | The namespace of the flow |
manage_groupManage a group by action. The action must be one of 'create', 'get', 'update', or 'delete'.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: create, get, update, delete |
| description | string | The group description. Required for create and update actions. |
| id_ | string | The group ID. Required for get and update actions. |
| name | string | The group name. Required for create and update actions. |
| role | string | The role to assign to the group. Optional. |
manage_invitationsManage an invitation by action. The action must be one of 'get' or 'delete'.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: get, delete |
| id_ | string | The invitation ID. Required for get and delete actions. |
manage_kv_storePerform a KV operation in the given namespace. Returns:| Parameter | Type | Description |
|---|---|---|
| action * | string | The operation to perform: get, set, list, or delete |
| key | string | Required for 'get', 'set', and 'delete' actions |
| namespace * | string | The namespace to operate in |
| value | any | Required for 'set' action |
manage_testsManage a test (unit test) by action. For 'create', yaml_source is required (YAML string for the test definition). If the test already exists (POST 409 or 422), update it. For 'run' or 'delete', namespace and id_ are required.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: create, run, delete |
| id_ | string | The id of the test |
| namespace | string | The namespace of the test |
| yaml_source | string | The YAML source for the test |
namespace_directory_actionPerform a directory operation in the given namespace.| Parameter | Type | Description |
|---|---|---|
| action * | string | The action to perform: list, create, move, or delete |
| namespace * | string | The namespace to operate in |
| path * | string | The directory path |
| to_path | string | Required for 'move' action, the destination path. |
namespace_file_actionPerform a file operation in the given namespace. Returns: for 'get', 'create', 'move', 'delete', and 'search' actions, see their respective return types.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| file_content | any | Required for 'create' action, the content of the file as bytes. |
| namespace * | string | The namespace to operate in |
| path | string | The file path. Not required for 'search' action. |
| q | string | Required for 'search' action, the query string for full-text search in file paths. |
| to_path | string | Required for 'move' action, the destination path. |
replay_executionReplay (NOT RESTART, BUT REPLAY) one or more past executions by ID, or the latest execution for a given flow if a list of ids is not provided. Returns a summary string if replaying the latest execution, otherwise the API JSON response.| Parameter | Type | Description |
|---|---|---|
| flow_id | string | Flow ID (required if ids is not provided) |
| ids | array | List of execution IDs to replay. If not provided, namespace and flow_id are required to fetch the latest execution. |
| latest_revision | boolean | Use the latest flow revision (optional) |
| namespace | string | Namespace of the flow (required if ids is not provided) |
restart_executionRestart a failed execution. If execution_id is provided, restart that execution. If not, retrieve the latest failed execution for the given namespace and flow_id and restart it.| Parameter | Type | Description |
|---|---|---|
| execution_id | string | The ID of the execution to restart. If not provided, the latest failed execution for the given namespace and flow_id is restarted. |
| flow_id * | string | The ID of the flow |
| namespace * | string | The namespace of the flow |
| revision | integer | The revision of the flow to restart. If not provided, the same revision as the original execution is used. |
resume_executionResume one or more paused executions by ID, or the most recent paused execution for a given namespace and flow.| Parameter | Type | Description |
|---|---|---|
| execution_ids | array | List of execution IDs to resume. If not provided, namespace and flow_id are required to fetch the most recent paused execution. |
| flow_id | string | Flow ID (required if execution_ids is not provided) |
| namespace | string | Namespace of the flow (required if execution_ids is not provided) |
| on_resume | object | Key-value pairs to send as multipart/form-data. If not provided, the bulk resume endpoint is used or the Pause task defaults are used if available. |
search_appsList existing apps, optionally filtered by namespace, flowId, tags, or full-text search string.| Parameter | Type | Description |
|---|---|---|
| flowId | string | The flowId to filter by. |
| namespace | string | The namespace to filter by. |
| page | integer | The page number to return. Default is 1. |
| q | string | A string in a full-text search query. |
| size | integer | The number of items to return per page. Default is 10. |
| sort | array | The list of sort fields. |
| tags | array | The list of tags to filter by. |
search_flowsSearch flows by name or content.| Parameter | Type | Description |
|---|---|---|
| page | integer | The page number to return. Default is 1. |
| query * | string | The query string for full-text search in flow names and contents |
| size | integer | The number of flows to return per page. Default is 10. |
search_logs| Parameter | Type | Description |
|---|---|---|
| end_date | string | End date for log search in ISO 8601 format (e.g., '2024-01-31T23:59:59Z'). Default is None. |
| flow_id | string | Filter logs by flow ID. Default is None. |
| min_level | string | Minimum log level filter. Must be one of: ERROR, WARN, INFO, DEBUG, TRACE. Default is None (no filter). |
| namespace | string | Filter logs by namespace. Default is None. |
| page | integer | Page number for pagination. Default is 1. |
| query | string | Search term to look for in log messages. Default is None. |
| size | integer | Number of results per page. Default is 25. |
| start_date | string | Start date for log search in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Default is None. |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.3K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
- ✓No dynamic code executionScanned 17 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/server.py:104
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 35 callssrc/kestra/compat.py:54, src/kestra/compat.py:63, src/kestra/compat.py:103
- Writes or deletes files
- No file writes or deletes
- Lockfile
- None in the repository
Pattern matches on the source text of 17 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.3K words, fetched a month ago. The original in the repository is authoritative.
Read full README