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
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
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
Just Prompt - A lightweight MCP server for LLM providers
dislerjust-prompt is an MCP server that provides a unified interface to top LLM providers (OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama)
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
Web Agent Protocol
OTA-Tech-AI🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
Comments