MCP server for AI image generation using Google Gemini and Imagen. Supports AI Studio (free) and Vertex AI (GCP credits).
Server has 4 tools with clear verb-noun naming (generate_image, edit_image, upscale_image, list_models). All tools have descriptions (avg 120 chars, within 10-1024 range). Input schemas are present with type definitions. However, parameter descriptions are sparse or missing context. generate_image lacks guidance on prompt format; edit_image's mask_url description doesn't explain mask semantics (white=edit, black=keep) clearly enough for LLM reasoning. No output schemas documented, critical for chaining. Error handling is absent from visible code. Security concern: save parameter writes to disk without validation of IMAGE_OUTPUT_DIR path traversal risk.
Edit an existing image using a text prompt and mask. Supports inpainting with optional mask.
Generate an image from a text prompt using Gemini or Imagen models.
List all available image generation models for the configured provider.
Upscale an image to higher resolution using Imagen upscaling model.
No output schemas documented. LLMs cannot infer what fields to expect from tool responses, breaking downstream chaining and forcing agents to guess field names.
Parameter descriptions lack actionable constraints. 'prompt' in generate_image has no guidance on length, format, or style. 'mask_url' in edit_image doesn't explain mask semantics (white=edit, black=keep), LLMs will misuse it.
No error handling or recovery guidance in tool definitions. If API returns 429 (quota exceeded), the agent has no guidance on whether to retry, switch models, or ask the user. Code comments mention quota switching but tool descriptions don't.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | 2026-07-28+ | v2 |
Path traversal risk: 'save' parameter writes to IMAGE_OUTPUT_DIR without validating the output filename. A malicious prompt or model parameter could inject path traversal sequences (../) to write outside the intended directory.
list_models has empty input schema ({}). While correct for a read-only discovery tool, the description should explain what structure is returned and when to call it (e.g., 'Call this first to see available models before generating').