MCP server for OpenAI DALL-E image generation
## DALL-E MCP Server: AI Image Generation The **DALL-E MCP Server** integrates OpenAI's DALL-E image generation into Google Antigravity. This integration enables developers to generate, edit, and create variations of images using natural language descriptions directly within their workflow. ### Why DALL-E MCP? DALL-E brings creative AI to development: - **Text to Image**: Generate images from descriptions - **Image Editing**: Modify specific areas of images - **Variations**: Create alternatives of existing images - **High Quality**: Multiple resolution options - **Antigravity Native**: AI-assisted visual development ### Key Features #### 1. Image Generation ```python from openai import OpenAI client = OpenAI() response = client.images.generate( model="dall-e-3", prompt="A modern tech dashboard with dark theme, glassmorphism effects", size="1792x1024", quality="hd", n=1 ) image_url = response.data[0].url print(f"Generated: {image_url}") ``` #### 2. Image Editing ```python # Edit specific regions of an image response = client.images.edit( model="dall-e-2", image=open("original.png", "rb"), mask=open("mask.png", "rb"), prompt="Replace with a mountain landscape", n=1, size="1024x1024" ) ``` #### 3. Image Variations ```python # Create variations of existing images response = client.images.create_variation( model="dall-e-2", image=open("logo.png", "rb"), n=4, size="1024x1024" ) for i, variant in enumerate(response.data): print(f"Variation {i+1}: {variant.url}") ``` ### Configuration ```json { "mcpServers": { "dalle": { "command": "npx", "args": ["-y", "@anthropic/mcp-dalle"], "env": { "OPENAI_API_KEY": "your-openai-key" } } } } ``` ### Use Cases **Mockup Generation**: Quickly create visual mockups for UI/UX discussions. **Asset Creation**: Generate placeholder images and icons for development. **Visual Prototyping**: Illustrate concepts and features for stakeholder presentations. The DALL-E MCP Server brings AI image generation to Antigravity development.
{
"mcpServers": {
"dalle": {
"mcpServers": {
"dalle": {
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
},
"args": [
"-y",
"dalle-mcp"
],
"command": "npx"
}
}
}
}
}