Openai Gpt Image MCP logo

Openai Gpt Image MCP

by SureScaleAI

Generates and edits images through OpenAI APIs, with file or base64 output for MCP clients.

Install Openai Gpt Image MCP

Run the project’s own setup commands, in order.

Setup steps from the project

SureScaleAI/openai-gpt-image-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/SureScaleAI/openai-gpt-image-mcp.git
    
  2. 2. Install
    cd openai-gpt-image-mcp
    
  3. 3. Install
    yarn install
    
  4. 4. Install
    yarn build
    
  5. 5. Start the server
    node dist/index.js
    

Overview

SureScaleAI/openai-gpt-image-mcp MCP server exposes OpenAI image generation and editing through MCP tools. It provides prompt-based creation with options such as size, quality, background, and multiple outputs, plus image editing with optional masks. Results can be returned as base64 or written to disk, with automatic file output for responses exceeding the 1MB MCP client limit. Use it when an MCP-compatible client needs OpenAI-powered image creation, inpainting, outpainting, or compositing.

Use cases

  • Generate images from prompts in an MCP client
  • Edit images with prompt-controlled masks
  • Create multiple image variations in one request
  • Save large generated images to disk

Key features

  • OpenAI image generation
  • Prompt-based image editing
  • Mask support for edits
  • Up to 10 generated images per request
  • File and base64 input/output
  • Automatic file output for large responses

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/24 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars120Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Openai Gpt Image MCP works

What SureScaleAI/openai-gpt-image-mcp MCP server does

SureScaleAI/openai-gpt-image-mcp MCP server connects MCP-compatible clients to OpenAI image APIs. It supports image generation from text prompts and image editing tasks such as inpainting, outpainting, and compositing. The repository describes support for OpenAI GPT-4o and gpt-image-1 image workflows.

The server exposes two tools:

  • create-image generates one or more images from a prompt and accepts options including size, quality, and background.
  • edit-image changes or extends an existing image using a prompt. An optional mask controls where edits are applied.

Input images and masks can be supplied as file paths or base64 data. Generated results may be returned as base64 data or saved to disk.

How it works

The project is a TypeScript Node.js application. After building the source, an MCP client starts dist/index.js as a local process and passes credentials through its environment. The server then calls the configured OpenAI image API and returns the resulting image data or output paths through MCP.

create-image can request up to 10 images in one operation by setting n. For larger results, the server avoids returning an oversized tool response. If the combined image data exceeds the 1MB response limit used by clients such as Claude Desktop, it automatically writes the images to disk and returns their paths instead.

When no output path is supplied, these larger results are saved under /tmp, unless MCP_HF_WORK_DIR changes the working directory. File paths used for inputs must be absolute, and output directories must be writable.

Setup and configuration

Install and build the repository with the documented Yarn workflow:

sh
git clone https://github.com/SureScaleAI/openai-gpt-image-mcp.git
cd openai-gpt-image-mcp
yarn install
yarn build

Configure the MCP client to run Node with the built dist/index.js file. The standard setup uses OPENAI_API_KEY. An environment file can be passed with the --env-file argument.

SureScaleAI/openai-gpt-image-mcp MCP server requires an OpenAI organization with image API access. The documentation notes that verified organizations may need 15–20 minutes before image access becomes active.

Tools and capabilities

SureScaleAI/openai-gpt-image-mcp MCP server is suited to clients including Claude Desktop, Cursor, VSCode, and Windsurf. Its documented capabilities are:

  • Text-to-image generation
  • Prompt-driven image editing
  • Mask-based edit control
  • Multiple image generation, up to 10 per request
  • File-path or base64 image input
  • File or base64 result output
  • Automatic disk output for large responses

Limitations and notes

Base64 responses can exceed the 1MB limit imposed by MCP clients. File output is preferable for high-resolution or multi-image requests. Check image extensions and formats when file-type errors occur, and use absolute paths on Unix-like systems or Windows drive-letter paths on Windows. The project is released under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openai Gpt Image MCP

Clone the repository, run `yarn install`, and then run `yarn build`. Start the built server with Node using `dist/index.js`.

Yes.

The standard configuration uses `OPENAI_API_KEY`. Azure deployments use `AZURE_OPENAI_API_KEY`, `AZURE_OPENAI_ENDPOINT`, and `OPENAI_API_VERSION`.

When the total result exceeds the 1MB MCP response limit, it saves the images to disk and returns file paths instead of base64 data.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenai Gpt Image MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/surescaleai-openai-gpt-image-mcp?style=directory)](https://allmcps.com/mcp/surescaleai-openai-gpt-image-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/surescaleai-openai-gpt-image-mcp"><img src="https://allmcps.com/api/badge/surescaleai-openai-gpt-image-mcp?style=directory" alt="Openai Gpt Image MCP on AllMCPs" /></a>