DALL-E MCP Server
Allows generating images, editing images, and creating image variations using OpenAI's DALL-E models.
Click on "Deploy 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., "@DALL-E MCP ServerGenerate a photorealistic image of a fluffy Samoyed playing in snow."
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.
DALL-E MCP Server
A Model Context Protocol (MCP) server that exposes OpenAI DALL-E image generation capabilities as MCP tools.
Features
generate_image— Generate images from text prompts using DALL-E 3 or DALL-E 2edit_image— Edit existing images with a text prompt and optional mask (DALL-E 2)create_image_variation— Create variations of an existing image (DALL-E 2)
Related MCP server: GPT Image MCP Server
Prerequisites
Node.js >= 18
An OpenAI API key with access to DALL-E
Installation
npm install
npm run buildConfiguration
Copy .env.example to .env and set your OpenAI API key:
cp .env.example .env
# Edit .env and set OPENAI_API_KEYUsage
Run directly
OPENAI_API_KEY=sk-... npm startConfigure with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"dall-e": {
"command": "node",
"args": ["/path/to/dall-e-mcp/dist/index.js"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}Configure with Claude Code
{
"mcpServers": {
"dall-e": {
"command": "node",
"args": ["/path/to/dall-e-mcp/dist/index.js"],
"env": {
"OPENAI_API_KEY": "sk-..."
}
}
}
}Tools
generate_image
Generate an image from a text prompt.
Parameter | Type | Required | Description |
| string | Yes | Text description of the desired image |
|
| No | Model to use (default: |
| string | No | Image dimensions (default: |
|
| No | Quality — DALL-E 3 only (default: |
|
| No | Style — DALL-E 3 only (default: |
| number | No | Number of images, DALL-E 2 only (default: |
DALL-E 3 sizes: 1024x1024, 1792x1024, 1024x1792
DALL-E 2 sizes: 256x256, 512x512, 1024x1024
edit_image
Edit an existing image using a text prompt (DALL-E 2 only).
Parameter | Type | Required | Description |
| string | Yes | URL of the PNG to edit (max 4MB, must be square) |
| string | No | URL of the mask PNG (transparent = edit area) |
| string | Yes | Description of the desired edit |
| string | No | Output size (default: |
| number | No | Number of edited images (default: |
create_image_variation
Create variations of an image (DALL-E 2 only).
Parameter | Type | Required | Description |
| string | Yes | URL of the PNG to vary (max 4MB, must be square) |
| string | No | Output size (default: |
| number | No | Number of variations (default: |
Project Structure
dall-e-mcp/
├── src/
│ ├── index.ts # MCP server entry point
│ └── tools/
│ ├── generate-image.ts # generate_image tool
│ ├── edit-image.ts # edit_image tool
│ └── create-variation.ts # create_image_variation tool
├── docs/
│ └── issues/ # Issue & ticket documentation
├── dist/ # Compiled output (after build)
├── package.json
├── tsconfig.json
└── .env.exampleIssues & Tickets
See docs/issues/ for tracked issues and feature requests.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Midjourney AI image generation and editing
MCP server for NanoBanana AI image generation and editing
MCP server for Qwen Image 3 AI image generation
MCP server for Flux AI image generation
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server that allows users to generate, edit, and create variations of images through OpenAI's DALL-E API, supporting both DALL-E 2 and DALL-E 3 models.49-
- FlicenseNot gradedqualityCmaintenanceAn 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.69-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables image generation and editing using OpenAI's DALL-E models with support for text prompts, inpainting, and outpainting. It includes advanced features like automatic aspect ratio mapping and intelligent file management to handle large image payloads.62 npm1MIT
- FlicenseAqualityCmaintenanceAn 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.4-