Openai Gpt Image MCP Server

A Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs.

Local serverstdioTypeScript

What is the Openai Gpt Image MCP MCP server?

Connect Openai Gpt Image MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs. The openai gpt image mcp mcp server is what makes that connection.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Supports — Claude Desktop, Cursor, VSCode, Windsurf, and any MCP-compatible client
  • create-image — Generate images from a prompt, with advanced options (size, quality, background, etc)
  • edit-image — Edit or extend images using a prompt and optional mask, supporting both file paths and base64 input
  • Build — yarn build
  • Run — node dist/index.js
  • Windows — Drive letter followed by : (e.g., C:/path/to/image.png or C:\path\to\image.png)
  • Auto — Switch to File Output:** If the total image size exceeds 1MB, the tool will automatically save images to disk and return the file path(s) instead of
  • MCP_HF_WORK_DIR — Set this to control where large images and file outputs are saved. Example: export MCP_HF_WORK_DIR=/your/desired/dir

Credentials and setup notes

Configuration is passed through the environment: OPENAI_API_KEY, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, OPENAI_API_VERSION, MCP_HF_WORK_DIR. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Where it fits

Plenty of AI and media services servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Openai Gpt Image MCP's toolset — Supports, create-image, edit-image and 5 more — is a fair guide to whether it matches your workflow. It is maintained by SureScaleAI; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
SupportsClaude Desktop, Cursor, VSCode, Windsurf, and any MCP-compatible client.
create-imageGenerate images from a prompt, with advanced options (size, quality, background, etc).
edit-imageEdit or extend images using a prompt and optional mask, supporting both file paths and base64 input.
Buildyarn build
Runnode dist/index.js
WindowsDrive letter followed by : (e.g., C:/path/to/image.png or C:\path\to\image.png)
AutoSwitch to File Output:** If the total image size exceeds 1MB, the tool will automatically save images to disk and return the file path(s) instead of base64. This ensures compatibility and prevents errors like result exce
MCP_HF_WORK_DIRSet this to control where large images and file outputs are saved. Example: export MCP_HF_WORK_DIR=/your/desired/dir

How to install the Openai Gpt Image MCP MCP server

Also supports Azure deployments:

```json
{
  "mcpServers": {
    "openai-gpt-image-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/dist/index.js"],
      "env": { 
        "AZURE_OPENAI_API_KEY": "sk-...",
        "AZURE_OPENAI_ENDPOINT": "my.endpoint.com",
        "OPENAI_API_VERSION": "2024-12-01-preview"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
OPENAI_API_KEYCredential the server authenticates with.Yes
AZURE_OPENAI_API_KEYCredential the server authenticates with.Yes
AZURE_OPENAI_ENDPOINTConfiguration value read at startup.Optional
OPENAI_API_VERSIONConfiguration value read at startup.Optional
MCP_HF_WORK_DIRFilesystem location the server is allowed to use.Optional

Example prompts to try

  • Use Openai Gpt Image MCP to Supports.
  • Use Openai Gpt Image MCP to create-image.
  • Use Openai Gpt Image MCP to edit-image.

Frequently asked questions

It connects Openai Gpt Image MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Supports, create-image, edit-image, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Openai Gpt Image MCP directly.