Imagen Tools Server
FreeNot checkedAn MCP server for generating and editing images using Google Gemini Imagen via Vertex AI. Supports multiple resolutions and aspect ratios.
About
An MCP server for generating and editing images using Google Gemini Imagen via Vertex AI. Supports multiple resolutions and aspect ratios.
README
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
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.txt
Erfordert:
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
Installing Imagen Tools Server
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/hwalde/imagen-tools-mcpFAQ
Is Imagen Tools Server MCP free?
Yes, Imagen Tools Server MCP is free — one-click install via Unyly at no cost.
Does Imagen Tools Server need an API key?
No, Imagen Tools Server runs without API keys or environment variables.
Is Imagen Tools Server hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Imagen Tools Server in Claude Desktop, Claude Code or Cursor?
Open Imagen Tools Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Imagen Tools Server with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
