loading…
Search for a command to run...
loading…
Enables AI assistants to generate images using Cloudflare Workers AI models directly through the Model Context Protocol. It supports various models like Flux an
Enables AI assistants to generate images using Cloudflare Workers AI models directly through the Model Context Protocol. It supports various models like Flux and Stable Diffusion, providing seamless image generation and storage via Cloudflare R2.
这是一个基于 Model Context Protocol (MCP) 的 Cloudflare Workers 服务,允许你通过 AI 助手(如 Claude Desktop)直接调用 Cloudflare Workers AI 的图像生成模型。
如果你不想使用终端命令,可以完全在 Cloudflare 浏览器控制台中完成部署:
mcp-images(或者你喜欢的名字,记下它)。cloudflare-ai-image-mcp)。worker.js (或者 index.ts)。回到该 Worker 的主页面,点击 "Settings" 选项卡:
PASSWORDCUSTOM_DOMAIN (可选)mcp.example.com),请填入,否则返回的链接将使用默认的 .workers.dev 域名。R2 Bucket。IMAGES。AI。AI。你的端点 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 配置文件,添加以下内容:
{
"mcpServers": {
"cloudflare-ai-image": {
"command": "curl",
"args": [
"-N",
"-H", "Authorization: Bearer 你的密码",
"https://你的项目名.你的用户名.workers.dev/sse"
]
}
}
}
Apache-2.0
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"cloudflare-ai-image-mcp": {
"command": "npx",
"args": []
}
}
}