Skip to main content

MseeP.ai Security Assessment Badge

Prefect MCP Server

This repository provides a Prefect MCP server configuration using the prefect-mcp-server package with a reliable running mechanism via uvx. The configuration is tailored for use with the Cursor IDE.

Prefect Server MCP server

Prerequisites

  • Python 3.9 or newer.
  • A preferred virtual environment tool (such as uv) for managing Python environments.
  • Prefect 3 (see Prefect Documentation for installation instructions).

Installation

Create and activate your virtual environment, then install Prefect MCP Server:

uv venv --python 3.12 && source .venv/bin/activate
uv pip install -U prefect-mcp-server

Configuration

The server is configured via the .cursor/mcp.json file. The updated configuration is as follows:

{
  "mcpServers": {
    "prefect": {
      "command": "uvx",
      "args": [
        "prefect-mcp-server"
      ],
      "env": {}
    }
  }
}

This configuration ensures that the server uses the uvx command with the exact package version installed via uv pip install. This approach provides enhanced reliability and consistency in your development environment.

Environment Variables

Set the following environment variables to configure your Prefect environment. You can create a file named .env in the project root with entries such as:

PREFECT_API_URL=http://localhost:4200/api

Additionally, if needed, set other environment variables like PREFECT_API_KEY to authenticate with your Prefect server or Prefect Cloud.

Running the Server

To start the server, you can run the following command:

uv run <script>

Alternatively, if you are using the Cursor IDE with its configuration, the server will be automatically invoked with the command specified in .cursor/mcp.json.

Documentation

Detailed documentation on the Prefect MCP Server functionality and usage is available in the docs/prefect_mcp_documentation.md file. The documentation includes:

  • Complete list of available tools and their parameters
  • Instructions for installation and configuration
  • Examples of usage with different MCP clients
  • Prefect 3.0 compatibility information

Cursor Rules

This repository includes Cursor Rules for working with the Prefect MCP Server, located in the .cursor/rules/ directory. These rules provide contextual help and guidance when working with Prefect MCP in the Cursor IDE.

Additional Information

  • For further details on Prefect installation and usage, please refer to the Prefect Documentation.
  • For information about the Model Context Protocol (MCP), see the MCP Documentation.
  • Use uv run for running scripts within the configured environment as recommended by Cursor.

Happy coding!

Metadata

Release files for iflow-mcp_fortunto2_prefect-mcp-server 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_fortunto2_prefect-mcp-server 1.1.3
File Size Uploaded
iflow_mcp_fortunto2_prefect_mcp_server-1.1.3.tar.gz 205.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_fortunto2_prefect-mcp-server 1.1.3
File Interpreter ABI Platform
iflow_mcp_fortunto2_prefect_mcp_server-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 212.2 kB

Release files / iflow_mcp_fortunto2_prefect_mcp_server-1.1.3.tar.gz

Download URL iflow_mcp_fortunto2_prefect_mcp_server-1.1.3.tar.gz
Size 205.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c2c94b6df5d81e5367271f1d7ce12cd39c9afcdc7a56b2484cc01448134af6ad
BLAKE2b-256 checksum
How to use checksums
eff9b942044586243da04fad3dc44f0711afe245dc4f254a4b8d5b39cbabdfb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_fortunto2_prefect_mcp_server-1.1.3-py3-none-any.whl

Download URL iflow_mcp_fortunto2_prefect_mcp_server-1.1.3-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fbd7421a39c3b3002155430ff5ccfe9a9d44fbea0ce7f57926f3ec1f1aa741c
BLAKE2b-256 checksum
How to use checksums
3e9eab4da12b520fde0879a3d22de8367620317b3f05cc9af3db3df815375588
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page