MCP OpenAI Image Generation Server
@spartanz51
关于 MCP OpenAI Image Generation Server
MCP server for OpenAI Image Generation & Editing — text-to-image, image-to-image (with mask), no extra plugins.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"image-generator-gpt-image-15": {
"command": "npx imagegen-mcp --models gpt-image-1",
"env": {
"OPENAI_API_KEY": "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"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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.
AI 与智能体 分类下的更多 MCP 服务器
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
Gemini MCP Server
aliargunMCP server implementation for Google's Gemini API
Model Context Protocol Server for Home Assistant
tevonsbA MCP server for Home Assistant
MCP-NixOS - Because Your AI Assistant Shouldn't Hallucinate About Packages
utensilsMCP-NixOS - Model Context Protocol Server for NixOS resources
Web Agent Protocol
OTA-Tech-AI🌐Web Agent Protocol (WAP) - Record and replay user interactions in the browser with MCP support
评论