- Home
- MCP servers
- imagegen
imagegen
- javascript
1
GitHub Stars
javascript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"chrisurf-imagegen-mcp-d3": {
"command": "npx",
"args": [
"imagegen-mcp-d3"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
}
}
}
}You run a dedicated MCP server that exposes DALL-E 3 image generation through the Model Context Protocol. This lets large language models request high-quality images by describing what they want, while you control the generation options, output location, and error handling.
How to use
You connect to the server from any MCP client by using the standard MCP flow. Create a request to generate an image by providing a prompt and destination path for the output file. You can adjust size, quality, and style to tailor the result. The server returns detailed feedback about the generated image, including the final file path and image specifications.
How to install
Prerequisites you need before installing: Node.js version 18.0.0 or higher and a valid OpenAI API key with DALL-E 3 access.
Option A: Install with NPX (recommended) and run directly.
npx imagegen-mcp-d3
Option B: Install globally with NPM and run.
npm install -g imagegen-mcp-d3
Option C: Run from source with build steps.
git clone https://github.com/chrisurf/imagegen-mcp-d3.git
cd imagegen-mcp-d3
npm install
npm run build
npm start
Configuration and environment setup
Set your OpenAI API key as an environment variable so the server can authenticate with OpenAI for DALL-E 3 requests.
export OPENAI_API_KEY="your-openai-api-key-here"
Alternatively, create a .env file in your project root with the following line.
OPENAI_API_KEY=your-openai-api-key-here
Notes on running with MCP clients
The server implements a standard MCP interface. You can connect using a client that speaks MCP and use the available tool to generate images.
The main image generation tool is generate_image, which you invoke with a prompt, an output path, and optional rendering parameters.
Available tools
generate_image
Generates an image using DALL-E 3 with a prompt, saves it to a specified path, and returns details about the generated image including prompts, URL, and file information.