OpenAI Image MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | debug | info | warn | error | info |
| DEFAULT_MODEL | No | gpt-image-1 / gpt-image-1-mini / gpt-image-2 | gpt-image-2 |
| OPENAI_API_KEY | Yes | OpenAI API key | |
| PROMPT_ENHANCE | No | locally augment short prompts | false |
| SPEND_LOG_PATH | No | append per-call cost records as JSONL | |
| ALLOW_URL_INPUT | No | allow image inputs given as URLs | false |
| CONFIRM_ABOVE_N | No | require confirm:true when generating more than N images | |
| OPENAI_BASE_URL | No | override API base URL | |
| IMAGE_OUTPUT_DIR | No | where images are saved | ~/Pictures/openai-image-mcp |
| DEFAULT_OUTPUT_MODE | No | path | base64 | both | path |
| MAX_COST_PER_CALL_USD | No | reject a call whose estimate exceeds this |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageC | Generate image(s) from a text prompt using OpenAI gpt-image models. |
| edit_imageC | Edit, extend, or compose images with a prompt and optional mask (gpt-image). |
| edit_image_conversationB | Multi-turn iterative image editing via the Responses API (stateful by previous_response_id). |
| image_capabilitiesA | Discover available models, allowed params, size/quality limits, pricing as-of date, and defaults. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aleslanger/OpenAI-image-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server