Cloudflare Image MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cloudflare Image MCPgenerate a sunset over mountains using FLUX"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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/editsendpointsMCP 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: Interactive UI for image generation
R2 Storage: Auto-expiring image storage with CDN
Related MCP server: openai-images-mcp
π¦ What's Included
cloudflare-image-mcp/
βββ workers/ # Cloudflare Worker (API + MCP + Frontend)
βββ 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.<your-subdomain>.workers.devIf 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.
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cloudflare-image": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}If using API key authentication:
{
"mcpServers": {
"cloudflare-image": {
"url": "https://your-worker.workers.dev/mcp?key=your-api-key"
}
}
}Add the MCP server:
claude mcp add cloudflare-image https://your-worker.workers.dev/mcpWith API key:
claude mcp add cloudflare-image https://your-worker.workers.dev/mcp?key=your-api-keyGo to: Settings β Cursor Settings β MCP β Add new global MCP server
{
"mcpServers": {
"cloudflare-image": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}Open Cline β Click MCP Servers icon β Installed tab β Advanced MCP Settings
Add to cline_mcp_settings.json:
{
"mcpServers": {
"cloudflare-image": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}This server implements the MCP HTTP/SSE transport. Configure your client with:
Transport: HTTP/SSE (streamable)
URL:
https://your-worker.workers.dev/mcpAuth (if API_KEYS set): Add
?key=your-api-keyto the URL
π Usage
OpenAI-Compatible API
curl -X POST "https://your-worker.workers.dev/v1/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your-api-key" \
-d '{
"model": "@cf/black-forest-labs/flux-1-schnell",
"prompt": "A beautiful sunset over mountains",
"n": 1,
"size": "1024x1024"
}'And it can be used for OpenWebUI's image generation feature and image edits feature:

MCP Tools
Available Tools:
list_models- List all available modelsdescribe_model- Get model parameters and limitsrun_model- Generate images
Connect via MCP:
{
"mcpServers": {
"image-gen": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}Web Frontend
Open your worker URL in a browser for an interactive UI.

π¨ Supported Models
π Detailed Model Specifications β β Full parameter reference, feature comparison, and capability matrix.
Model | Tasks | Provider |
FLUX.1 [schnell] | text-to-image | Black Forest Labs |
FLUX.2 [klein] | text-to-image, image-to-image | Black Forest Labs |
FLUX.2 [dev] | text-to-image, image-to-image | Black Forest Labs |
SDXL Base 1.0 | text-to-image, image-to-image (img2img + masked edits) | Stability AI |
SDXL Lightning | text-to-image | ByteDance |
Dreamshaper 8 LCM | text-to-image, image-to-image (img2img) | Lykon |
Lucid Origin | text-to-image | Leonardo |
Phoenix 1.0 | text-to-image | Leonardo |
SD 1.5 Img2Img | image-to-image (img2img) | Runway ML |
SD 1.5 Inpainting | image-to-image (requires mask) | Runway ML |
π Documentation
Document | Description |
Step-by-step deployment instructions | |
Environment variables and API tokens | |
Detailed API usage examples | |
MCP protocol and tools reference | |
REST endpoints documentation |
π§ͺ Testing
# Run E2E tests against staging/production
npm run test:e2e:staging
npm run test:e2e:productionπ§ Development
# Type check
npm run build
# Run E2E tests
npm run test:e2e:stagingπ License
MIT
Built with:
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceAn MCP server that enables text-to-image generation and editing using OpenAI's gpt-image-1 model, supporting multiple output formats, quality settings, and background options.Last updated65
- FlicenseAqualityDmaintenanceAn MCP server for generating and editing images using OpenAI's GPT Image and DALLΒ·E models. It provides tools for image generation, editing, variation creation, and model listing with support for multiple AI models.Last updated4
- Flicense-qualityBmaintenanceImage generation MCP server running on Cloudflare Workers, supporting multiple models like FLUX and SDXL with OpenAI-compatible endpoints.Last updated
- Flicense-qualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.Last updated
Related MCP Connectors
MCP server for Midjourney AI image generation and editing
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/StrawberCar/cloudflare-image-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server