DALL-E
About
Enables image generation capabilities using OpenAI's DALL-E API with support for creating, editing, and varying images through flexible configuration options.
Details
- Author
- garoth
- Repository
- Garoth/dalle-mcp
- GitHub stars
- 3
- Downloads
- 184
- Categories
- Cloud Service, Other, AI, Productivity, Design, Media, Developer Tools, API, Infrastructure, Frontend
- Tags
- #content-creation
Jump to
- Generate images using DALL-E 2 or DALL-E 3
- Edit existing images (DALL-E 2 only)
- Create variations of existing images (DALL-E 2 only)
- Validate OpenAI API key
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
DALL-ECommand (node, npx, python, etc.)nodeArguments-
Argument 1
/path/to/dalle-mcp-server/build/index.js
Environment-
SAVE_DIR
/path/to/save/directory -
OPENAI_API_KEY
your-api-key-here
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
npm install
Add the dall-e server to your Cline MCP settings file inside VSCode's settings (ex. ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
json{
"mcpServers": {
"dalle-mcp": {
"command": "node",
"args": ["/path/to/dalle-mcp-server/build/index.js"],
"env": {
"OPENAI_API_KEY": "your-api-key-here",
"SAVE_DIR": "/path/to/save/directory"
},
"disabled": false,
"autoApprove": []
}
}
}
``
Make sure to:
1. Replace
/path/to/dalle-mcp-server/build/index.js with the actual path to the built index.js file
2. Replace your-api-key-here` with your OpenAI API keygenerate_image
Generate an image using DALL-E based on a text prompt. Parameters: prompt (required string), model (optional string), size (optional string), quality (optional string), style (optional string), n (optional integer), saveDir (optional string), fileName (optional string)
edit_image
Edit an existing image using DALL-E based on a text prompt. Parameters: prompt (required string), imagePath (required string), mask (optional string), model (optional string), size (optional string), n (optional integer), saveDir (optional string), fileName (optional string)
create_variation
Create variations of an existing image using DALL-E. Parameters: imagePath (required string), model (optional string), size (optional string), n (optional integer), saveDir (optional string), fileName (optional string)
validate_key
Validate the OpenAI API key. No parameters required.
generate_image
Generate an image using DALL-E based on a text prompt.
{
"prompt": "A futuristic city with flying cars and neon lights",
"model": "dall-e-3",
"size": "1024x1024",
"quality": "standard",
"style": "vivid",
"n": 1,
"saveDir": "/path/to/save/directory",
"fileName": "futuristic-city"
}
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"dall-e": {
"env": {
"SAVE_DIR": "/path/to/save/directory",
"OPENAI_API_KEY": "your-api-key-here"
},
"args": [
"/path/to/dalle-mcp-server/build/index.js"
],
"command": "node"
}
}
}
Linux
{
"env": {
"SAVE_DIR": "/path/to/save/directory",
"OPENAI_API_KEY": "your-api-key-here"
},
"args": [
"/path/to/dalle-mcp-server/build/index.js"
],
"command": "node"
}
Macos
{
"env": {
"SAVE_DIR": "/path/to/save/directory",
"OPENAI_API_KEY": "your-api-key-here"
},
"args": [
"/path/to/dalle-mcp-server/build/index.js"
],
"command": "node"
}
Windows
{
"env": {
"SAVE_DIR": "/path/to/save/directory",
"OPENAI_API_KEY": "your-api-key-here"
},
"args": [
"/c",
"node",
"/path/to/dalle-mcp-server/build/index.js"
],
"command": "cmd"
}
An MCP (Model Context Protocol) server for generating images using OpenAI's DALL-E API.
- Generate images using DALL-E 2 or DALL-E 3
- Edit existing images (DALL-E 2 only)
- Create variations of existing images (DALL-E 2 only)
- Validate OpenAI API key
# Clone the repository git clone https://github.com/Garoth/dalle-mcp.git cd dalle-mcp # Install dependencies npm install # Build the project npm run build
When using this DALL-E MCP server with Cline, it's recommended to save generated images in your current workspace directory by setting thesaveDirparameter to match your current working directory. This ensures Cline can properly locate and display the generated images in your conversation.
{ "prompt": "A tropical beach at sunset", "saveDir": "/path/to/current/workspace" }
Add the dall-e server to your Cline MCP settings file inside VSCode's settings (ex. ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json):
{ "mcpServers": { "dalle-mcp": { "command": "node", "args": ["/path/to/dalle-mcp-server/build/index.js"], "env": { "OPENAI_API_KEY": "your-api-key-here", "SAVE_DIR": "/path/to/save/directory" }, "disabled": false, "autoApprove": [] } } }
- Replace/path/to/dalle-mcp-server/build/index.jswith the actual path to the built index.js file
- Replaceyour-api-key-herewith your OpenAI API key
Generate an image using DALL-E based on a text prompt.
{ "prompt": "A futuristic city with flying cars and neon lights", "model": "dall-e-3", "size": "1024x1024", "quality": "standard", "style": "vivid", "n": 1, "saveDir": "/path/to/save/directory", "fileName": "futuristic-city" }
- prompt(required): Text description of the desired image
- model(optional): DALL-E model to use ("dall-e-2" or "dall-e-3", default: "dall-e-3")
- size(optional): Size of the generated image (default: "1024x1024")
- DALL-E 3: "1024x1024", "1792x1024", or "1024x1792"
- DALL-E 2: "256x256", "512x512", or "1024x1024"
Edit an existing image using DALL-E based on a text prompt.
⚠️ Known Issue (March 18, 2025):The DALL-E 2 image edit API currently has a bug where it sometimes ignores the prompt and returns the original image without any edits, even when using proper RGBA format images and masks. This issue has been reported in theOpenAI community forum. If you experience this issue, try using thecreate_variationtool instead, which seems to work more reliably.
{ "prompt": "Add a red hat", "imagePath": "/path/to/image.png", "mask": "/path/to/mask.png", "model": "dall-e-2", "size": "1024x1024", "n": 1, "saveDir": "/path/to/save/directory", "fileName": "edited-image" }
- prompt(required): Text description of the desired edits
- imagePath(required): Path to the image to edit
- mask(optional): Path to the mask image (white areas will be edited, black areas preserved)
- model(optional): DALL-E model to use (currently only "dall-e-2" supports editing, default: "dall-e-2")
- size(optional): Size of the generated image (default: "1024x1024")
- n(optional): Number of images to generate (1-10, default: 1)
- saveDir(optional): Directory to save the edited images (default: current directory or SAVE_DIR from .env).For Cline users:Setting this to your current workspace directory is recommended for proper image display.
- fileName(optional): Base filename for the edited images without extension (default: "dalle-edit-{timestamp}")
Create variations of an existing image using DALL-E.
{ "imagePath": "/path/to/image.png", "model": "dall-e-2", "size": "1024x1024", "n": 4, "saveDir": "/path/to/save/directory", "fileName": "image-variation" }
- imagePath(required): Path to the image to create variations of
- model(optional): DALL-E model to use (currently only "dall-e-2" supports variations, default: "dall-e-2")
- size(optional): Size of the generated image (default: "1024x1024")
- n(optional): Number of variations to generate (1-10, default: 1)
- saveDir(optional): Directory to save the variation images (default: current directory or SAVE_DIR from .env).For Cline users:Setting this to your current workspace directory is recommended for proper image display.
- fileName(optional): Base filename for the variation images without extension (default: "dalle-variation-{timestamp}")
Note: The following .env configuration is ONLY needed for running tests, not for normal operation.
If you're developing or running tests for this project, create a.envfile in the root directory with your OpenAI API key:
# Required for TESTS ONLY: OpenAI API Key OPENAI_API_KEY=your-api-key-here # Optional: Default save directory for test images # If not specified, images will be saved to the current directory # SAVE_DIR=/path/to/save/directory
For normal operation with Cline, configure your API key in the MCP settings JSON as described in the "Adding to MCP Settings" section above.
You can get your API key fromOpenAI's API Keys page.
# Run basic tests npm test # Run all tests including edit and variation tests npm run test:all # Run tests in watch mode npm run test:watch # Run specific test by name npm run test:name "should validate API key"
Note: Tests use real API calls and may incur charges on your OpenAI account.
The project includes a script to generate test images for development and testing:
# Generate a test image in the assets directory npm run generate-test-image
This will create a simple test image in theassetsdirectory that can be used for testing the edit and variation features.
Turn any language model into a multimodal powerhouse that can generate images, music, videos and more on the fly. Rostro's tools are designed to be used by language models from the ground up, expanding capabilities with minimal context bloat.
MCP-native AI media generation with x402 pay-per-call. Image, video, audio, and music from 6 providers — composable via resource IDs. USDC on Base.
AI-powered image analysis using OpenAI's Vision API.
An MCP server for generating videos using Amazon Nova Reel 1.1 via AWS Bedrock.
Atlas Cloud MCP Server (Image / Video / LLM APIs)
A powerful MCP server for AI image, video, and LLM APIs. Integrate models like Seedance and Nano Banana into your workflow with a simple, unified interface powered by Atlas Cloud.
AI audio tools for music producers — stem splitting, vocal removal, BPM/key detection, audio-to-MIDI, format conversion and AI song generation
Analyzes image and video content from URLs or local files using the Gemini 2.0 Flash model.
Interact with and manage your Ghost CMS blog, including posts, users, and members, through an LLM interface.
An MCP server that integrates with the Jimeng AI image generation service.
Generate images using Replicate's Flux 1.1 Pro model.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





