OpenAI Image Generation MCP server

OpenAI Image Generation MCP server

openai-image-gen-mcp•byjerryzhao173985

An MCP server that lets AI assistants like Claude generate and edit images through OpenAI's image generation API.

License: Not specified•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Exposes tools for generating images from text prompts and editing existing images with prompts.
  • •Supports image editing with text prompts and optional masks.
  • •Automatically saves generated images to local storage with an optional upload to Cloudflare ImgBed.
  • •Provides a health check endpoint for verifying server status.

BEST FOR

  • •Generating images in Claude from natural-language prompts.
  • •Editing existing images through text prompts from an MCP-capable assistant.
  • •Saving generated images locally or publishing them via Cloudflare ImgBed.

ABOUT OPENAI-IMAGE-GEN-MCP

OpenAI Image Generation MCP server is cataloged as an MCP server attributed to jerryzhao173985. An MCP server that lets AI assistants like Claude generate and edit images through OpenAI's image generation API. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OpenAI Image Generation MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does this MCP server provide?

It provides oai_generate_image for text-to-image generation, oai_edit_image for editing images, and health_check for verifying server health.

Can generated images be uploaded to Cloudflare ImgBed?

Yes, generated images are saved locally and can optionally be uploaded to Cloudflare ImgBed.

Upstream README

View this exact version on GitHub

README.md · 6cec6d6e252c · Fetched 2026-11-13 11:50:55 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

OpenAI Image Generation MCP

A Model Context Protocol (MCP) server for OpenAI image generation API. This MCP enables AI assistants like Claude to generate and edit images using OpenAI's GPT-image-1 model.

Table of Contents

Features

  • Generate images using OpenAI's image generation models
  • Edit existing images with text prompts and optional masks
  • Automatically save generated images to local storage
  • Optionally upload generated images to Cloudflare ImgBed
  • Health check endpoint to verify server status
  • Multiple ways to provide API key (env var, command line, direct)

Installation

  1. Clone the repository and install dependencies:
git clone https://github.com/yourusername/openai-image-gen-mcp.git
cd openai-image-gen-mcp
npm install
  1. Build the TypeScript project:
npm run build

Quick Start

The easiest way to start the full-featured MCP server:

./run-with-key.sh

This script has the API key embedded and starts the MCP server with all features.

2. Using Direct API Key (For Testing)

node hardcoded-key.js

This is a simplified version with the API key directly embedded in the code.

3. Using Environment Variables

export OPENAI_API_KEY=your-api-key
./start.sh

Configuration

Claude MCP Configuration

To connect Claude to this MCP, use this configuration file:

{
  "mcpServers": {
    "openai-image-gen": {
      "command": "node",
      "args": ["/Users/jerry/openai-image-gen-mcp/build/index.js"]
    }
  }
}

⚠️ IMPORTANT: Use the full-featured compiled version (build/index.js) for production. The simplified versions are for testing and education only.

Available Tools

The MCP provides these tools to Claude:

  1. oai_generate_image - Generate images from text prompts
  2. oai_edit_image - Edit existing images with text prompts
  3. health_check - Verify the server's health status

Example usage in Claude:

Generate an image of a sunset over mountains with a lake in the foreground.

Claude will use the appropriate MCP tool to create the image.

Detailed Documentation

For more detailed information, please see:

  • Architecture - System design and components
  • Pipeline - Development and request processing pipeline
  • Guidelines - Best practices and usage guidelines
  • Explanation - Detailed explanation of the code and APIs

Directory Structure

openai-image-gen-mcp/
├── build/              # Compiled JavaScript code
├── docs/               # Documentation files
├── output/             # Generated images
├── src/                # TypeScript source code
│   ├── config.js       # Configuration management
│   └── index.ts        # Main MCP server implementation
├── *.sh                # Helper scripts
├── *.js                # Simplified versions and utilities
└── *.json              # Configuration files

Troubleshooting

If you encounter problems:

  1. Check that your API key is valid and properly formatted
  2. Ensure the output directory exists and is writable
  3. Run the health check to verify server status
  4. Check logs for detailed error information
  5. Try the simplified version to isolate issues

For more help, see the Troubleshooting section in the guidelines.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OpenAI Image Generation MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openai-image-gen-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design