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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 6cec6d6e252c · 采集于 2026-11-13 11:50:55 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

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.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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