what is Azure Dalle MCP Server?
Azure Dalle MCP Server is an integration server that connects Azure OpenAI's DALL-E 3 image generation capabilities with clients that support the Model Context Protocol (MCP).
how to use Azure Dalle MCP Server?
To use the server, set up your environment with the required prerequisites, install dependencies, and configure it for use with MCP-compatible clients. You can generate images by sending a prompt and optional parameters to the server.
key features of Azure Dalle MCP Server?
- Generates images using DALL-E 3 based on text prompts.
- Allows downloading of generated images to local storage.
- Provides a debugging tool for monitoring server communication.
use cases of Azure Dalle MCP Server?
- Creating unique images for marketing materials.
- Generating artwork based on user-defined prompts.
- Assisting developers in integrating DALL-E 3 capabilities into their applications.
FAQ from Azure Dalle MCP Server?
- What are the prerequisites for using the server?
You need Node.js, an Azure OpenAI subscription with DALL-E 3 access, and specific environment variables set up.
- How do I generate an image?
Use the
generate_image
tool with a text prompt and optional parameters for size and quality.
- Can I download the generated images?
Yes, you can download images using the
download_image
tool by providing the image URL and local path.
Azure Dalle MCP Server
An Azure OpenAI DALL-E integration server implementing the Model Context Protocol (MCP). This server provides a bridge between Azure OpenAI's DALL-E 3 image generation capabilities and MCP-compatible clients.
Available Tools
generate_image
Generates images using DALL-E 3 with the following parameters:
prompt
(required): Text description of the image to generatesize
(optional): Image dimensions (default: 1024x1024)quality
(optional): Image quality (default: hd)style
(optional): Image style (default: natural)
download_image
Downloads generated images to local storage:
imageUrl
: URL of the image to downloadlocalPath
: Local directory path for savingfileName
: Name for the downloaded file
Setup
Prerequisites
- Node.js
- Azure OpenAI subscription with DALL-E 3 access
- Environment variables:
- AZURE_OPENAI_ENDPOINT
- AZURE_OPENAI_API_KEY
- AZURE_OPENAI_DEPLOYMENT_NAME (defaults to "dalle3")
- OPENAI_API_VERSION (defaults to "2024-02-15-preview")
Installation
- Install dependencies:
npm install
- Build the server:
npm run build
- For development with auto-rebuild:
npm run watch
Configuration
MCP Client Configuration
To use with MCP-compatible clients, add the server configuration:
On MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration content:
{
"mcpServers": {
"Azure Dalle MCP Server": {
"command": "/path/to/Azure Dalle MCP Server/build/index.js"
}
}
}
Debugging
For debugging support, the MCP Inspector tool is included:
npm run inspector
This will provide a web interface for monitoring server communication and debugging tool executions.