# gemini-image-studio [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/udhaykumarbala/gemini-image-studio-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 698  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gemini-image-studio

## Description
AI image generation and editing with Google Gemini. Structured JSON editing.

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Create a new image from text prompt, JSON prompt, or both. Supports presets for common asset types (ads, web, social).
- **decompose_image** — Analyze an image and return a structured JSON blueprint of all visual components. Use this as the first step before editing an image with JSON changes.
- **edit_image** — Edit an existing image using structured JSON changes (dot-notation paths) or natural language instructions. For JSON edits, run decompose_image first to get the blueprint.
- **get_presets** — List available asset presets with dimensions, tips, and conventions for ads, web pages, and social media.
- **list_generated** — Browse and search previously generated images in the output directory, with optional metadata and blueprints.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gemini-image-studio": {
    "command": "npx",
    "args": ["-y","gemini-image-studio-mcp"],
    "env": {
      "GEMINI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What gemini-image-studio does

gemini-image-studio provides five MCP tools for creating, inspecting, modifying, and locating images generated through Google Gemini. `generate_image` accepts either a text description or a structured JSON prompt. It can apply an asset preset, aspect ratio, resolution, model choice, reference images, a custom output filename, and optional Google Search grounding.

The editing workflow begins with `decompose_image`, which analyzes an existing image and returns a JSON blueprint. The blueprint describes areas such as subjects, scene, composition, technical properties, text rendering, style modifiers, and metadata. `edit_image` then applies either structured changes or a natural-language instruction. JSON edits use paths such as `subject[0].hair.color` or `scene.location`, allowing a caller to target individual visual properties.

`get_presets` returns available presets and can filter them by advertising, web, social, or all categories. `list_generated` searches saved image files, limits the number of results, and can include cached blueprints.

## How it works

The gemini-image-studio MCP server communicates over stdio, so an MCP client starts the installed command as a local process. Requests are sent through the five exposed tools, while generated images are written to the configured output directory.

A typical structured-edit sequence is:

1. Generate an image from a text or JSON prompt.
2. Decompose the image into a blueprint.
3. Pass dot-notation field changes to `edit_image`.
4. Continue with additional JSON or natural-language edits.

Blueprints can be supplied directly to `edit_image`; when omitted, the tool can load a cached blueprint associated with the image. Reference image paths can also be provided during generation, with support for up to 14 references.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g gemini-image-studio-mcp
```

Set `GEMINI_API_KEY` using a key from Google AI Studio. `OUTPUT_DIR` is optional and defaults to `./output`; it controls where generated images are saved. The server can be registered with Claude Code or Cursor using an MCP configuration that runs `gemini-image-studio-mcp` or `npx -y gemini-image-studio-mcp`.

For another MCP client, start the command with the API key in its environment:

```bash
GEMINI_API_KEY=your-key npx gemini-image-studio-mcp
```

## Tools and capabilities

The gemini-image-studio MCP server supports Gemini Flash and Pro model selections, 1K, 2K, and 4K output sizes, configurable aspect ratios, and ten built-in presets. Presets cover formats such as Facebook ads, Instagram stories, display banners, hero images, Open Graph images, product cards, email headers, LinkedIn posts, Twitter posts, and YouTube thumbnails.

Natural-language editing is available when exact field-level control is unnecessary. Structured editing is suited to changes such as clothing color, hair style, accessories, lighting, background location, image text, lens, framing, or aesthetic style. Search grounding can be enabled for generation when current real-world information is needed.

The package documents retries for rate-limit responses, safety-block messages, and file-size warnings.

## Limitations and notes

A Gemini API key is required. Image paths and reference-image paths must be accessible to the local process, and generated files are stored on the local filesystem. JSON editing depends on a usable blueprint and correctly addressed dot-notation paths; natural-language editing is available as an alternative. The material identifies stdio as the transport and does not describe a remote HTTP deployment mode.

_Full upstream README: https://allmcps.com/mcp/gemini-image-studio/readme_

