Imagen Tools MCP Server
Provides image generation and editing using Google Gemini models via Vertex AI, supporting various aspect ratios and resolutions.
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 Tools MCP Servergenerate an image of a sunset over mountains"
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 Tools MCP Server
MCP (Model Context Protocol) Server für Google Gemini Imagen-Bildgenerierung über Vertex AI.
Features
Bildgenerierung: Erstellt Bilder mit Gemini 3 Pro Image (
gemini-3-pro-image)Bildbearbeitung: Bearbeitet bestehende Bilder mit Prompts
Auflösungsunterstützung: 1K, 2K, 4K
Aspect Ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9
Base64-Dekodierung: Automatische Handhabung von base64-kodierten Bilddaten
Related MCP server: Nano Banana MCP
Voraussetzungen
Google Cloud Setup
Google Cloud Projekt erstellen
Erstelle ein Google Cloud Projekt oder verwende ein bestehendes
Aktiviere die Vertex AI API
Notiere dir die Project ID
Google Cloud SDK installieren
Authentifizierung einrichten
gcloud auth application-default loginGOOGLE_CLOUD_PROJECT Umgebungsvariable setzen
Windows (PowerShell):
setx GOOGLE_CLOUD_PROJECT "your-project-id"Linux/Mac:
export GOOGLE_CLOUD_PROJECT="your-project-id" # Dauerhaft in ~/.bashrc oder ~/.zshrc hinzufügen: echo 'export GOOGLE_CLOUD_PROJECT="your-project-id"' >> ~/.bashrcWichtig: Nach dem Setzen der Umgebungsvariable muss das Terminal/die Shell neu gestartet werden!
(Optional) Quota-Projekt setzen
gcloud auth application-default set-quota-project your-project-id
Python Dependencies
pip install -r requirements.txtErfordert:
google-genai>= 1.59.0mcpPillow
Verwendung
Als MCP Server
In ~/.claude/settings.json (oder entsprechender Konfiguration):
{
"mcpServers": {
"imagen-tools": {
"command": "python",
"args": ["C:/Users/herbe/mcp/imagen_tools_mcp.py"]
}
}
}Tools
create_image_using_gemini
Erstellt ein neues Bild.
Parameter:
prompt(required): Bildbeschreibung (sollte mit "Generate" oder "Create" beginnen)aspect_ratio(optional): Seitenverhältnis (default: "16:9")image_size(optional): Auflösung - "1K", "2K", "4K" (default: "2K")
Beispiel:
create_image_using_gemini(
prompt="Generate an infographic showing AI and human collaboration",
aspect_ratio="16:9",
image_size="4K"
)edit_image_using_gemini
Bearbeitet ein bestehendes Bild.
Parameter:
image_path(required): Pfad zum Quellbildprompt(required): Bearbeitungsanweisungenimage_size(optional): Auflösung - "1K", "2K", "4K"
Konfiguration
Umgebungsvariablen
Werden automatisch im Code gesetzt:
GOOGLE_GENAI_USE_VERTEXAI=TrueGOOGLE_CLOUD_PROJECT=gen-lang-client-0300367995GOOGLE_CLOUD_LOCATION=global
Debug-Logging
Debug-Logging ist aktiviert und schreibt nach: ~/mcp/imagen_tools_debug.log
Zum Deaktivieren: DEBUG_ENABLED = False in Zeile 11 setzen.
Auflösungen
1K: ~1376x768 (16:9) = 1.1 Megapixel
2K: ~2752x1536 (16:9) = 4.2 Megapixel
4K: ~5504x3072 (16:9) = 16.9 Megapixel
Timeouts
Standard: 300 Sekunden (5 Minuten)
4K-Bilder können 2-3 Minuten dauern
Wichtige Hinweise
Prompt-Format
Das Modell funktioniert am besten mit Prompts, die mit "Generate" oder "Create" beginnen.
❌ Schlecht:
Die moderne Softwareentwicklung hat sich verändert...✅ Gut:
Generate an infographic illustrating modern software development...Response-Struktur
Die API gibt immer TEXT und IMAGE zurück. Bilddaten befinden sich in response.parts als base64-kodierte inline_data.
Version
0.5.0
Lizenz
Proprietär
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/hwalde/imagen-tools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server