A Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs.
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.
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 clientcreate-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 inputBuild — yarn buildRun — node dist/index.jsWindows — 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 ofMCP_HF_WORK_DIR — Set this to control where large images and file outputs are saved. Example: export MCP_HF_WORK_DIR=/your/desired/dirConfiguration 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.
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.
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.
| Tool | What it does |
|---|---|
| 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 base64. This ensures compatibility and prevents errors like result exce |
| 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 |
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.
| Variable | Description | Required |
|---|---|---|
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| AZURE_OPENAI_API_KEY | Credential the server authenticates with. | Yes |
| AZURE_OPENAI_ENDPOINT | Configuration value read at startup. | Optional |
| OPENAI_API_VERSION | Configuration value read at startup. | Optional |
| MCP_HF_WORK_DIR | Filesystem location the server is allowed to use. | Optional |
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.
Answers, not links — delegate questions to Perplexity's search-grounded models and get cited responses back.
Give your assistant a voice — text-to-speech, voice cloning and audio tools from the ElevenLabs API.
Give your assistant a real code sandbox — isolated cloud VMs for actually running the code it writes.
The ML hub in your context window — search models, datasets, papers and run Spaces from the official server.