Prefect

v1.0.0Coding Agentsstable

MCP server for prefect

agentsevalsmcpmcp-serverorchestration
Share:
41
Stars
0
Downloads
0
Weekly
0/5

What is Prefect?

Prefect is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for prefect

MCP server for prefect

This server falls under the Coding Agents category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server for prefect

Use Cases

Manage workflow orchestration with MCP.
Support evals and agent deployment.
PrefectHQ

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y prefect-mcp-server

Manual Installation

npx -y prefect-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Prefect

Prefect MCP Server connects AI assistants to your Prefect workflow orchestration platform, enabling natural language monitoring, debugging, and management of data pipelines and flow runs through the Model Context Protocol. It exposes tools to query deployments, flow runs, task runs, work pools, and execution logs, as well as trigger and automate deployments — all without opening the Prefect UI. Data engineers and MLOps teams use it to troubleshoot failed flows, monitor pipeline health, and trigger deployments conversationally through Claude Desktop, Cursor, or other MCP clients.

Prerequisites

  • A Prefect account (Prefect Cloud) or a self-hosted Prefect server
  • PREFECT_API_URL set to your Prefect instance endpoint (e.g. https://api.prefect.cloud/api/accounts/<id>/workspaces/<id>)
  • PREFECT_API_KEY for Prefect Cloud authentication (or PREFECT_API_AUTH_STRING in username:password format for OSS)
  • Node.js 18 or newer installed (for npx execution)
  • Claude Desktop, Cursor, VS Code, or another MCP-compatible client
1

Obtain your Prefect API credentials

For Prefect Cloud: log in at app.prefect.cloud, go to Settings > API Keys, and create a new key. For self-hosted OSS Prefect, note your server URL and auth string (username:password).

2

Install the server via uvx (recommended)

Add the Prefect MCP server to Claude Code using the uvx runner. This installs and runs the server from the prefect-mcp PyPI package.

claude mcp add prefect -- uvx --from prefect-mcp prefect-mcp-server
3

Configure Claude Desktop with environment variables

For Claude Desktop, add the server to your config file with your Prefect API URL and key as environment variables.

{
  "mcpServers": {
    "prefect": {
      "command": "npx",
      "args": ["-y", "prefect-mcp-server"],
      "env": {
        "PREFECT_API_URL": "https://api.prefect.cloud/api/accounts/YOUR_ACCOUNT_ID/workspaces/YOUR_WORKSPACE_ID",
        "PREFECT_API_KEY": "your-prefect-api-key"
      }
    }
  }
}
4

Restart your MCP client

Restart Claude Desktop or reload your MCP client to activate the Prefect server.

5

Verify the connection

Ask Claude to show your Prefect dashboard or list recent flow runs to confirm the server is connected and authenticated correctly.

Prefect Examples

Client configuration

Claude Desktop config for the Prefect MCP Server connecting to Prefect Cloud.

{
  "mcpServers": {
    "prefect": {
      "command": "npx",
      "args": ["-y", "prefect-mcp-server"],
      "env": {
        "PREFECT_API_URL": "https://api.prefect.cloud/api/accounts/YOUR_ACCOUNT_ID/workspaces/YOUR_WORKSPACE_ID",
        "PREFECT_API_KEY": "your-prefect-api-key"
      }
    }
  }
}

Prompts to try

Natural language prompts for monitoring and managing Prefect workflows.

- "Show me the Prefect dashboard with recent flow run statistics and work pool status"
- "List all failed flow runs from the last 24 hours and summarize the errors"
- "Why did the etl-pipeline flow run fail? Show me the logs"
- "Trigger a new run of the data-ingestion deployment with default parameters"
- "How many flow runs are currently in a running state across all work pools?"
- "Show me all deployments that are scheduled to run in the next hour"

Troubleshooting Prefect

Authentication error: 401 Unauthorized when connecting to Prefect Cloud

Verify that PREFECT_API_KEY is a valid, non-expired API key from app.prefect.cloud Settings > API Keys. Also check that PREFECT_API_URL points to the correct workspace — the URL format is https://api.prefect.cloud/api/accounts/<account-id>/workspaces/<workspace-id>.

Server connects but returns no flow runs or deployments

Check that PREFECT_API_URL points to the correct workspace. If you have multiple workspaces, ensure you are using the right workspace ID. For local Prefect OSS, ensure the server is running and reachable at the configured URL.

uvx command not found when using the Claude Code install method

uvx is part of the uv package manager. Install it with: curl -LsSf https://astral.sh/uv/install.sh | sh — then restart your terminal so the PATH update takes effect.

Frequently Asked Questions about Prefect

What is Prefect?

Prefect is a Model Context Protocol (MCP) server that mcp server for prefect It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Prefect?

Install via npm with the command: npx -y prefect-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Prefect?

Prefect works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Prefect free to use?

Yes, Prefect is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Coding Agents MCP Servers

Explore all coding agents servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "prefect": { "command": "npx", "args": ["-y", "prefect-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Prefect?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides