DALL-E MCP Server
Allows generating images, editing images, and creating image variations using OpenAI's DALL-E models.
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., "@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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/ichbinmartin/dall-e-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server