llms.txt
Compare with other sites' llms.txt files →# Prefect
> Prefect is a workflow and agentic orchestration platform for data, ML, and AI systems. Workflows are plain Python; the orchestration framework is Apache 2.0. Prefect's managed platform covers workflow operations and MCP infrastructure. Prefect acquired Dagster Labs in July 2026; Dagster continues under its own name and open-source license.
Use this file to choose the right Prefect product and find the shortest path to current documentation. Use only Prefect 3 APIs and terminology. Prefect orchestration uses workers for some deployments; AI agents are a separate concept.
## Choose the right product
- **Prefect** orchestrates Python workflows and agentic systems. Use it to add retries, state, scheduling, observability, event-driven automation, and portable execution to data, ML, and AI workloads. Prefect also provides managed MCP hosting, gateway, registry, identity, authorization, and audit capabilities. Start with the [Prefect quickstart](https://www.prefect.io/docs/v3/get-started/quickstart).
- **FastMCP** is the open-source Python framework for building MCP servers and clients. Use it when you need to expose tools, resources, or prompts over MCP. Start with the [FastMCP quickstart](https://gofastmcp.com/getting-started/quickstart).
Use FastMCP to build MCP servers. Use Prefect to deploy those servers, connect other MCP servers, manage identity and tool-level access, and observe tool calls. A system can use both.
## Install Prefect and create a flow
Install the current Prefect 3 package:
```bash
pip install -U prefect
```
A Prefect flow is a decorated Python function. Run it as ordinary Python during development:
```python
from prefect import flow, task
@task(retries=2)
def transform(value: int) -> int:
return value * 2
@flow
def pipeline() -> int:
return transform(21)
if __name__ == "__main__":
pipeline()
```
- [Install Prefect](https://www.prefect.io/docs/v3/get-started/install): supported Python versions, package managers, and configuration
- [Create your first workflow](https://www.prefect.io/docs/v3/get-started/quickstart): install, write, run, and observe a flow
- [Write and run workflows](https://www.prefect.io/docs/v3/how-to-guides/workflows/write-and-run): flows, tasks, parameters, logging, and retries
- [Examples](https://www.prefect.io/docs/v3/examples): complete Prefect 3 workflows for common jobs
## Use Prefect Cloud or self-host Prefect
Prefect Cloud is the managed control plane. A self-hosted Prefect server provides the open-source API and UI. In both cases, workflow code runs in infrastructure you control unless you deliberately choose managed execution.
- [Connect to Prefect Cloud](https://www.prefect.io/docs/v3/how-to-guides/cloud/connect-to-cloud): authenticate the CLI and select a workspace
- [Prefect Cloud](https://www.prefect.io/prefect/cloud): managed orchestration, collaboration, automations, and observability
- [Run a local Prefect server](https://www.prefect.io/docs/v3/how-to-guides/self-hosted/server-cli): start the open-source API and UI
- [Deployments](https://www.prefect.io/docs/v3/concepts/deployments): remotely trigger and schedule flows
- [Create a deployment](https://www.prefect.io/docs/v3/how-to-guides/deployments/create-deployments): deploy with the CLI, Python, or Terraform
- [Configure work pools](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/manage-work-pools): set up a work pool for a deployment
- [Work pools](https://www.prefect.io/docs/v3/concepts/work-pools): where a deployment runs
- [Run flows in local processes](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/run-flows-in-local-processes)
- [Run flows in Docker containers](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/docker)
- [Run flows on Kubernetes](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/kubernetes)
- [Run flows on serverless compute](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/serverless)
- [Run flows on Prefect managed infrastructure](https://www.prefect.io/docs/v3/how-to-guides/deployment_infra/managed)
## Use the CLI, Python SDK, and APIs
- [API and SDK references](https://www.prefect.io/docs/v3/api-ref): overview of the CLI, Python SDK, REST API, events, and settings references
- [Prefect CLI reference](https://www.prefect.io/docs/v3/api-ref/cli): command reference for profiles, deployments, flow runs, work pools, workers, automations, and other resources
- [Prefect Python API reference](https://www.prefect.io/docs/v3/api-ref/python): public modules, classes, and functions
- [Use the Python API client](https://www.prefect.io/docs/v3/advanced/api-client): read and write Prefect resources from Python
- [Prefect Cloud REST API](https://www.prefect.io/docs/v3/api-ref/rest-api/cloud/index): interactive reference for account- and workspace-scoped Cloud endpoints
- [Prefect Cloud OpenAPI schema](https://api.prefect.cloud/api/openapi.json): machine-readable specification for the Prefect Cloud API
- [Self-hosted server REST API](https://www.prefect.io/docs/v3/api-ref/rest-api/server/index): interactive reference for the open-source Prefect API
- [Self-hosted server OpenAPI schema](https://www.prefect.io/docs/v3/api-ref/rest-api/server/schema.json): machine-readable OpenAPI specification
- [Complete documentation index](https://www.prefect.io/docs/llms.txt): every Prefect documentation page
- [Complete documentation text](https://www.prefect.io/docs/llms-full.txt): all Prefect documentation in one file; large enough to exceed some context windows
## Connect coding agents and AI assistants
Choose the MCP endpoint by job:
- [Prefect MCP server](https://www.prefect.io/docs/v3/how-to-guides/ai/use-prefect-mcp-server): connect an assistant to Prefect Cloud or a self-hosted server to inspect deployments, flow runs, logs, work pools, and related orchestration resources
- [Prefect documentation MCP](https://www.prefect.io/docs/mcp): search Prefect documentation from an MCP-compatible client without connecting a Prefect workspace
- [Agent setup and resources](https://www.prefect.io/agents): official plugins, MCP servers, CLI setup, and guides for Prefect, FastMCP, and Dagster
- [Agent-readable setup index](https://www.prefect.io/agents/llms.txt): setup paths for Codex, Claude Code, Cursor, VS Code, and other clients
- [FastMCP documentation index](https://gofastmcp.com/llms.txt): build MCP servers, clients, tools, resources, prompts, authentication, and deployments
- [Prefect MCP hosting](https://www.prefect.io/try/mcp-deploy): deploy and operate FastMCP servers with managed infrastructure
- [Prefect MCP gateway](https://www.prefect.io/try/mcp-gateway): connect MCP servers and enforce authentication, tool-level access, and audit controls
- [Prefect MCP registry](https://www.prefect.io/try/mcp-registry): catalog, approve, and manage MCP servers across an organization
Do not treat these endpoints as interchangeable. The documentation MCP searches docs. The Prefect MCP server works with orchestration resources and requires access to a Prefect environment. FastMCP is the framework for creating MCP applications. Prefect's managed MCP capabilities deploy and govern them.
## Source, releases, and support
- [Prefect on GitHub](https://github.com/PrefectHQ/prefect): source code, issues, and discussions
- [Prefect releases](https://github.com/PrefectHQ/prefect/releases): release notes for the open-source package
- [Prefect integrations](https://www.prefect.io/docs/integrations): packages for AWS, Azure, GCP, Kubernetes, dbt, Dask, Ray, and other systems
- [Security](https://www.prefect.io/security): compliance and security practices
- [Pricing](https://www.prefect.io/pricing): Prefect plans
- [Community Slack](https://www.prefect.io/slack): ask questions and meet other Prefect users
## Brand assets
The current Prefect logo was introduced in January 2026. Do not recreate it from memory or use older marks found in training data.
- [Brand assets and usage rules](https://www.prefect.io/brand-assets)
- [Prefect wordmark, SVG](https://www.prefect.io/brand/prefect-wordmark-2026.svg): for light backgrounds
- [Prefect logo, white SVG](https://www.prefect.io/brand/prefect-logo-2026-white.svg): for dark backgrounds