DALL-E MCP Server
by Garoth
DALL-E MCP Server is a Model Context Protocol server designed for generating and editing images using OpenAI's DALL-E API. It enables users to create images from text prompts and modify existing images.
Last updated: N/A
What is DALL-E MCP Server?
The DALL-E MCP Server is a tool that acts as an intermediary between a client (like Cline) and the OpenAI DALL-E API. It allows users to generate, edit, and create variations of images using text prompts and existing images.
How to use DALL-E MCP Server?
To use the server, first clone the repository, install dependencies, and build the project. Then, configure the server in your Cline MCP settings file, providing your OpenAI API key and save directory. Finally, use the available tools (generate_image, edit_image, create_variation) by sending JSON requests to the server with the appropriate parameters.
Key features of DALL-E MCP Server
Generate images using DALL-E 2 or DALL-E 3
Edit existing images (DALL-E 2 only)
Create variations of existing images (DALL-E 2 only)
Validate OpenAI API key
Use cases of DALL-E MCP Server
Generating images from text descriptions for creative projects
Editing existing images to add or remove elements
Creating variations of images for design exploration
Integrating DALL-E functionality into Cline workflows
FAQ from DALL-E MCP Server
What is an OpenAI API key and how do I get one?
What is an OpenAI API key and how do I get one?
An OpenAI API key is a credential that allows you to access OpenAI's services, including DALL-E. You can obtain an API key from the OpenAI platform website after creating an account.
How do I configure the DALL-E MCP server with Cline?
How do I configure the DALL-E MCP server with Cline?
You need to add the server to your Cline MCP settings file, providing the path to the built index.js file, your OpenAI API key, and a save directory.
What is the saveDir
parameter and why is it important for Cline users?
What is the saveDir
parameter and why is it important for Cline users?
The saveDir
parameter specifies the directory where generated images are saved. For Cline users, setting this to your current workspace directory ensures that Cline can properly locate and display the generated images in your conversation.
Why is the edit_image tool not working as expected?
Why is the edit_image tool not working as expected?
There is a known issue with the DALL-E 2 image edit API where it sometimes ignores the prompt. Consider using the create_variation tool instead, which seems to work more reliably.
How do I run tests for the DALL-E MCP server?
How do I run tests for the DALL-E MCP server?
You can run tests using npm commands like npm test
, npm run test:all
, npm run test:watch
, and npm run test:name
. Note that tests use real API calls and may incur charges on your OpenAI account.