Openai Images
FreeNot checkedAn 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,
About
An 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.
README
Generate and edit images with OpenAI's gpt-image and DALL·E models, exposed as Model Context Protocol tools. Supports gpt-image-1.5, gpt-image-1, gpt-image-1-mini, dall-e-3, and dall-e-2.
Tools
| Tool | Purpose | Models |
|---|---|---|
list_models |
List supported models and their capabilities (sizes, qualities, edit/variation support). | all |
generate_image |
Generate one or more images from a text prompt. | gpt-image-1.5, gpt-image-1, gpt-image-1-mini, dall-e-3, dall-e-2 |
edit_image |
Edit existing images with a prompt and optional mask. | gpt-image-1.5, gpt-image-1, gpt-image-1-mini, dall-e-2 |
create_variation |
Generate variations of an image. | dall-e-2 only |
All generated files are saved to disk. Set return_image_content: true on any call to also receive the images as MCP image blocks (useful when the client should "see" the result, but adds a lot of tokens).
Install
npm install
npm run build
Configure your MCP client
Claude Desktop / Claude Code
Add to claude_desktop_config.json (or your project's .mcp.json):
{
"mcpServers": {
"dalle": {
"command": "node",
"args": ["/absolute/path/to/dalle-mcp/dist/index.js"],
"env": {
"OPENAI_API_KEY": "sk-...",
"DALLE_OUTPUT_DIR": "/absolute/path/where/images/save"
}
}
}
}
Environment variables
| Variable | Purpose |
|---|---|
OPENAI_API_KEY |
Required. Your OpenAI API key. |
OPENAI_BASE_URL |
Optional. Override OpenAI base URL. |
OPENAI_ORG_ID |
Optional. |
OPENAI_PROJECT_ID |
Optional. |
DALLE_OUTPUT_DIR |
Optional. Default directory for saved images. Falls back to ~/dalle-mcp-output. |
DALLE_DEFAULT_MODEL |
Optional. Model used when a tool call omits model. Default gpt-image-1.5. |
Tool reference
generate_image
Required: prompt.
Optional: model, size, quality, n, background, output_format, output_compression, moderation, style, user, output_dir, filename_prefix, return_image_content.
Model-specific notes:
- GPT Image (
gpt-image-1.5,gpt-image-1,gpt-image-1-mini): sizesauto|1024x1024|1536x1024|1024x1536, qualitiesauto|low|medium|high. Supportsbackground,output_format,output_compression,moderation. - DALL·E 3: sizes
1024x1024|1792x1024|1024x1792, qualitiesstandard|hd,nmust be 1, supportsstyle. - DALL·E 2: sizes
256x256|512x512|1024x1024, qualitystandard.
edit_image
Required: prompt, images (absolute paths, up to 16 for GPT Image).
Optional: mask (transparent pixels indicate editable regions), plus the generation options above. DALL·E 3 does not support edits.
create_variation
DALL·E 2 only. Required: image (PNG, square, under 4MB).
Optional: n, size (256x256|512x512|1024x1024), output_dir, filename_prefix, return_image_content.
list_models
No arguments. Returns a JSON document describing each model's sizes, qualities, and supported options — handy for the caller to consult before picking parameters.
Development
npm run dev # run with tsx, no build step
npm run build # tsc to dist/
npm start # node dist/index.js
The server speaks MCP over stdio, so you can drive it with any MCP-compatible client or manually by piping JSON-RPC messages to node dist/index.js.
Notes
- DALL·E 2 and DALL·E 3 are deprecated by OpenAI and support ends 2026-05-12; prefer the GPT Image family.
- GPT Image models always return base64 data; DALL·E models are asked for base64 as well so files can be saved without a second HTTP round-trip.
Install Openai Images in Claude Desktop, Claude Code & Cursor
unyly install openai-images-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add openai-images-mcp -- npx -y github:sam-david/openai-images-mcpStep-by-step: how to install Openai Images
FAQ
Is Openai Images MCP free?
Yes, Openai Images MCP is free — one-click install via Unyly at no cost.
Does Openai Images need an API key?
No, Openai Images runs without API keys or environment variables.
Is Openai Images hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Openai Images in Claude Desktop, Claude Code or Cursor?
Open Openai Images 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 Openai Images with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs
