Loading...
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": { "OPENAI_API_KEY": "sk-..." }
}
}
}create-imageGenerates images from a text prompt using OpenAI's image models.
Generates images, potentially consuming significant API credits and disk space.
edit-imageEdits or extends images using a prompt and optional mask, supporting file paths and base64 input.
Modifies existing images, with potential for unintended alterations and API usage.
This server is relatively safe for image generation and editing, but it requires careful management of the OpenAI API key and attention to file system permissions. The automatic file output feature enhances safety by preventing large payloads. Risky scenarios involve unmanaged API key exposure or generation of harmful content.