Rust-based MCP server that wraps Google Imagen 3.0 (Gemini) for image generation; provides a ready-to-run executable and environment-variable configuration for Cherry Studio / Cursor.
https://github.com/hamflx/imagen3-mcpStop switching between your AI coding assistant and separate image generation tools. This Rust-based MCP server brings Google's Imagen 3.0 directly into Cherry Studio, Cursor, and any MCP-compatible environment with a single executable and minimal configuration.
You're deep in a development session, documenting an API, creating mockups, or generating assets for a project. Your AI assistant can help with code, but when you need images, you're forced to:
Meanwhile, Google's Imagen 3.0 sits behind an API that most AI coding tools can't access directly.
This MCP server eliminates the context switch entirely. Request images directly within your AI workflow:
"Generate a high-tech apple with metallic surface and glowing edges"
Your assistant calls the MCP server, which hits Google's Imagen 3.0 API and returns the image directly in your conversation. No tab switching, no manual uploads, no broken flow.
The results speak for themselves - photorealistic quality that rivals dedicated image generation platforms, integrated seamlessly into your development environment.
Drop-in Integration: Download a single executable, set your Gemini API key, and you're generating images in minutes. No complex setup, no dependency management, no Docker containers unless you want them.
Production Reliability: Built in Rust with proper error handling, configurable networking, and proxy support for restricted environments. This isn't a proof-of-concept - it's designed to run reliably in your daily workflow.
Smart Proxy Handling: Includes built-in support for proxy services to work around regional restrictions, with configurable base URLs and network settings.
Flexible Deployment: Run locally on your machine, deploy to a remote server, or containerize it. The server exposes configurable ports and addresses to fit your infrastructure.
API Documentation: Generate custom diagrams and illustrations for your API docs without leaving your editor. "Create a flow diagram showing OAuth authentication process" becomes a one-line request.
Mockup Creation: Building a dashboard? Generate placeholder images, icons, and UI elements on demand: "Create a modern user avatar placeholder with gradient background."
Asset Generation: Need quick assets for a web project? Generate them contextually: "Create a hero image for a fintech app, showing abstract data visualization."
Technical Illustrations: Document complex architectures with custom visuals: "Generate a system architecture diagram showing microservices communication."
GEMINI_API_KEY environment variableAdd to your MCP servers configuration:
{
"mcpServers": {
"imagen3": {
"command": "/path/to/imagen3-mcp",
"env": {
"GEMINI_API_KEY": "your-api-key"
}
}
}
}
The server starts immediately and integrates with your existing AI assistant workflow without requiring restarts or reconfigurations.
Most developers resort to separate image generation tools because integrating AI image generation into development workflows is complex. This server solves that by providing a bridge between Google's powerful Imagen 3.0 and the MCP protocol that modern AI coding assistants understand.
You get enterprise-grade image generation without the enterprise-grade complexity. The Rust implementation ensures reliability and performance, while the environment variable configuration keeps deployment simple.
If you're using AI assistants for development and find yourself needing images regularly, this MCP server transforms a multi-tool workflow into a seamless, single-environment experience.