MCP Server GPT Image-1
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP server port (default: 3000). | 3000 |
| API_MODE | No | API mode: 'responses' (default, latest) or 'images' (legacy). | responses |
| CACHE_DIR | No | Cache directory (default: .cache/images). | .cache/images |
| CACHE_TTL | No | Cache TTL in seconds (default: 3600). | 3600 |
| CORS_ORIGIN | No | CORS origin (default: *). | * |
| CACHE_MAX_SIZE | No | Maximum cache size in MB (default: 100). | 100 |
| OPENAI_API_KEY | Yes | Your OpenAI API key with access to image generation models (required). | |
| RESPONSES_MODEL | No | Model for the Responses API (default: gpt-4o). | gpt-4o |
| ENABLE_STREAMING | No | Enable real-time streaming updates (default: true). | true |
| ENABLE_OPTIMIZATION | No | Enable image optimization (default: true). | true |
| ENABLE_CONVERSATION_CONTEXT | No | Enable multi-turn conversation context support (default: true). | true |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageC | Generate images using OpenAI GPT Image-1 model. Supports streaming with partial_images parameter. |
| edit_imageC | Edit existing images using OpenAI GPT Image-1 model |
| clear_cacheB | Clear the image generation cache |
| cache_statsC | Get cache statistics |
| list_conversationsC | List all conversation IDs |
| get_conversationC | Get conversation history by ID |
| clear_conversationC | Clear a specific conversation history |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool targets a distinct resource+action: image generation, image editing, cache management, and conversation history. The only mild overlap is generate_image vs edit_image, but their descriptions clearly separate creating new images from modifying existing ones. No two tools appear to do the same thing.
Most tools follow a predictable verb_noun pattern (generate_image, edit_image, clear_cache, list_conversations, get_conversation, clear_conversation). The lone outlier is cache_stats, which is noun-first and breaks the verb convention, but it remains readable and unambiguous.
Seven tools is well within the sweet spot and each one earns its place: two core image operations plus supporting cache and conversation management. Nothing feels padded or missing for the stated scope.
The core lifecycle (generate, edit) plus cache and conversation utilities is covered, including clearing and inspecting state. Minor gaps exist, such as no way to retrieve or save a previously generated image or delete individual cache entries, but agents can work around these.