# Connect Kestra to Your AI Agent (Universal MCP)

> Use your AI to schedule jobs, monitor systems, and run deployments in Kestra — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http kestra https://api.universalmcp.app/mcp/kestra`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/kestra` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "kestra", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Kestra | Category: AI, Data & Automation (Kestra) | Auth: Encrypted API key or guided local/on-prem setup | Deployment: hybrid
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Flow executions, Flow definitions, Namespaces and secrets; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=kestra | Guide: https://universalmcp.app/mcp/kestra
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (16 actions: 6 Read, 10 Write)
Perform over 10 actions across blueprints & plugins, workflow authoring, infrastructure & data pipelines, and AI workflows & MCP. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Blueprints & Plugins (5):** Search Kestra Blueprints (read), Import Blueprint Template (write), Browse Kestra Plugins (read), Configure Plugin Task (write), Browse Kestra Integrations (read)
- **Workflow Authoring (4):** Create Declarative YAML Workflow (write), Search Workflow Definitions (read), Run Workflow Execution (write), Review Execution Logs (read)
- **Infrastructure & Data Pipelines (4):** Orchestrate Terraform Run (write), Orchestrate Ansible Playbook (write), Orchestrate Kubernetes Job (write), Build Data Pipeline (write)
- **AI Workflows & MCP (3):** Connect Kestra MCP Server (write), Query Execution Status (read), Run AI Workflow (write)

## Example Prompts for Kestra
- **Failure triage:** "List Kestra executions that failed today with the namespace, flow id, failing task, and the error message."
- **Slow tasks:** "Show the Kestra tasks whose runtime grew most this week compared with the seven day average for each flow."
- **Retry history:** "Summarize retry attempts for Kestra flows in the northwind namespace and which ones eventually succeeded."
- **Draft rerun plan:** "Draft a Kestra rerun plan for failed executions and wait for my approval before restarting any flow."
