Cloudflare AI Image
FreeNot checkedGenerate images using Cloudflare Workers AI models deployed on edge infrastructure.
About
Generate images using Cloudflare Workers AI models deployed on edge infrastructure.
README
这是一个基于 Model Context Protocol (MCP) 的 Cloudflare Workers 服务,允许你通过 AI 助手(如 Claude Desktop)直接调用 Cloudflare Workers AI 的图像生成模型。
🚀 快速开始(控制台部署教程)
如果你不想使用终端命令,可以完全在 Cloudflare 浏览器控制台中完成部署:
1. 准备 Cloudflare 资源
- 登录 Cloudflare 控制台。
- 创建 R2 存储桶:
- 点击左侧菜单 "R2" -> "Create bucket"。
- 命名为
mcp-images(或者你喜欢的名字,记下它)。
- 启用 AI:
- 确保你的账户已启用 Workers AI(通常默认开启)。
2. 创建并部署 Worker
- 进入 "Workers & Pages" -> "Create application" -> "Create Worker"。
- 给你的 Worker 起个名字(例如
cloudflare-ai-image-mcp)。 - 点击 "Deploy"。
- 部署完成后,点击页面右上角的 "Edit Code" 按钮。
- 在左侧文件列表中,找到并打开
worker.js(或者index.ts)。 - 删除原有内容,将本项目 src/index.ts 中的全部代码粘贴进去。
- 点击右上角的 "Deploy" 按钮。
3. 配置绑定与变量(关键步骤)
回到该 Worker 的主页面,点击 "Settings" 选项卡:
A. 变量 (Variables)
- 找到 "Environment Variables" -> "Add variable"。
- 添加变量:
- Variable name:
PASSWORD - Value: 设置你的访问密码(用于 MCP 连接鉴权)。
- Variable name:
CUSTOM_DOMAIN(可选) - Value: 如果你绑定了自定义域名(如
mcp.example.com),请填入,否则返回的链接将使用默认的.workers.dev域名。 - 点击 "Save and deploy"。
- Variable name:
B. 绑定 (Bindings)
- 找到 "Bindings" -> "Add binding"。
- 添加 R2 Bucket 绑定:
- Service role: 选择
R2 Bucket。 - Variable name: 必须填写
IMAGES。 - R2 bucket: 选择你第一步创建的存储桶。
- Service role: 选择
- 添加 AI 绑定:
- 点击 "Add binding" -> 选择
AI。 - Variable name: 必须填写
AI。
- 点击 "Add binding" -> 选择
- 点击 "Save and deploy"。
4. 获取你的端点
你的端点 URL 格式通常为:
https://项目名.用户名.workers.dev/sse
🎨 可用模型
| 模型 ID | 描述 |
|---|---|
flux-1-schnell |
极速生成,质量上乘 |
lucid-origin |
Leonardo 出品,照片级真实感 |
phoenix-1.0 |
擅长渲染图像中的文字 |
stable-diffusion-xl-base-1.0 |
经典的 SDXL 高清生成 |
stable-diffusion-xl-lightning |
1-4 步极速出图 |
🛠️ 在 Claude Desktop 中配置
打开你的 Claude Desktop 配置文件,添加以下内容:
{
"mcpServers": {
"cloudflare-ai-image": {
"command": "curl",
"args": [
"-N",
"-H", "Authorization: Bearer 你的密码",
"https://你的项目名.你的用户名.workers.dev/sse"
]
}
}
}
📄 开源协议
Apache-2.0
Installing Cloudflare AI Image
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/jwbb903/cloudflare-ai-image-mcpFAQ
Is Cloudflare AI Image MCP free?
Yes, Cloudflare AI Image MCP is free — one-click install via Unyly at no cost.
Does Cloudflare AI Image need an API key?
No, Cloudflare AI Image runs without API keys or environment variables.
Is Cloudflare AI Image hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Cloudflare AI Image in Claude Desktop, Claude Code or Cursor?
Open Cloudflare AI Image on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
ARA
Generate images, video and audio from any AI agent — one connector.
by ARAOmni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
by buildwithtazaYouTube
Transcripts, channel stats, search
by YouTubeEverArt
AI image generation using various models.
by modelcontextprotocolgpu-bridge/mcp-server
GPU inference API for LLMs, image and video generation, TTS, Whisper, embeddings, reranking and OCR, paid per use via x402 or an API key.
by gpu-bridgemerterbak/Grok-MCP
Access xAI's Grok API with agentic tool calling, image generation, vision and file support.
by merterbakSureScaleAI/openai-gpt-image-mcp
Image generation and editing with OpenAI's GPT image models.
by SureScaleAIYangLiangwei/PersonalizationMCP
Aggregate personal data from Steam, YouTube, Bilibili, Spotify, Reddit and other gaming, music, video and social platforms, with OAuth2 and token management.
by YangLiangweiAceDataCloud/MCPFlux
Flux image generation and editing from Black Forest Labs via the Ace Data Cloud API.
by AceDataCloudAceDataCloud/MCPNanoBanana
Nano Banana image generation and editing, including virtual try-on and product placement in realistic scenes.
by AceDataCloudCompare Cloudflare AI Image with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
