MCP

Generate Images with Azure OpenAI DALL-E 3

MCP server that provides a bridge between Azure OpenAI's DALL-E 3 image generation capabilities and MCP clients, enabling text-to-image creation through the

Works with azure openai

90
Spark score
out of 100
Updated 4 months ago
Version 1.0.0
Models

Add to Favorites

Why it matters

Integrate Azure OpenAI's DALL-E 3 image generation capabilities into your applications via the Model Context Protocol (MCP). This asset bridges your MCP clients with powerful text-to-image creation, allowing for customizable image generation and local storage.

Outcomes

What it gets done

01

Connect to Azure OpenAI DALL-E 3 via MCP

02

Generate images from text prompts with customizable size, quality, and style

03

Download generated images to local storage

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-azure-openai-dall-e-3-mcp-server | bash

Capabilities

Tools your agent gets

generate_image

Generates images using Azure OpenAI DALL-E 3 with customizable size, quality, and style parameters

download_image

Downloads generated images to local storage with a specified filename and directory path

Overview

Azure OpenAI DALL-E 3 MCP Server

What it does

an MCP server that bridges Azure OpenAI DALL-E 3 image generation with MCP clients

How it connects

you need to enable text-to-image generation through Azure OpenAI DALL-E 3 in an MCP environment

Source README

An MCP server that provides a bridge between Azure OpenAI's DALL-E 3 image generation capabilities and MCP clients, enabling text-to-image creation through the Model Context Protocol.

Installation

From Source Code

npm install
npm run build

Configuration

MCP Client

{
  "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>"
      }
    }
  }
}

Available Tools

Tool Description
generate_image Generates images using Azure OpenAI DALL-E 3 with customizable size, quality, and style parameters
download_image Downloads generated images to local storage with a specified filename and directory path

Features

  • Image generation using Azure OpenAI DALL-E 3
  • Customizable image sizes (1024x1024, 1792x1024, 1024x1792)
  • Quality options (standard, hd)
  • Style options (vivid, natural)
  • Download generated images to local storage

Environment Variables

Required

  • AZURE_OPENAI_ENDPOINT - The endpoint URL for your Azure OpenAI resource
  • AZURE_OPENAI_API_KEY - The API key for your Azure OpenAI resource

Optional

  • AZURE_OPENAI_DEPLOYMENT_NAME - The name of your DALL-E 3 deployment in your Azure OpenAI resource
  • OPENAI_API_VERSION - The API version to use

Notes

The default deployment name is 'dalle3' and the default API version is '2024-02-15-preview'. The server requires building from source code using npm.

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.