gpt-image-1-mcp
by CLOUDWERX-DEV
A Model Context Protocol (MCP) server for generating and editing images using the OpenAI `gpt-image-1` model. It allows simple integration with MCP clients for streamlined AI image generation.
Last updated: N/A
What is gpt-image-1-mcp?
This is an MCP server that leverages the OpenAI gpt-image-1
model to generate and edit images based on text prompts. It's designed to be easily integrated with various MCP-compatible clients like VS Code, Roo, Cursor, Augment, and Windsurf.
How to use gpt-image-1-mcp?
To use this server, you need an OpenAI API key with access to the gpt-image-1
model. You can run the server directly using NPX with the command npx -y @cloudwerxlab/gpt-image-1-mcp
. You can also configure it within an MCP client by adding the server configuration to the client's mcp_settings.json
file, providing the necessary command, arguments, and environment variables (including your OpenAI API key).
Key features of gpt-image-1-mcp
Generates new images from text prompts using
create_image
tool.Edits existing images with text prompts and masks using
create_image_edit
tool.Simple integration with MCP clients.
Full access to OpenAI's
gpt-image-1
capabilities.Streamlined workflow for AI image generation.
Beautifully formatted output with emojis and detailed information.
Automatic image saving to disk.
Detailed token usage reporting.
Configurable output directory.
File path support for image editing.
Comprehensive error handling with detailed error reporting.
Use cases of gpt-image-1-mcp
Generating unique images based on creative text descriptions.
Editing existing images to add or modify elements based on prompts.
Integrating AI image generation into development workflows using MCP clients.
Creating visual content for marketing materials, social media, or personal projects.
Prototyping image concepts quickly and easily.
FAQ from gpt-image-1-mcp
What is the default output directory for generated images?
What is the default output directory for generated images?
The default location is the user's Pictures folder under the gpt-image-1
subfolder (e.g., C:\Users\username\Pictures\gpt-image-1
on Windows).
How do I change the output directory?
How do I change the output directory?
Set the GPT_IMAGE_OUTPUT_DIR
environment variable to your desired directory.
What are the prerequisites for running this server?
What are the prerequisites for running this server?
You need Node.js (v14 or higher) and an OpenAI API key with access to the gpt-image-1
model.
What MCP clients are compatible with this server?
What MCP clients are compatible with this server?
This server is compatible with VS Code MCP Extension, Roo, Cursor, Augment, and Windsurf.
What do I do if I get a MIME type error?
What do I do if I get a MIME type error?
Ensure image files have the correct extension (.png, .jpg, etc.) that matches their actual format. The server uses file extensions to determine MIME types.