Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"prefect": {
"url": "https://your-server.fastmcp.app/mcp",
"type": "http",
"headers": {
"X-Prefect-Api-Key": "your-api-key",
"X-Prefect-Api-Url": "https://api.prefect.cloud/api/accounts/[ACCOUNT_ID]/workspaces/[WORKSPACE_ID]"
}
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
This server supports HTTP transport. Be the first to test it — help the community know if it works.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked setup against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops
MCP server for using the GitLab API
Enhanced MCP server for GitLab: group projects listing and activity tracking
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP server for Komodo - manage Docker containers, servers, stacks, and deployments via AI
MCP Security Weekly
Get CVE alerts and security updates for Prefect Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
[!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 easiest way to get started with Claude Code:
# add from marketplace
/plugin marketplace add prefecthq/prefect-mcp-server
# install the plugin
/plugin install prefect
This installs both the MCP server (for read-only diagnostics) and a CLI skill (for mutations like triggering deployments or cancelling runs).
[!NOTE] The plugin uses your local Prefect configuration from
~/.prefect/profiles.toml. For explicit credentials, use the local uvx setup below.
gh repo fork prefecthq/prefect-mcp-server)src/prefect_mcp_server/server.pypyproject.toml (or leave blank)PREFECT_API_URL: https://api.prefect.cloud/api/accounts/[ACCOUNT_ID]/workspaces/[WORKSPACE_ID]PREFECT_API_KEY: your Prefect Cloud API key (or PREFECT_API_AUTH_STRING for OSS with basic auth)https://your-server-name.fastmcp.app/mcp)# add to claude code with http transport
claude mcp add prefect --transport http https://your-server-name.fastmcp.app/mcp
[!NOTE] When deploying to FastMCP Cloud, environment variables are configured on the FastMCP Cloud server itself, not in your client configuration. FastMCP's authentication secures access to your MCP server, while the MCP server uses your Prefect API key to access your Prefect instance.
For centrally-hosted deployments where multiple users connect to the same MCP server instance, credentials can be passed via HTTP headers instead of environment variables. This enables each user to authenticate with their own Prefect workspace.
Supported headers:
X-Prefect-Api-Url: Prefect API URL (required for both Cloud and OSS)X-Prefect-Api-Key: Prefect Cloud API keyX-Prefect-Api-Auth-String: Basic auth credentials for OSS (format: username:password)Claude Code CLI:
claude mcp add-json 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"
}
}'
Claude Desktop app:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"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"
}
}
}
}
Python with FastMCP client:
from fastmcp.client import Client
from fastmcp.client.transports import StreamableHttpTransport
headers = {
"X-Prefect-Api-Url": "https://api.prefect.cloud/api/accounts/[ACCOUNT_ID]/workspaces/[WORKSPACE_ID]",
"X-Prefect-Api-Key": "your-api-key",
}
transport = StreamableHttpTransport(url="https://your-server.fastmcp.app/mcp", headers=headers)
client = Client(transport=transport)
async with client:
result = await client.call_to
... [View full README on GitHub](https://github.com/PrefectHQ/prefect-mcp-server#readme)