by allen-munsch
Provides a Model Context Protocol server that enables AI assistants to interact with Prefect through natural language, exposing core Prefect APIs for flows, deployments, runs, queues, blocks, variables, and workspaces.
Mcp Prefect implements a Model Context Protocol (MCP) server for Prefect, allowing AI assistants to perform common Prefect operations using natural‑language commands.
export PREFECT_API_URL="http://localhost:4200/api"
export PREFECT_API_KEY="your_api_key"
docker compose up
Q: Do I need Prefect Cloud?
A: No. The server works with any Prefect deployment reachable via PREFECT_API_URL; a Cloud API key is only required for Cloud instances.
Q: Can I extend the server with new Prefect APIs?
A: Yes. Add the function to the appropriate module under src/mcp_prefect and include it in the get_all_functions() list. For new API categories, update APIType in enums.py and modify main.py.
Q: Which transport protocol is supported?
A: The example configuration shows using Server‑Sent Events (--transport sse). Additional transports can be added as needed.
Q: How are environment variables passed to the server? A: They are set in the container or host environment before launching the server, as shown in the configuration step above.
Q: What if some endpoints are missing? A: The README notes that several endpoints are yet to be implemented; contributions are welcome to fill those gaps.
A Model Context Protocol (MCP) server implementation for Prefect, allowing AI assistants to interact with Prefect through natural language.
This MCP server provides access to the following Prefect APIs:
Set the following environment variables:
export PREFECT_API_URL="http://localhost:4200/api" # URL of your Prefect API
export PREFECT_API_KEY="your_api_key" # Your Prefect API key (if using Prefect Cloud)
Run the MCP server, and prefect:
docker compose up
Once connected, an AI assistant can help users interact with Prefect using natural language. Examples:
Several of the endpoints have yet to be implemented
To add a new function to an existing API:
src/mcp_prefectget_all_functions() list in the moduleTo add a new API type:
APIType in enums.pysrc/prefect/main.py to include the new API typeExample usage:
{
"mcpServers": {
"mcp-prefect": {
"command": "mcp-prefect",
"args": [
"--transport", "sse"
],
"env": {
"PYTHONPATH": "/path/to/your/project/directory"
},
"cwd": "/path/to/your/project/directory"
}
}
}
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by activepieces
A self‑hosted, open‑source platform that provides a no‑code builder for creating, versioning, and running AI‑driven automation workflows. Pieces are TypeScript‑based plugins that become MCP servers, allowing direct consumption by large language models.
by Skyvern-AI
Automates browser‑based workflows by leveraging large language models and computer‑vision techniques, turning natural‑language prompts into fully functional web interactions without writing custom scripts.
by ahujasid
Enables Claude AI to control Blender for prompt‑assisted 3D modeling, scene creation, and manipulation via a socket‑based Model Context Protocol server.
by PipedreamHQ
Connect APIs quickly with a free, hosted integration platform that enables event‑driven automations across 1,000+ services and supports custom code in Node.js, Python, Go, or Bash.
by elie222
Organizes email inbox, drafts replies in the user's tone, tracks follow‑ups, and provides analytics to achieve inbox zero quickly.
by grab
Enables Cursor AI to read and programmatically modify Figma designs through a Model Context Protocol integration.
by CursorTouch
Enables AI agents to control the Windows operating system, performing file navigation, application launching, UI interaction, QA testing, and other automation tasks through a lightweight server.
by ahujasid
Enables Claude AI to control Ableton Live in real time, allowing AI‑driven creation, editing, and playback of tracks, clips, instruments, and effects through a socket‑based server.
by leonardsellem
Provides tools and resources to enable AI assistants to manage and execute n8n workflows via natural language commands.