loading…
Search for a command to run...
loading…
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,
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.
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.
| 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).
npm install
npm run build
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"
}
}
}
}
| 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. |
generate_imageRequired: 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-1.5, gpt-image-1, gpt-image-1-mini): sizes auto|1024x1024|1536x1024|1024x1536, qualities auto|low|medium|high. Supports background, output_format, output_compression, moderation.1024x1024|1792x1024|1024x1792, qualities standard|hd, n must be 1, supports style.256x256|512x512|1024x1024, quality standard.edit_imageRequired: 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_variationDALL·E 2 only. Required: image (PNG, square, under 4MB).
Optional: n, size (256x256|512x512|1024x1024), output_dir, filename_prefix, return_image_content.
list_modelsNo arguments. Returns a JSON document describing each model's sizes, qualities, and supported options — handy for the caller to consult before picking parameters.
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.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"openai-images-mcp": {
"command": "npx",
"args": []
}
}
}Transcripts, channel stats, search
AI image generation using various models.
Unified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
A powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,