Azure OpenAI DALL-E 3 MCP Server

Azure OpenAI DALL-E 3 MCP Server

An MCP server for Azure OpenAI DALL-E 3 service to generate image from text.

3
Stars
1
Forks
0
Releases

Overview

An MCP server that integrates Azure OpenAI's DALL-E 3 image generation capability and exposes MCP-compatible tools for image creation and retrieval. It provides two operations: generate_image to produce images based on a text prompt and optional parameters (size, quality, style) with defaults (size: 1024x1024, quality: hd, style: natural) and allowed options (1024x1024, 1792x1024, 1024x1792; standard/hd; vivid/natural); and download_image to save generated images locally by providing imageUrl, localPath, and fileName. The server is configured via environment variables: AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_API_KEY for the Azure OpenAI resource, AZURE_OPENAI_DEPLOYMENT_NAME (optional, default: dalle3) to select the DALL-E 3 deployment, and OPENAI_API_VERSION (optional, default: 2024-02-15-preview). Build and run are performed with npm install and npm run build. An MCP client configuration example shows running the server with Node and pointing to build/index.js, along with the required environment variables. This README describes installation, configuration, and interaction with the server through MCP workflows using the generate_image and download_image tools.

Details

Owner
jacwu
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Generate image

Generates images using AOAI DALL-E 3 with a required prompt and optional parameters: size (1024x1024, 1792x1024, 1024x1792), quality (standard, hd), and style (vivid, natural), with sensible defaults.

Download image

Downloads generated images to local storage using imageUrl, localPath, and fileName as inputs.

Azure OpenAI integration

Connects to an Azure OpenAI resource via AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_API_KEY to access the DALL-E 3 deployment.

Configurable deployment and API version

Supports optional AZURE_OPENAI_DEPLOYMENT_NAME (default: dalle3) and OPENAI_API_VERSION (default: 2024-02-15-preview).

Environment variable driven configuration

Server behavior is configured entirely through environment variables for endpoint, key, deployment, and API version.

Build and run instructions

Provided steps to install dependencies (npm install) and build the server (npm run build) for deployment.

MCP client example

Includes a sample MCP client configuration showing how to run the server (node) with build/index.js and required environment variables.

Audience

DevelopersIntegrate DALL-E 3 image generation into MCP-enabled applications using the generate_image tool.
AI EngineersOrchestrate image generation tasks and manage image retrieval within MCP workflows via generate_image and download_image.
DevOps / Platform EngineersDeploy and operate the MCP server using environment variables and MCP client configuration for scalable image generation services.

Tags

Azure OpenAIDALL-E 3MCPimage generationAOAIAzure deploymentimage downloadOpenAI