About
A Node.js server that exposes OpenAI's image generation and editing capabilities through the Model Context Protocol, enabling tools like text-to-image and image-to-image in editors such as Cursor.
Capabilities

The Imagegen MCP server bridges the gap between advanced AI image generation services and conversational or coding environments that speak the Model Context Protocol. By wrapping OpenAI’s Image Generation and Editing APIs, it exposes a set of tools— and —that can be invoked directly from an AI assistant or editor. Developers no longer need to build custom integration logic; instead, they can rely on MCP’s standardized request/response schema to trigger image creation or editing workflows with a simple tool call.
At its core, the server solves the problem of seamless multimodal content creation. Many AI assistants today focus on text, but real‑world use cases—design mockups, data visualisation, or creative storytelling—require images. Without a unified interface, each platform would need to re‑implement authentication, parameter handling, and file management for every image model. Imagegen MCP centralises these concerns: it authenticates via an environment‑sourced OpenAI key, validates model names, and normalises parameters such as size, quality, style, and format. The result is a single point of contact that can be plugged into any MCP‑compliant client.
Key capabilities include:
- Model flexibility: Choose from DALL‑E 2, DALL‑E 3, or gpt-image-1 (when available) via command‑line flags or configuration files.
- Dual generation modes: Generate new images from text prompts or edit existing images by providing an image file and a prompt.
- Parameter control: Adjust resolution, aspect ratio, style weight, and output format to match project requirements.
- File handling: Generated or edited images are written to temporary files, and the server returns both a filesystem path and base64 data for immediate use in editors or downstream services.
In practice, this server shines in scenarios where an AI assistant is embedded within a development environment (e.g., Cursor) or a collaborative document editor. A user can simply type in the chat pane, supply a prompt like “a futuristic city skyline at sunset,” and receive an image ready for insertion. Similarly, designers can drag an existing sketch into the tool call, edit it with a new prompt, and instantly preview the updated asset—all without leaving their coding session.
Because the server adheres to MCP’s tool‑call contract, it integrates smoothly into existing AI workflows. Clients can list available tools, invoke them with structured arguments, and receive JSON responses that include image metadata. This composability allows developers to chain tools—e.g., generate an image, pass it through a filtering tool, and then feed the result into another AI model—creating powerful multimodal pipelines with minimal boilerplate.
Overall, Imagegen MCP provides a robust, extensible bridge to OpenAI’s image capabilities, enabling developers and AI assistants alike to enrich text‑centric interactions with high‑quality visual content in a consistent, protocol‑driven manner.
Related Servers
Netdata
Real‑time infrastructure monitoring for every metric, every second.
Awesome MCP Servers
Curated list of production-ready Model Context Protocol servers
JumpServer
Browser‑based, open‑source privileged access management
OpenTofu
Infrastructure as Code for secure, efficient cloud management
FastAPI-MCP
Expose FastAPI endpoints as MCP tools with built‑in auth
Pipedream MCP Server
Event‑driven integration platform for developers
Weekly Views
Server Health
Information
Explore More Servers
MCP-Diagram Server
Generate diagrams from text with Claude
Glue MCP Server
MCP server for AWS Glue Data Catalog
Rhino MCP Server
AI‑powered 3D modeling for Rhino via Model Context Protocol
Shell Command MCP Server
Execute shell commands securely inside a Docker container
Web3 Research MCP
Automated, multi-source cryptocurrency token research engine
Memgraph MCP Server
Connect Memgraph to LLMs via Model Context Protocol