================== /// MCP /// /// OPE /// ================== [server:online] [protocol:ready]
openai-gpt-image-mcp
by SureScaleAI
MCP tool-server for OpenAI GPT-4o / gpt-image-1 image generation & editing.
56
17
Open Source01
create-image
Generate images from a text prompt with options for size, quality, background and more
02
edit-image
Edit or extend existing images using a prompt and optional mask, supporting both file paths and base64 input
Installation
1. Clone the repository
git clone https://github.com/SureScaleAI/openai-gpt-image-mcp.git
cd openai-gpt-image-mcp
2. Install dependencies (Node 18+ recommended)
npm install # or yarn install / pnpm install
3. Environment configuration
• Copy the sample environment file if present or create a new .env file
• Set your OpenAI key and optional settings:
cp .env.example .env # if repo provides it
OPENAI_API_KEY="sk-..."
PORT=3030 # default 3030
ALLOWED_ORIGINS="*" # CORS, optional
4. Build the TypeScript sources
npm run build # builds into ./dist
# For hot-reload during development
npm run dev # ts-node / nodemon
5. Start the MCP server
npm start # runs node dist/index.js (or similar)
# Server will listen on http://localhost:$PORT
6. Verify tools are discoverable
curl http://localhost:$PORT/.well-known/mcp.json
Documentation
License: MIT License
Updated 7/30/2025