MCP ExplorerExplorer

Mcp Server Aoai Dalle3

@jacwuon 10 months ago
1 MIT
FreeCommunity
AI Systems
An image generation server that integrates Azure OpenAI DALL-E 3 with MCP.

Overview

What is Mcp Server Aoai Dalle3

mcp-server-aoai-dalle3 is an integration server that connects Azure OpenAI’s DALL-E 3 image generation capabilities with clients using the Model Context Protocol (MCP).

Use cases

Use cases include creating illustrations for articles, generating marketing visuals, producing concept art for games, and assisting in design processes by visualizing ideas.

How to use

To use mcp-server-aoai-dalle3, set the required environment variables for Azure OpenAI, install dependencies using ‘npm install’, build the server with ‘npm run build’, and configure your MCP client to connect to the server.

Key features

Key features include image generation with customizable parameters such as prompt, size, quality, and style, as well as the ability to download generated images to local storage.

Where to use

mcp-server-aoai-dalle3 can be used in various fields such as digital art creation, marketing, content generation, and any application requiring image generation from textual descriptions.

Content

Azure OpenAI DALL-E 3 MCP Server

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.

Available Tools

generate_image

Generates images using AOAI DALL-E 3 with the following parameters:

  • prompt (required): Text description of the image to generate
    • size (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 download
  • localPath (required): Local directory path for saving
  • fileName (required): Name for the downloaded file

Environment Variables

The 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.

Build

  1. Install dependencies:
npm install
  1. Build the server:
npm run build

MCP Client Configuration

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers