
tan-yong-sheng/cloudflare-image-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
OpenAI-compatible image generation API + Streamable HTTP MCP server powered by Cloudflare Workers AI.
概要
OpenAI-compatible image generation API + Streamable HTTP MCP server powered by Cloudflare Workers AI. - : /v1/images/generations + /v1/images/edits endpoints - : HTTP transport with SSE (streamable) - : FLUX, SDXL, Stable Diffusion, and more - : Text-to-image, image-to-image (masked edits supported) - : React SPA for image generation and provider credentials - : Auto-expiring image storage with CDN 1. to your Cloudflare account (takes 5 minutes): 👉 2. Note your worker URL after deployment: 3. If you set API_KEYS during deployment, you'll need the key for authentication. Below are the configuration guides for different MCP clients. This server uses (not stdio) since it runs on Cloudflare Workers. This server implements the . Configure your client with: - : HTTP/SSE (streamable) - : https://your-worker.workers.dev/mcp - (if API_KEYS set): send Authorization: Bearer YOUR_KEY header
README
以下は原文 README の抜粋です。原文を見る。
Cloudflare Image MCP
OpenAI-compatible image generation API + Streamable HTTP MCP server powered by Cloudflare Workers AI.
🌟 Features
- OpenAI-Compatible API:
/v1/images/generations+/v1/images/editsendpoints - MCP Protocol Support: HTTP transport with SSE (streamable)
- 10 Image Generation Models: FLUX, SDXL, Stable Diffusion, and more
- Multiple Tasks: Text-to-image, image-to-image (masked edits supported)
- Web Frontend: React SPA for image generation and provider credentials
- R2 Storage: Auto-expiring image storage with CDN
📦 What’s Included
cloudflare-image-mcp/
├── workers/ # Cloudflare Worker (API + MCP)
├── client/ # React SPA (Vite + Tailwind + TanStack Query)
└── e2e/ # Playwright E2E tests
🚀 Quick Start
Prerequisites
-
Deploy this MCP server to your Cloudflare account (takes 5 minutes): 👉 Deployment Guide
-
Note your worker URL after deployment:
https://cloudflare-image-workers..workers.dev -
If you set
API_KEYSduring deployment, you’ll need the key for authentication.
MCP Client Configuration
Below are the configuration guides for different MCP clients. This server uses HTTP/SSE transport (not stdio) since it runs on Cloudflare Workers.
This server implements the MCP HTTP/SSE transport. Configure your client with:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"cloudflare-image": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}