PP

prefecthq/prefect-mcp-server

开发工具官方

本页由 AI 翻译,技术细节请以原文为准。 查看原文

55 stars 40 forks 质量 89 趋势 33MIT

prefecthq/prefect-mcp-server 是从 https://github.com/prefecthq/prefect-mcp-server. 导入的 MCP 服务器候选

概览

prefecthq/prefect-mcp-server 是从 https://github.com/prefecthq/prefect-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

[!警告] 本项目正在积极开发中,随时可能发生重大变化。

这是一个为Prefect设计的实验性MCP服务器。API、功能和行为可能会随时更改,恕不另行通知。我们鼓励你试用,提供反馈并贡献力量。请提出问题或开放公共关系,分享你的想法和建议。

一个用于与prefect资源交互的MCP服务器。

服务器为MCP客户端提供只读工具,用于检查Prefect云和自托管的Prefect实例,并提供文档代理,方便助手查询当前Prefect的CLI、SDK和部署指南。

选择你的布置

请参阅座席设置指南中的客户专用说明和设置提示,或者给你的座席提供纯文本的设置索引。

使用场景 推荐配置 认证
ChatGPT 学长插件 学长云 OAuth
克劳德 学长联络员 学长克劳德·欧斯
Claude 代码或 Codex 你的客户端 Prefect 插件 Prefect Cloud OAuth
Claude 标签或 Cowork 同一 Prefect 插件 组织管理的 Prefect Cloud OAuth
本地MCP客户端 uvx stdio服务器 活跃本地Prefect配置文件或环境变量

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

prefect-mcp-server

[!WARNING] This project is under active development and may change drastically at any time.

This is an experimental MCP server for Prefect. APIs, features, and behaviors are subject to change without notice. We encourage you to try it out, provide feedback, and contribute. Please create issues or open PRs with your ideas and suggestions.

An MCP server for interacting with prefect resources.

The server gives MCP clients read-only tools for inspecting Prefect Cloud and self-hosted Prefect instances, plus a docs proxy so assistants can look up current Prefect CLI, SDK, and deployment guidance.

Choose Your Setup

See the agent setup guides for client-specific instructions and setup prompts, or give your agent the plain-text setup index.

Use case Recommended setup Authentication
ChatGPT Prefect plugin Prefect Cloud OAuth
Claude Prefect connector Prefect Cloud OAuth
Claude Code or Codex Prefect plugin for your client Prefect Cloud OAuth
Claude Tag or Cowork The same Prefect plugin Organization-managed Prefect Cloud OAuth
Local MCP client uvx stdio server Active local Prefect profile or env vars
Self-hosted Prefect or custom Cloud workspace Self-hosted HTTP or stdio server API key, basic auth, env vars, or headers
Team-operated shared server HTTP deployment with per-request headers User or service-account credentials in headers

ChatGPT Plugin and Claude Connector

Install the Prefect plugin in ChatGPT or connect the Prefect connector in Claude. Sign in to Prefect Cloud and select the workspaces the assistant may read. Both use Prefect’s hosted MCP server; no local installation or API key is required.

In ChatGPT, installing the plugin and connecting your Prefect account are separate steps. Start a chat with Prefect selected and complete the Connect prompt. If an existing chat does not discover the newly connected tools, start a fresh chat. In Claude, connect from the directory listing and approve tool calls when prompted.

Try asking: “Which Prefect workspaces can you access?” Then choose a workspace and ask: “Why did my most recent failed flow run fail?” The hosted tools inspect runs, logs, and workspace health and search documentation; they do not change Prefect state.

See the Prefect MCP setup guide for more connection options.

Claude Code Plugin

在 GitHub 查看完整 README

安装

uvx --from prefect-mcp prefect-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "prefect": { "type": "http", "url": "https://your-server.fastmcp.app/mcp", "headers": { "X-Prefect-Api-Url": "https://api.prefect.cloud/api/accounts/[ACCOUNT_ID]/workspaces/[WORKSPACE_ID]", "X-Prefect-Api-Key": "your-api-key" } } } }