MCP OpenAI Image Generator
Provides tools for generating images from text prompts using OpenAI's gpt-image-2 model, as well as listing and loading previously generated images.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP OpenAI Image Generator
MCP server that wraps OpenAI's gpt-image-2 image generation API.
Tools
Tool | Description |
| Generate images from text prompts using gpt-image-2 |
| List all previously generated images in the output folder |
| Load and display a saved image inline |
Related MCP server: imagegen-mcp
Setup
1. Build
npm install
npm run build2. Configuration
Environment variables:
Variable | Default | Description |
| (required) | Your OpenAI API key |
| (optional) | Custom base URL (e.g. a self-hosted proxy); defaults to official OpenAI endpoint |
|
| Where to save generated images |
3. Register with Claude Desktop / Kiro CLI
Add to your MCP config (e.g. ~/.claude/mcp.json or Claude Desktop claude_desktop_config.json):
{
"mcpServers": {
"openai-image": {
"command": "node",
"args": ["D:/project/fully_async/mcp-openai-image/dist/index.js"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key",
"IMAGE_OUTPUT_DIR": "D:/project/fully_async/mcp-openai-image/generated_images"
}
}
}
}Usage Examples
Architecture diagram
generate_image(
prompt = "AWS microservices architecture diagram: React SPA → API Gateway → 3 Lambda functions (auth, orders, products) → DynamoDB + S3. Clean white background, blue/orange color scheme, connected with arrows, professional tech style.",
size = "1536x1024",
quality = "high"
)System design
generate_image(
prompt = "System design diagram for a real-time chat application: WebSocket servers, Redis pub/sub, message queue (Kafka), PostgreSQL, CDN for media. Dark background, neon connectors, modern style.",
size = "1536x1024",
quality = "medium"
)Supported Parameters
Parameter | Options | Default |
|
|
|
|
|
|
| 1–4 |
|
|
|
|
|
|
|
| any path |
|
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
MCP server for Qwen Image 3 AI image generation
Generate AI images and videos from any compatible MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP tool server that enables generating and editing images through OpenAI's image models, supporting text-to-image generation and advanced image editing (inpainting, outpainting) across various MCP-compatible clients.118MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that wraps OpenAI's image generation and editing APIs, enabling text-to-image and image-to-image operations via tools.230 npm37ISC
- FlicenseNot gradedqualityDmaintenanceAn MCP server for AI-powered image processing (generate, edit, vary, analyze) supporting OpenAI, Gemini, Ideogram, and custom relay endpoints.-
- AlicenseNot gradedqualityDmaintenanceA minimal MCP server for generating images via OpenAI's GPT image model, supporting inline display or file output.MIT