Prefect MCP Server
A Model Context Protocol (MCP) server implementation for Prefect, allowing AI assistants to interact with Prefect through natural language.
Features
This MCP server provides access to the following Prefect APIs:
- Flow Management: List, get, and delete flows
- Flow Run Management: Create, monitor, and control flow runs
- Deployment Management: Manage deployments and their schedules
- Task Run Management: Monitor and control task runs
- Work Queue Management: Create and manage work queues
- Block Management: Access block types and documents
- Variable Management: Create and manage variables
- Workspace Management: Get information about workspaces
Configuration
Set the following environment variables:
Usage
Run the MCP server, and prefect:
Example Input
Once connected, an AI assistant can help users interact with Prefect using natural language. Examples:
- "Show me all my flows"
- "List all failed flow runs from yesterday"
- "Trigger the 'data-processing' deployment"
- "Pause the schedule for the 'daily-reporting' deployment"
- "What's the status of my last ETL flow run?"
Development
Several of the endpoints have yet to be implemented
Adding New Functions
To add a new function to an existing API:
- Add the function to the appropriate module in
src/mcp_prefect
- Add the function to the
get_all_functions()
list in the module
To add a new API type:
- Add the new type to
APIType
inenums.py
- Create a new module in
src/prefect/
- Update
main.py
to include the new API type
Example usage:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
AI 어시스턴트가 자연어를 통해 Prefect의 워크플로 자동화 플랫폼과 상호 작용할 수 있도록 하는 모델 컨텍스트 프로토콜 서버로, 사용자는 대화형 명령을 통해 흐름, 배포, 작업 및 기타 Prefect 리소스를 관리할 수 있습니다.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that allows secure execution of pre-approved commands, enabling AI assistants to safely interact with the user's system.Last updated -1021
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to interact with n8n workflows through natural language, supporting actions like listing, creating, updating, executing and monitoring workflows.Last updated -2901,261MIT License
- -securityFlicense-qualityA Model Context Protocol server implementation that enables AI assistants to interact with Linear project management systems, allowing them to create, retrieve, and modify data related to issues, projects, teams, and users.Last updated -1813
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -61