Enables image generation using Google's Imagen models (Imagen 4, Imagen 4 Fast, and Imagen 4 Ultra) for creating photorealistic images from text prompts with excellent prompt following capabilities.
Provides access to OpenAI's image generation models (DALL-E 3 and GPT Image 1) for creating high-quality artistic images with strong prompt understanding through the Nexos.ai platform.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Imagen MCP Servergenerate a photorealistic sunset over mountains with imagen-4-ultra"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Imagen MCP Server
A Model Context Protocol (MCP) server for image generation using Google's Imagen model and other models supported by the Nexos.ai platform.
Features
Simple Image Generation: Generate a single image from a text prompt
Batch Image Generation: Generate multiple images with background processing
First image is returned immediately
Remaining images are generated in the background
Query for additional images as they become available
Model Catalog: Access comprehensive information about all available models
Supported Models
Model | Provider | Description |
| Flagship model with excellent prompt following and photorealistic output | |
| Faster variant optimized for speed | |
| Highest quality for premium image generation | |
| OpenAI | High-quality model with excellent artistic capabilities |
| OpenAI | Strong prompt understanding and versatile output |
Installation
Option 1: Install with pipx (Recommended for CLI usage)
Option 2: Install with Poetry (Recommended for development)
Option 3: Install with pip
Environment Variables
Set up your Nexos.ai API key:
Or create a .env file:
Usage
Running the Server
CLI Options
When using the fastmcp run command, you have additional options:
Option | Description |
| Transport protocol: |
| Host to bind to (default: 127.0.0.1) |
| Port for HTTP/SSE transport (default: 8000) |
| Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL |
| Don't show the server banner |
MCP Client Configuration
To use this MCP server with an AI agent, add the following configuration to your MCP client.
Claude Desktop (pipx installation)
If you installed with pipx, add to your Claude Desktop configuration file (~/.config/claude/claude_desktop_config.json on Linux, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Claude Desktop (Poetry installation)
If you're using Poetry for development:
Cline / Roo Code
Add to your VS Code settings or Cline MCP configuration:
Generic MCP Client (Copy-Paste Ready)
For pipx/pip installation:
For Poetry installation:
Configuration Options:
Field | Description |
| The command to run ( |
| Command arguments to start the MCP server |
| Working directory - set to your Imagen-MCP installation path |
| Environment variables, including the required |
Important: Replace /path/to/Imagen-MCP with the actual path to your Imagen-MCP installation and your-nexos-api-key-here with your Nexos.ai API key.
Alternative: Using pip-installed package
If you install the package globally or in a virtual environment:
Tools
list_models
List all available image generation models with their descriptions, capabilities, and use cases.
Parameters: None
Returns:
models: List of all available models with detailstotal_count: Number of available modelsdefault_model: The default model IDusage_hint: How to use the model parameter
Example Response:
get_model_details
Get detailed information about a specific image generation model.
Parameters:
model_id(required): The model identifier (e.g., "imagen-4", "imagen-4-fast", "dall-e-3")
Returns:
Complete model details including capabilities, rate limits, use cases, strengths, and weaknesses
Error message if model not found
Example:
generate_image
Generate a single image from a text prompt. The image is saved to a file (temporary file if no path specified).
Parameters:
prompt(required): Text description of the image to generatemodel(optional): Model to use (default: "imagen-4")size(optional): Image size (default: "1024x1024")quality(optional): Image quality - "standard" or "hd" (default: "standard")style(optional): Image style - "vivid" or "natural" (default: "vivid")
Returns:
success: Whether the image was generated successfullyfile_path: Absolute path to the saved image filefile_size_bytes: Size of the saved image file in bytesmodel_used: The model that was used for generationrevised_prompt: The revised prompt (if the model modified it)error: Error message if generation failed
Example:
start_image_batch
Start generating multiple images and return the first one immediately. Images are saved to files (in a temporary directory if no path specified).
Parameters:
prompt(required): Text description of the image to generatecount(optional): Number of images to generate, 2-10 (default: 4)model(optional): Model to use (default: "imagen-4")size(optional): Image size (default: "1024x1024")quality(optional): Image quality (default: "standard")style(optional): Image style (default: "vivid")
Returns:
success: Whether the batch was started successfullysession_id: ID for retrieving more imagesfirst_image_path: Path to the first generated image filefirst_image_size_bytes: Size of the first image file in bytespending_count: Number of images still being generatederror: Error message if batch failed to start
Example:
get_next_image
Get the next available image from a batch generation session. The image is saved to a file (temporary file if no path specified).
Parameters:
session_id(required): Session ID from start_image_batchtimeout(optional): Maximum wait time in seconds (default: 60)
Returns:
success: Whether an image was retrievedfile_path: Path to the saved image file (or null if no image available)file_size_bytes: Size of the saved image file in byteshas_more: Whether more images are available or pendingpending_count: Number of images still being generatederror: Error message if retrieval failed
Example:
get_batch_status
Get the current status of a batch generation session.
Parameters:
session_id(required): Session ID from start_image_batch
Returns:
status: Session status (created, generating, partial, completed, failed)completed_count: Number of completed imagespending_count: Number of pending imagestotal_count: Total number of requested imageserrors: List of any errors encountered
Resources
models://image-generation
Get the complete catalog of available image generation models with their capabilities, rate limits, use cases, strengths, and weaknesses.
models://image-generation/{model_id}
Get detailed information about a specific model.
Development
Running Tests
Project Structure
Rate Limits
All models are in Category 3 on Nexos.ai:
100 messages per 3 hours
License
MIT License