
Gemini Image Studio
io.github.udhaykumarbala由 GitHub 账号 udhaykumarbala 发布v1.0.2更新于 Oct 24, 2026
AI image generation and editing with Google Gemini. Structured JSON editing.
概览
本地 MCP 服务器,让助手用 Google Gemini 生成并精确编辑图像,支持基于 JSON 蓝图的编辑。
- 可以做什么
- 根据文本或 JSON 提示生成图像,可选预设、宽高比、分辨率、模型以及用于一致性的参考图。将已有图像分解为描述各视觉组件的结构化 JSON 蓝图。通过修改点号路径的 JSON 字段或用自然语言指令编辑图像,并缓存蓝图以便再次编辑。列出可用的素材预设并浏览此前生成的图像。
- 适用场景
- 适合让助手制作网页素材、广告创意或品牌视觉,并进行孤立、可重复的修改,例如只改发色或背景而不重新生成整张图。适用于受益于结构化图像编辑的营销与设计流程。
- 运行要求
- 通过 stdio 在本地运行,从 npm 包 gemini-image-studio-mcp 安装(需要 Node.js 和 npx)。需要 Google AI Studio 的 Gemini API 密钥,通过环境变量 GEMINI_API_KEY 提供。可选环境变量 OUTPUT_DIR 指定图像保存位置(默认 ./output)。需要访问 Google Gemini 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Gemini Image Studio,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:README.md,提交 ef13138
工具
0版本历史
1- v1.0.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分