MCP OpenAI Image Generation Server
@spartanz51
About MCP OpenAI Image Generation Server
MCP server for OpenAI Image Generation & Editing — text-to-image, image-to-image (with mask), no extra plugins.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"image-generator-gpt-image-15": {
"command": "npx imagegen-mcp --models gpt-image-1",
"env": {
"OPENAI_API_KEY": "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"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP OpenAI Image Generation Server?
This project provides a server implementation based on the Model Context Protocol (MCP) that acts as a wrapper around OpenAI's Image Generation and Editing APIs. It exposes image generation and editing capabilities as MCP tools, enabling integration with MCP-compatible clients. The server is intended for developers who want to use OpenAI's image models through the MCP standard.
How to use MCP OpenAI Image Generation Server?
The server can be run directly via npx imagegen-mcp [options]. It requires Node.js v18 or later and an OpenAI API key set in the OPENAI_API_KEY environment variable. After cloning the repository, install dependencies with npm install, build with npm run build, and run with node dist/index.js [options]. The server uses the StdioServerTransport to communicate via standard input/output.
Key features of MCP OpenAI Image Generation Server
- Exposes OpenAI image generation through MCP tools
- Supports text-to-image generation with multiple models
- Supports image-to-image editing with optional masks
- Configurable via environment variables and command-line arguments
- Handles parameters like size, style, quality, and format
- Saves generated images to temporary files and returns paths
Use cases of MCP OpenAI Image Generation Server
- Generating images from text prompts directly in MCP-compatible editors
- Editing existing images by providing a prompt and optional mask
- Integrating AI image creation into development workflows and IDEs
FAQ from MCP OpenAI Image Generation Server
What are the prerequisites to use this server?
Node.js v18 or later, npm or yarn, and a valid OpenAI API key with access to the selected image generation models.
How does the server communicate with clients?
The server uses the standard MCP StdioServerTransport, communicating via standard input and output streams.
Which models are supported for image generation?
The server supports DALL-E 2, DALL-E 3, and gpt-image-1 (if available/enabled) for text-to-image. Image-to-image editing supports DALL-E 2 and gpt-image-1.
Are there any model-specific limitations?
DALL-E 3 only supports generating a single image per request (n=1). The style parameter (vivid/natural) is only applicable to DALL-E 3. Models are selected via the --models command-line argument, and the API key must have access to the chosen models.
How are generated images returned to the client?
Each generated image is saved to a temporary file, and the server returns the file path along with the base64 data of the image.
More AI & Agents MCP servers
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Sequential Thinking Multi-Agent System (MAS)
FradSerAn advanced sequential thinking process using a Multi-Agent System (MAS) built with the Agno framework and served via MCP.
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
21st.dev Magic AI Agent
21st-devIt's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic
Comments