imagen-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OUTPUT_DIR | No | Default directory for saved images (supports ~ and env vars) | |
| GEMINI_API_KEY | No | Google Gemini API key for image generation | |
| GOOGLE_API_KEY | No | Alias for GEMINI_API_KEY | |
| OPENAI_API_KEY | No | OpenAI API key for image generation | |
| DEFAULT_PROVIDER | No | Default provider for image generation | auto |
| IMAGEN_MCP_LOG_DIR | No | Log directory override | |
| DEFAULT_GEMINI_SIZE | No | Default size for Gemini image generation | 2K |
| DEFAULT_OPENAI_SIZE | No | Default size for OpenAI image generation | 1024x1024 |
| ENABLE_GOOGLE_SEARCH | No | Enable Google Search grounding for real-time data | false |
| IMAGEN_MCP_LOG_LEVEL | No | Log level (e.g. INFO, DEBUG) | |
| IMAGEN_MCP_LOG_PROMPTS | No | Log prompts | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageB | Generate an image using the best available provider. Automatic Provider Selection: The server analyzes your prompt and automatically selects the best provider:
Examples:
Override Selection:
Set Args: params: Image generation parameters including prompt and optional settings. Returns: Formatted response with image path and metadata. |
| conversational_imageA | Generate images conversationally with iterative refinement. USE THIS TOOL when:
Dialogue Modes:
Provider Selection: Same auto-selection logic as generate_image. Provider is locked for the duration of a conversation (cannot switch mid-conversation). Usage Pattern:
Args: params: Conversational image parameters including prompt and dialogue options. Returns: Either dialogue questions or generated image with metadata. |
| edit_imageA | Edit an existing image using OpenAI gpt-image-2's /images/edits endpoint. This is the right tool for:
Key features of gpt-image-2 editing:
Typical workflow:
Args: params: Edit parameters including prompt, image_path, and options. Returns: Formatted response with edited image path and metadata. |
| list_providersA | List available image generation providers and their capabilities. Returns a comparison of available providers including:
Use this to understand which provider to choose for your task. |
| list_conversationsA | List saved image generation conversations. Returns recent conversations that can be continued for refinement. Each conversation tracks the provider used and generation history. Args: params: Options for filtering and formatting the list. Returns: List of conversations with metadata. |
| list_gemini_modelsA | List available Gemini models that support image generation. Queries the Gemini API to show which models are available for image generation with your API key. Useful for troubleshooting or choosing alternative models. Returns: List of available Gemini image models with their capabilities. |
| estimate_costA | Estimate the cost of generating an image without generating it. Runs the same provider auto-selection as The figure is a ballpark — real cost depends on live provider pricing and, for OpenAI, actual image output tokens. Args: params: Prompt plus optional provider/quality/size/n. Returns: A formatted cost estimate. |
| generate_image_batchA | Generate many images concurrently from a list of prompts. Each item runs through the same auto provider selection as Use this instead of calling Args: params: The batch (items + concurrency + optional default provider). Returns: A formatted summary of all results. |
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
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/michaeljabbour/imagen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server