Skip to main content
Glama
aleslanger

OpenAI Image MCP Server

by aleslanger

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNodebug | info | warn | errorinfo
DEFAULT_MODELNogpt-image-1 / gpt-image-1-mini / gpt-image-2gpt-image-2
OPENAI_API_KEYYesOpenAI API key
PROMPT_ENHANCENolocally augment short promptsfalse
SPEND_LOG_PATHNoappend per-call cost records as JSONL
ALLOW_URL_INPUTNoallow image inputs given as URLsfalse
CONFIRM_ABOVE_NNorequire confirm:true when generating more than N images
OPENAI_BASE_URLNooverride API base URL
IMAGE_OUTPUT_DIRNowhere images are saved~/Pictures/openai-image-mcp
DEFAULT_OUTPUT_MODENopath | base64 | bothpath
MAX_COST_PER_CALL_USDNoreject a call whose estimate exceeds this

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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