by jacwu
mcp-server-aoai-dalle3 is an MCP server that integrates with Azure OpenAI's DALL-E 3 service. It allows MCP clients to generate images from text prompts with customizable parameters.
This project is an MCP (Model Context Protocol) server that integrates with Azure OpenAI's DALL-E 3 service. It allows MCP clients to leverage DALL-E 3's image generation capabilities through a standardized protocol.
To use this server, you need to set up several environment variables: AZURE_OPENAI_ENDPOINT
, AZURE_OPENAI_API_KEY
, and optionally AZURE_OPENAI_DEPLOYMENT_NAME
and OPENAI_API_VERSION
. After setting these, you can build the server using npm install
and npm run build
. Finally, configure your MCP client to point to the built server, providing the necessary environment variables.
size
, quality
(standard/hd), and style
(vivid/natural).download_image
tool to save generated images to local storage.Q: What are the required environment variables?
A: AZURE_OPENAI_ENDPOINT
and AZURE_OPENAI_API_KEY
are mandatory. AZURE_OPENAI_DEPLOYMENT_NAME
and OPENAI_API_VERSION
are optional.
Q: What image sizes are supported?
A: 1024x1024
, 1792x1024
, and 1024x1792
.
Q: Can I choose the quality and style of the generated images?
A: Yes, you can select standard
or hd
quality, and vivid
or natural
style.
An Azure OpenAI DALL-E 3 integration server implementing the Model Context Protocol (MCP). This server provides a bridge between Azure OpenAI's DALL-E 3 image generation capability and MCP clients.
generate_image
Generates images using AOAI DALL-E 3 with the following parameters:
prompt
(required): Text description of the image to generatesize
(optional): Image dimensions (default: 1024x1024). Available options:1024x1024
1792x1024
1024x1792
quality
(optional): Image quality (default: hd). Available options:
standard
hd
style
(optional): Image style (default: natural). Available options:
vivid
natural
download_image
Downloads generated images to local storage:
imageUrl
(required): URL of the image to downloadlocalPath
(required): Local directory path for savingfileName
(required): Name for the downloaded fileThe following environment variables must be set to configure the server:
AZURE_OPENAI_ENDPOINT
: The endpoint URL for your Azure OpenAI resource. You can find this in the Azure portal under your OpenAI resource's "Keys and Endpoint" section.AZURE_OPENAI_API_KEY
: The API key for your Azure OpenAI resource. This is also available in the "Keys and Endpoint" section.AZURE_OPENAI_DEPLOYMENT_NAME
(optional, default: "dalle3"): The name of the DALL-E 3 deployment in your Azure OpenAI resource.OPENAI_API_VERSION
(optional, default: "2024-02-15-preview"): The API version to use. Ensure this matches the version supported by your Azure OpenAI resource.npm install
npm run build
{
"mcpServers": {
"dalle3": {
"command": "node",
"args": [
"path/to/mcp-server-aoai-dalle3/build/index.js"
],
"env": {
"AZURE_OPENAI_ENDPOINT": "<endpoint>",
"AZURE_OPENAI_API_KEY": "<key>",
"AZURE_OPENAI_DEPLOYMENT_NAME": "<deployment>"
}
}
}
}
Reviews feature coming soon
Stay tuned for community discussions and feedback