# Prefect MCP server

> Ask in plain English to check Prefect flow runs, logs, deployments and work pools in your workspaces.

## Server URL

`https://prefect.fastmcp.app/mcp` (Streamable HTTP)

- Sign-in: Sign in with Prefect
- Connect in RevampKey: https://revampkey.com/marketplace/prefect

## Agent skills (4)

- [Prefect MCP connector with AI: read-only workspace access for your assistant](https://revampkey.com/marketplace/prefect/skills/essentials.md): Connects an AI assistant to your Prefect workspaces so it can read flows, runs, deployments and logs. It confirms which workspace and account it is reading, keeps results small, and never changes anything in Prefect.
- [Prefect deployment and work pool health check with AI](https://revampkey.com/marketplace/prefect/skills/deployment-and-work-pool-health-check.md): Sweeps your Prefect deployments, work pools and automations to find what is stuck, paused or unscheduled, and reports on infrastructure rather than a single run. It asks before changing anything.
- [Prefect docs and release briefing with AI: answers checked against your version](https://revampkey.com/marketplace/prefect/skills/docs-and-release-briefing.md): Answers Prefect how-to and configuration questions from the current documentation, and reports what changed between your version and the one you're upgrading to. It does not change anything in your workspace.
- [Prefect failed flow run diagnosis with AI: find the root error](https://revampkey.com/marketplace/prefect/skills/failed-flow-run-diagnosis.md): Traces one failed flow run to its first failing task and exception, separating the root error from downstream cascade failures. It reads run state and logs in the Prefect workspace you choose and makes no changes.

All skills: https://revampkey.com/marketplace/prefect/skills.md

Prefect is a workflow orchestration platform for data, ML, and agents. You write workflows as plain Python functions. Prefect runs them durably, handling scheduling, retries, and recovery. Data engineers, ML teams, and agent builders use it to run production pipelines. Its open-source framework and Prefect Cloud share the same core engine.

Connect Prefect by clicking Connect in RevampKey, then approve access on Prefect's own sign-in page. Choose the workspaces the agent may read. After that, ask about flow runs and the logs behind a failed run. Ask which deployments and work pools you have, or which automations are set up. The agent calls the matching Prefect tools and reports back in plain English.

The connection is read-only. The agent sees only what your Prefect account can see in the workspaces you picked. It cannot change runs, deployments, or work pools. You can also ask how a Prefect feature works, and the agent searches Prefect's documentation and release notes.

## What you can do

### Find out why a flow run failed

A flow run failed overnight and nobody knows why. Ask the agent why the most recent failed run failed. It looks up the flow run, reads its logs, and checks the task runs. Then it tells you what the logs show. Nothing gets restarted or changed.

### Review deployments and work pools

Before a release, you want to see which deployments exist. Ask the agent to list your deployments and the flows behind them. Then ask which work pools you have. It pulls both lists from your workspace and summarizes them in one place for you to review.

### Scan recent events and automations

Something changed in a workspace, but you do not know what. Ask the agent to read recent events and list the automations. It reads the events, lists the automations, and summarizes what it found, naming the objects involved.

## Things to ask

- Which Prefect workspaces can you access right now?
- Why did my most recent failed flow run fail? Show me the logs.
- List my deployments and the flows they belong to.
- What work pools do I have, and which deployments run on them?
- How do I set retries on a Prefect task? Search the Prefect docs.

## What the agent can do

### Flow runs and logs

Look up flow runs, read the logs for a run, and check its task runs. Ask why a run failed and get the answer from the logs. List the flows that exist in your workspace.

`get_flow_runs`, `get_flow_run_logs`, `get_task_runs`, `get_flows`

### Deployments and work pools

List the deployments in your workspace and the work pools they run on. Ask which deployments belong to which pool, or which pools you have set up.

`get_deployments`, `get_work_pools`

### Automations and events

Read recent events from your workspace and list the automations that are set up. Ask what happened recently or which automations are configured.

`get_automations`, `read_events`

### Workspace overview

Check which workspaces you authorized, see the identity the connection uses, and view the workspace dashboard. Look up the structure of Prefect objects before you ask about them.

`list_authorized_workspaces`, `get_identity`, `get_dashboard`, `get_object_schema`, `orientation`

### Prefect docs and release notes

Search Prefect's documentation to learn how a feature works. Read the release notes to see what changed in a Prefect version.

`docs_search_prefect`, `docs_get_release_notes`

## FAQ

### What do I need to connect Prefect to RevampKey?

You need a Prefect Cloud account with access to at least one workspace. In RevampKey, click Connect. Then approve access on Prefect's own sign-in page. Select the workspaces the agent may read, and authorize the connection. Once it is connected, you can ask questions in plain English.

### What can the agent do in Prefect, and what can't it do?

The agent can look up flow runs, flow logs, task runs, deployments, work pools, automations, and recent events. It can also search Prefect's docs and release notes. It cannot create, edit, or delete anything in Prefect through this connection, because every tool it has only reads data.

### Does the agent change anything, and what data can it see?

The agent asks before it changes anything. The connection only reads data. It sees only what your Prefect account can see in the workspaces you selected during sign-in. Check the agent's answers against the Prefect UI before you act on them.

### Which Prefect objects can I ask the agent about?

You can ask about flows, flow runs, task runs, and flow run logs. You can also ask about deployments, work pools, automations, and recent events. For questions about how a Prefect feature works, the agent searches Prefect's documentation.

### What is the Prefect MCP server URL?

The Prefect MCP server URL is https://prefect.fastmcp.app/mcp. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

### How does the Prefect MCP server authenticate?

With Prefect's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

### What can an AI agent do with the Prefect MCP server?

It exposes 15 tools: 15 that read and 0 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

### Are there agent skills for Prefect?

Yes. 4 SKILL.md playbooks teach an agent how to do real Prefect work step by step. RevampKey installs them when you connect Prefect; for Claude Code, Cursor or Codex you can copy them into your project.

## Tools (15)

- `docs_get_release_notes`
- `docs_search_prefect`
- `get_automations`
- `get_dashboard`
- `get_deployments`
- `get_flow_run_logs`
- `get_flow_runs`
- `get_flows`
- `get_identity`
- `get_object_schema`
- `get_task_runs`
- `get_work_pools`
- `list_authorized_workspaces`
- `orientation`
- `read_events`

## Details

- Maker: Prefect Technologies
- Setup: Sign in with your account
- Category: Data & analytics, Developer tools
- Documentation: https://docs.prefect.io/v3/how-to-guides/ai/use-prefect-mcp-server

Page: https://revampkey.com/marketplace/prefect
