ai-ml

GPT Image Generator

by cloudwerx-dev

Generate and edit images instantly using GPT Image Generator, an advanced AI image generator for creative visual content

Enables direct image generation and editing through OpenAI's gpt-image-1 model with support for text prompts, file paths, and base64 encoded inputs for creative workflows and visual content creation.

github stars

18

Uses OpenAI's gpt-image-1 modelMultiple input formats supportedNPX ready - no installation needed

best for

  • / Content creators needing quick image generation
  • / Developers building AI-powered apps with visuals
  • / Creative workflows requiring automated image editing

capabilities

  • / Generate images from text descriptions
  • / Edit existing images with prompts
  • / Process base64 encoded image inputs
  • / Handle image files from local paths
  • / Create visual content on demand

what it does

Connects to OpenAI's gpt-image-1 model to generate and edit images from text prompts, file paths, or base64 inputs. Provides direct image creation capabilities through the Model Context Protocol.

about

GPT Image Generator is a community-built MCP server published by cloudwerx-dev that provides AI assistants with tools and capabilities via the Model Context Protocol. Generate and edit images instantly using GPT Image Generator, an advanced AI image generator for creative visual content It is categorized under ai ml.

how to install

You can install GPT Image Generator in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

GPT Image Generator is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

GPT Image 1 MCP Logo

@cloudwerxlab/gpt-image-1-mcp

npm version npm downloads license node version Website

A Model Context Protocol (MCP) server for generating and editing images using the OpenAI gpt-image-1 model.

OpenAI GPT-Image-1 MCP Compatible

## 🚀 Quick Start
NPX Ready

Run this MCP server directly using NPX without installing it. View on npm.

```bash npx -y @cloudwerxlab/gpt-image-1-mcp ```

The -y flag automatically answers "yes" to any prompts that might appear during the installation process.

### 📋 Prerequisites
Node.js v14+

Node.js (v14 or higher)

OpenAI API Key

OpenAI API key with access to gpt-image-1

### 🔑 Environment Variables
Variable Required Description
OPENAI_API_KEY ✅ Yes Your OpenAI API key with access to the gpt-image-1 model
GPT_IMAGE_OUTPUT_DIR ❌ No Custom directory for saving generated images (defaults to user's Pictures folder under gpt-image-1 subfolder)
### 💻 Example Usage with NPX
Operating System Command Line Example
Linux/macOS ```bash # Set your OpenAI API key export OPENAI_API_KEY=sk-your-openai-api-key # Optional: Set custom output directory export GPT_IMAGE_OUTPUT_DIR=/home/username/Pictures/ai-generated-images # Run the server with NPX npx -y @cloudwerxlab/gpt-image-1-mcp ```
Windows (PowerShell) ```powershell # Set your OpenAI API key $env:OPENAI_API_KEY = "sk-your-openai-api-key" # Optional: Set custom output directory $env:GPT_IMAGE_OUTPUT_DIR = "C:\Users\username\Pictures\ai-generated-images" # Run the server with NPX npx -y @cloudwerxlab/gpt-image-1-mcp ```
Windows (Command Prompt) ```cmd :: Set your OpenAI API key set OPENAI_API_KEY=sk-your-openai-api-key :: Optional: Set custom output directory set GPT_IMAGE_OUTPUT_DIR=C:\Users\username\Pictures\ai-generated-images :: Run the server with NPX npx -y @cloudwerxlab/gpt-image-1-mcp ```
## 🔌 Integration with MCP Clients
VS Code MCP Extension Roo Compatible Cursor Compatible Augment Compatible Windsurf Compatible
### 🛠️ Setting Up in an MCP Client

Step 1: Locate Settings File

  • For Roo: c:\Users\<username>\AppData\Roaming\Code\User\globalStorageooveterinaryinc.roo-cline\settings\mcp_settings.json
  • For VS Code MCP Extension: Check your extension documentation for the settings file location
  • For Cursor: ~/.config/cursor/mcp_settings.json (Linux/macOS) or %APPDATA%\Cursor\mcp_settings.json (Windows)
  • For Augment: ~/.config/augment/mcp_settings.json (Linux/macOS) or %APPDATA%\Augment\mcp_settings.json (Windows)
  • For Windsurf: ~/.config/windsurf/mcp_settings.json (Linux/macOS) or %APPDATA%\Windsurf\mcp_settings.json (Windows)

Step 2: Add Configuration

Add the following configuration to the mcpServers object:

```json { "mcpServers": { "gpt-image-1": { "command": "npx", "args": [ "-y", "@cloudwerxlab/gpt-image-1-mcp" ], "env": { "OPENAI_API_KEY": "PASTE YOUR OPEN-AI KEY HERE", "GPT_IMAGE_OUTPUT_DIR": "OPTIONAL: PATH TO SAVE GENERATED IMAGES" } } } } ``` #### Example Configurations for Different Operating Systems
Operating System Example Configuration
Windows ```json { "mcpServers": { "gpt-image-1": { "command": "npx", "args": ["-y", "@cloudwerxlab/gpt-image-1-mcp"], "env": { "OPENAI_API_KEY": "sk-your-openai-api-key", "GPT_IMAGE_OUTPUT_DIR": "C:\Users\username\Pictures\ai-generated-images" } } } } ```
Linux/macOS ```json { "mcpServers": { "gpt-image-1": { "command": "npx", "args": ["-y", "@cloudwerxlab/gpt-image-1-mcp"], "env": { "OPENAI_API_KEY": "sk-your-openai-api-key", "GPT_IMAGE_OUTPUT_DIR": "/home/username/Pictures/ai-generated-images" } } } } ```
> **Note**: For Windows paths, use double backslashes (`\`) to escape the backslash character in JSON. For Linux/macOS, use forward slashes (`/`). ## ✨ Features

🎨 Core Tools

  • create_image: Generate new images from text prompts
  • create_image_edit: Edit existing images with text prompts and masks

🚀 Key Benefits

  • Simple integration with MCP clients
  • Full access to OpenAI's gpt-image-1 capabilities
  • Streamlined workflow for AI image generation
### 💡 Enhanced Capabilities

📊 Output & Formatting

  • Beautifully Formatted Output: Responses include emojis and detailed information
  • Automatic Image Saving: All generated images saved to disk for easy access
  • Detailed Token Usage: View token consumption for each request

⚙️ Configuration & Handling

  • Configurable Output Directory: Customize where images are saved
  • File Path Support: Edit images using file paths instead of base64 encoding
  • Comprehensive Error Handling: Detailed error reporting with specific error codes, descriptions, and troubleshooting suggestions
## 🔄 How It Works
🖼️ Image Generation ✏️ Image Editing
  1. Server receives prompt and parameters
  2. Calls OpenAI API using gpt-image-1 model
  3. API returns base64-encoded images
  4. Server saves images to configured directory
  5. Returns formatted response with paths and metadata
  1. Server receives image, prompt, and optional mask
  2. For file paths, reads and prepares files for API
  3. Uses direct curl command for proper MIME handling
  4. API returns base64-encoded edited images
  5. Server saves images to configured directory
  6. Returns formatted response with paths and metadata
### 📁 Output Directory Behavior

📂 Storage Location

  • 🔹 Default Location: User's Pictures folder under gpt-image-1 subfolder (e.g., C:\Users\username\Pictures\gpt-image-1 on Windows)
  • 🔹 Custom Location: Set via GPT_IMAGE_O ---

    FAQ

    What is the GPT Image Generator MCP server?
    GPT Image Generator is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
    How do MCP servers relate to agent skills?
    Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
    How are reviews shown for GPT Image Generator?
    This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
    MCP server reviews

    Ratings

    4.510 reviews
    • Shikha Mishra· Oct 10, 2024

      GPT Image Generator is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.

    • Piyush G· Sep 9, 2024

      We evaluated GPT Image Generator against two servers with overlapping tools; this profile had the clearer scope statement.

    • Chaitanya Patil· Aug 8, 2024

      Useful MCP listing: GPT Image Generator is the kind of server we cite when onboarding engineers to host + tool permissions.

    • Sakshi Patil· Jul 7, 2024

      GPT Image Generator reduced integration guesswork — categories and install configs on the listing matched the upstream repo.

    • Ganesh Mohane· Jun 6, 2024

      I recommend GPT Image Generator for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.

    • Oshnikdeep· May 5, 2024

      Strong directory entry: GPT Image Generator surfaces stars and publisher context so we could sanity-check maintenance before adopting.

    • Dhruvi Jain· Apr 4, 2024

      GPT Image Generator has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.

    • Rahul Santra· Mar 3, 2024

      According to our notes, GPT Image Generator benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.

    • Pratham Ware· Feb 2, 2024

      We wired GPT Image Generator into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.

    • Yash Thakker· Jan 1, 2024

      GPT Image Generator is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.