完美 MCP 服务器
本仓库使用prefect-mcp-server
包提供了一个 Prefect MCP 服务器配置,并通过uvx
实现了可靠的运行机制。该配置专为配合 Cursor IDE 使用而定制。
先决条件
- Python 3.9 或更新版本。
- 用于管理 Python 环境的首选虚拟环境工具(例如 uv)。
- Prefect 3(有关安装说明,请参阅Prefect 文档)。
安装
创建并激活您的虚拟环境,然后安装 Prefect MCP Server:
配置
服务器通过.cursor/mcp.json
文件进行配置。更新后的配置如下:
此配置可确保服务器使用uvx
命令,并且该命令与通过uv pip install
安装的软件包版本完全相同。此方法可增强开发环境的可靠性和一致性。
环境变量
设置以下环境变量来配置您的 Prefect 环境。您可以在项目根目录中创建一个名为.env
的文件,其中包含以下内容:
此外,如果需要,请设置其他环境变量(如PREFECT_API_KEY
以向您的 Prefect 服务器或 Prefect Cloud 进行身份验证。
运行服务器
要启动服务器,您可以运行以下命令:
或者,如果您使用带有其配置的 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
在配置的环境内运行脚本。
编码愉快!
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
该服务器能够通过模型上下文协议与 Prefect 工作流自动化工具进行交互,通过 uvx 运行机制提供增强的可靠性并与 Cursor IDE 无缝集成。
Related MCP Servers
- -securityAlicense-qualityA 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 -TypeScriptMIT License
- -security-license-qualityA 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 -
- AsecurityAlicenseAqualityA 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 -105JavaScriptMIT License
- -securityFlicense-qualityA 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 -1Python