
Gemini Image Studio
io.github.udhaykumarbalaPublished by GitHub account udhaykumarbalav1.0.2Updated Oct 24, 2026
AI image generation and editing with Google Gemini. Structured JSON editing.
Overview
Local MCP server that lets an assistant generate and precisely edit images with Google Gemini, including JSON blueprint-based edits.
- What you can do
- Generate images from text or JSON prompts, with presets, aspect ratios, sizes, model choice and reference images for consistency. Decompose an existing image into a structured JSON blueprint of its visual components. Edit images by changing dot-notation JSON fields or by plain-language instructions, with cached blueprints for re-edits. List available asset presets and browse previously generated images.
- When to use it
- Useful when you want an assistant to create web assets, ad creatives or brand visuals and then make isolated, repeatable changes such as altering hair color or background without regenerating everything. Suited to marketing and design workflows that benefit from structured image editing.
- Requirements
- Runs locally over stdio, installed from the npm package gemini-image-studio-mcp (Node.js and npx). Requires a Google AI Studio Gemini API key supplied in the GEMINI_API_KEY environment variable. An optional OUTPUT_DIR variable sets where images are saved (default ./output). Network access to Google Gemini is needed.
Installation
In SourceWeft
- Open Gemini Image Studio in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
gemini-image-studio-mcp
MCP server for AI image generation and editing with Google Gemini. Create web assets, ad creatives, and brand visuals — with structured JSON editing for precise, repeatable control.
What Makes This Different
Most Gemini image MCP servers are basic text-to-image wrappers. This one adds a structured editing pipeline:
- Generate an image from text or JSON prompts
- Decompose it into a structured JSON blueprint (every visual component mapped)
- Edit by changing specific fields —
subject[0].hair.color: "platinum_blonde"— and regenerating
This means precise, isolated changes without affecting the rest of the image. Change a hair color without touching the background. Swap clothing without altering the pose. All through dot-notation JSON paths.
Features
- 5 MCP Tools — generate, decompose, edit, presets, list
- Structured JSON Editing — decompose images into blueprints, edit specific fields with dot-notation
- Natural Language Editing — or just describe the change in plain English
- 10 Built-in Presets — Facebook ads, Instagram stories, hero images, OG images, YouTube thumbnails, and more
- Reference Image Support — up to 14 reference images for character/object consistency
- Dual Model Support — Gemini 3.1 Flash (fast) or Gemini 3 Pro (best quality)
- Blueprint Caching — decomposed blueprints cached alongside images for instant re-edits
- Google Search Grounding — real-world accuracy via web search
- Smart Error Handling — retry on rate limits, clear safety block messages, file size warnings
Quick Start
1. Get a Gemini API Key
Get one free at Google AI Studio.
2. Install
3. Add to Claude Code
Or add to your project's .claude/mcp.json:
4. Use It
Ask Claude to generate images:
"Create a Facebook ad for a coffee shop with warm lighting"
"Generate a hero image for a tech startup landing page"
"Edit the hero image — change the background to a sunset beach"
Tools
generate_image
Create a new image from text or structured JSON prompts.
decompose_image
Analyze an image into a structured JSON blueprint — the first step of the edit workflow.
Returns a full blueprint with subject, scene, technical, composition, text_rendering, style_modifiers, and meta sections — each field precisely describing the image's visual components.
edit_image
Edit an image using JSON changes or natural language.
JSON edit example — change hair color and add sunglasses:
Natural language edit example:
get_presets
List available asset presets with dimensions, tips, and conventions.
list_generated
Browse previously generated images.
JSON Editing Workflow
The key differentiator — precise, field-level image editing:
Dot-Notation Paths
Built-in Presets
Configuration
Integration
Claude Code
Cursor
Add to .cursor/mcp.json:
Any MCP Client
The server communicates over stdio using the Model Context Protocol.
MCP Prompt & Resource
This server also exposes:
- Prompt:
nano_banana_expert— invoke this to give Claude full knowledge of the JSON schema, editing best practices, and asset creation guidelines - Resource:
nanobanana://schema/prompt— the raw JSON schema with all enum values for programmatic access
Models
Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-feature) - Run tests (
npm test) - Commit your changes
- Push and open a PR
License
Source: README.md at commit ef13138
Tools
0Version history
1- v1.0.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts