Feedback

OpenAI Image Generation MCP

@jerryzhao173985 Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
jerryzhao173985
Submitted by
Community
Quality
25
Stars
5

About OpenAI Image Generation MCP Server

OpenAI Image Generation MCP that enables server to generate and edit images using OpenAI's gpt-image-1 api modes.

OpenAI Image Generation MCP is a MCP server in the AI & Agents category listed in the AddMCP.net directory, published by jerryzhao173985. Supported transport: stdio. Runtime: node. The repository has 5 GitHub stars. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "openai-image-gen-mcp": {
            "command": "node",
            "args": [
                "hardcoded-key.js"
            ]
        }
    }
}

OpenAI Image Generation MCP config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "openai-image-gen-mcp": {
            "command": "node",
            "args": [
                "hardcoded-key.js"
            ]
        }
    }
}

OpenAI Image Generation MCP tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is OpenAI Image Generation MCP?

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

How to use OpenAI Image Generation MCP?

Clone the repository, install dependencies (npm install), and build the TypeScript project (npm run build). Start the server with the provided run script (./run-with-key.sh), a direct‑key script (node hardcoded-key.js), or by setting the OPENAI_API_KEY environment variable and running ./start.sh. Configure Claude to use the compiled build/index.js via the mcpServers JSON entry.

Key features of OpenAI Image Generation MCP

  • Generate images from text prompts
  • Edit existing images with optional masks
  • Automatically saves generated images to local storage
  • Optionally uploads images to Cloudflare ImgBed
  • Health check endpoint for server status verification
  • Multiple ways to provide the OpenAI API key

Use cases of OpenAI Image Generation MCP

  • AI assistants creating custom images on demand
  • Editing existing images with natural language prompts
  • Embedding image generation into workflows that require local storage or cloud upload
  • Verifying server connectivity through the health check tool

Frequently asked questions

1 What model does OpenAI Image Generation MCP use?

It uses OpenAI’s GPT-image-1 model for both generation and editing.

2 How can I provide the OpenAI API key?

You can set the OPENAI_API_KEY environment variable, pass it via a command‑line script, or embed it directly in a simplified version of the server.

3 Where are generated images saved?

Images are saved to the local output/ directory. Optionally, they can also be uploaded to Cloudflare ImgBed.

4 What tools are available in OpenAI Image Generation MCP?

Three tools: oai_generate_image (generate from text), oai_edit_image (edit with prompts and masks), and health_check (verify server status).

5 How can I troubleshoot issues with OpenAI Image Generation MCP?

Check that your API key is valid, the output directory exists and is writable, run the health check tool, review logs for errors, and try the simplified version to isolate problems.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬