Skip to main content
Glama

Prefect MCP Server

by fortunto2

完美 MCP 服务器

本仓库使用prefect-mcp-server包提供了一个 Prefect MCP 服务器配置,并通过uvx实现了可靠的运行机制。该配置专为配合 Cursor IDE 使用而定制。

先决条件

  • Python 3.9 或更新版本。
  • 用于管理 Python 环境的首选虚拟环境工具(例如 uv)。
  • Prefect 3(有关安装说明,请参阅Prefect 文档)。

安装

创建并激活您的虚拟环境,然后安装 Prefect MCP Server:

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

配置

服务器通过.cursor/mcp.json文件进行配置。更新后的配置如下:

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

此配置可确保服务器使用uvx命令,并且该命令与通过uv pip install安装的软件包版本完全相同。此方法可增强开发环境的可靠性和一致性。

环境变量

设置以下环境变量来配置您的 Prefect 环境。您可以在项目根目录中创建一个名为.env的文件,其中包含以下内容:

PREFECT_API_URL=http://localhost:4200/api

此外,如果需要,请设置其他环境变量(如PREFECT_API_KEY以向您的 Prefect 服务器或 Prefect Cloud 进行身份验证。

运行服务器

要启动服务器,您可以运行以下命令:

uv run <script>

或者,如果您使用带有其配置的 Cursor IDE,则服务器将使用.cursor/mcp.json中指定的命令自动调用。

文档

有关 Prefect MCP Server 功能和使用的详细文档,请参阅docs/prefect_mcp_documentation.md文件。该文档内容如下:

  • 可用工具及其参数的完整列表
  • 安装和配置说明
  • 不同 MCP 客户端的使用示例
  • Prefect 3.0 兼容性信息

游标规则

此代码库包含用于与 Prefect MCP 服务器配合使用的 Cursor 规则,位于.cursor/rules/目录中。这些规则在 Cursor IDE 中使用 Prefect MCP 时提供上下文帮助和指导。

附加信息

  • 有关 Prefect 安装和使用的更多详细信息,请参阅Prefect 文档
  • 有关模型上下文协议 (MCP) 的信息,请参阅MCP 文档
  • 按照 Cursor 的建议,使用uv run在配置的环境内运行脚本。

编码愉快!

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

该服务器能够通过模型上下文协议与 Prefect 工作流自动化工具进行交互,通过 uvx 运行机制提供增强的可靠性并与 Cursor IDE 无缝集成。

  1. 先决条件
    1. 安装
      1. 配置
        1. 环境变量
          1. 运行服务器
            1. 文档
              1. 游标规则
                1. 附加信息

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that provides seamless interaction with Workato's API through custom AI tools, enabling management of recipes, connections, connectors, folders, and activity logs.
                    Last updated -
                    TypeScript
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    -
                    license
                    -
                    quality
                    A server implementation that enables integration of Dify workflows with Model Context Protocol (MCP), allowing users to access Dify's capabilities through MCP-compatible clients.
                    Last updated -
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A server based on Model Context Protocol that provides predefined prompt templates for tasks like code review and API documentation generation, enabling more efficient workflows in Cursor/Windsurf editors.
                    Last updated -
                    10
                    5
                    JavaScript
                    MIT License
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A lightweight Python-based server designed to run, manage and create CrewAI workflows using the Model Context Protocol for communicating with LLMs and tools like Claude Desktop or Cursor IDE.
                    Last updated -
                    1
                    Python

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/fortunto2/prefect-mcp-server'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server