ultimate-gemini-mcp 3.0.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- src/__init__.py +16 -0
- src/config/__init__.py +44 -0
- src/config/constants.py +68 -0
- src/config/settings.py +143 -0
- src/core/__init__.py +47 -0
- src/core/exceptions.py +62 -0
- src/core/validation.py +117 -0
- src/server.py +168 -0
- src/services/__init__.py +13 -0
- src/services/gemini_client.py +304 -0
- src/services/image_service.py +174 -0
- src/services/prompt_enhancer.py +137 -0
- src/tools/__init__.py +11 -0
- src/tools/batch_generate.py +181 -0
- src/tools/generate_image.py +240 -0
- ultimate_gemini_mcp-3.0.7.dist-info/METADATA +462 -0
- ultimate_gemini_mcp-3.0.7.dist-info/RECORD +20 -0
- ultimate_gemini_mcp-3.0.7.dist-info/WHEEL +4 -0
- ultimate_gemini_mcp-3.0.7.dist-info/entry_points.txt +2 -0
- ultimate_gemini_mcp-3.0.7.dist-info/licenses/LICENSE +31 -0
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ultimate-gemini-mcp
|
|
3
|
+
Version: 3.0.7
|
|
4
|
+
Summary: Gemini 3 Pro Image MCP server with advanced features: high-resolution output (1K-4K), reference images (up to 14), Google Search grounding, and thinking mode
|
|
5
|
+
Project-URL: Homepage, https://github.com/anand-92/ultimate-image-gen-mcp
|
|
6
|
+
Project-URL: Repository, https://github.com/anand-92/ultimate-image-gen-mcp
|
|
7
|
+
Project-URL: Issues, https://github.com/anand-92/ultimate-image-gen-mcp/issues
|
|
8
|
+
Project-URL: Documentation, https://github.com/anand-92/ultimate-image-gen-mcp/blob/main/README.md
|
|
9
|
+
Author-email: Ultimate Gemini MCP <noreply@example.com>
|
|
10
|
+
License: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: ai,claude,fastmcp,gemini,gemini-3-pro-image,google-ai,image-generation,mcp
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: fastmcp>=2.11.0
|
|
23
|
+
Requires-Dist: google-genai>=1.52.0
|
|
24
|
+
Requires-Dist: pillow>=10.4.0
|
|
25
|
+
Requires-Dist: pydantic-settings>=2.0.0
|
|
26
|
+
Requires-Dist: pydantic>=2.0.0
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: mypy>=1.8.0; extra == 'dev'
|
|
29
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
|
|
31
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: ruff>=0.8.0; extra == 'dev'
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
# Gemini 3 Pro Image MCP Server 🎨
|
|
36
|
+
|
|
37
|
+
> Professional MCP server for Google's Gemini 3 Pro Image - state-of-the-art image generation with advanced reasoning, high-resolution output, and Google Search grounding.
|
|
38
|
+
|
|
39
|
+
## ✨ Features
|
|
40
|
+
|
|
41
|
+
### Gemini 3 Pro Image Capabilities
|
|
42
|
+
- **High-Resolution Output**: Generate images in 1K, 2K, and 4K resolutions
|
|
43
|
+
- **Advanced Text Rendering**: Create legible, stylized text in infographics, menus, diagrams, and marketing assets
|
|
44
|
+
- **Up to 14 Reference Images**: Mix up to 14 reference images (6 objects + 5 humans) for consistent style and characters
|
|
45
|
+
- **Google Search Grounding**: Use real-time data from Google Search (weather, stocks, events, maps)
|
|
46
|
+
- **Thinking Mode**: Model uses reasoning process to refine composition before generating final output
|
|
47
|
+
|
|
48
|
+
### Advanced Capabilities
|
|
49
|
+
- 🤖 **AI Prompt Enhancement**: Automatically optimize prompts using Gemini Flash for superior results
|
|
50
|
+
- 🔍 **Google Search Integration**: Generate images based on real-time information
|
|
51
|
+
- 🎨 **Reference Images**: Use up to 14 images for style consistency and character preservation
|
|
52
|
+
- 📐 **Flexible Aspect Ratios**: Support for 10 aspect ratios (1:1, 16:9, 9:16, 3:2, 4:3, 4:5, 5:4, 2:3, 3:4, 21:9)
|
|
53
|
+
- 💭 **Thought Process Visibility**: See the model's thinking process (interim images and reasoning)
|
|
54
|
+
- 🚀 **Batch Processing**: Generate multiple images efficiently with parallel processing
|
|
55
|
+
- 🎯 **Dual Modalities**: Get both text explanations and images in responses
|
|
56
|
+
|
|
57
|
+
### Production Ready
|
|
58
|
+
- Comprehensive error handling and validation
|
|
59
|
+
- Configurable settings via environment variables
|
|
60
|
+
- Detailed logging and debugging
|
|
61
|
+
- MCP resources for configuration and model information
|
|
62
|
+
|
|
63
|
+
## 🎬 Showcase - Gemini 3 Pro Image Features
|
|
64
|
+
|
|
65
|
+
> **Gemini 3 Pro Image** - Experience state-of-the-art image generation with advanced reasoning and high-resolution output.
|
|
66
|
+
|
|
67
|
+
### Key Features in Action
|
|
68
|
+
|
|
69
|
+
All images can be generated with **4K resolution** and **AI prompt enhancement enabled**.
|
|
70
|
+
|
|
71
|
+
### Example Use Cases
|
|
72
|
+
|
|
73
|
+
**1. High-Resolution Professional Assets**
|
|
74
|
+
```
|
|
75
|
+
Generate a 4K image of "modern office interior with natural lighting"
|
|
76
|
+
- Model: gemini-3-pro-image-preview
|
|
77
|
+
- Image Size: 4K
|
|
78
|
+
- Aspect Ratio: 16:9
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**2. Real-Time Data Visualization**
|
|
82
|
+
```
|
|
83
|
+
Generate an image with Google Search grounding:
|
|
84
|
+
"Visualize the current weather forecast for the next 5 days in San Francisco as a clean, modern weather chart. Add a visual on what I should wear each day"
|
|
85
|
+
- Enable Google Search: true
|
|
86
|
+
- Aspect Ratio: 16:9
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**3. Reference Image Consistency**
|
|
90
|
+
```
|
|
91
|
+
Use reference images to maintain consistent characters:
|
|
92
|
+
- Provide up to 5 human reference images
|
|
93
|
+
- Provide up to 6 object reference images
|
|
94
|
+
- Generate "An office group photo of these people, they are making funny faces"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**4. Advanced Text Rendering**
|
|
98
|
+
```
|
|
99
|
+
Generate infographics, menus, or diagrams with legible text:
|
|
100
|
+
"Create a restaurant menu with elegant typography showing appetizers, mains, and desserts"
|
|
101
|
+
- Image Size: 2K
|
|
102
|
+
- Aspect Ratio: 3:4
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 🔥 Why Gemini 3 Pro Image Is Powerful
|
|
106
|
+
|
|
107
|
+
1. **State-of-the-Art Quality**: Built-in generation capabilities up to 4K resolution
|
|
108
|
+
2. **Advanced Reasoning**: Thinking mode refines composition before final output
|
|
109
|
+
3. **Real-Time Grounding**: Google Search integration for accurate, current data
|
|
110
|
+
4. **Character Consistency**: Use up to 14 reference images for maintaining style
|
|
111
|
+
5. **Professional Features**: Advanced text rendering for infographics and marketing
|
|
112
|
+
|
|
113
|
+
## 🚀 Quick Start
|
|
114
|
+
|
|
115
|
+
### Prerequisites
|
|
116
|
+
- Python 3.11 or higher
|
|
117
|
+
- [Google Gemini API key](https://makersuite.google.com/app/apikey) (free)
|
|
118
|
+
|
|
119
|
+
### Installation
|
|
120
|
+
|
|
121
|
+
#### Option 1: Using uv (Recommended)
|
|
122
|
+
```bash
|
|
123
|
+
# Install uv if you haven't already
|
|
124
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
125
|
+
|
|
126
|
+
# Install and run the server
|
|
127
|
+
uvx ultimate-gemini-mcp
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### Option 2: Using pip
|
|
131
|
+
```bash
|
|
132
|
+
pip install ultimate-gemini-mcp
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### Option 3: From Source
|
|
136
|
+
```bash
|
|
137
|
+
git clone <repository-url>
|
|
138
|
+
cd ultimate-gemini-mcp
|
|
139
|
+
uv sync
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Configuration
|
|
143
|
+
|
|
144
|
+
Create a `.env` file in your project directory:
|
|
145
|
+
```bash
|
|
146
|
+
cp .env.example .env
|
|
147
|
+
# Edit .env and add your GEMINI_API_KEY
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Or set environment variables directly:
|
|
151
|
+
```bash
|
|
152
|
+
export GEMINI_API_KEY=your_api_key_here
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## 📖 Usage
|
|
156
|
+
|
|
157
|
+
### With Claude Desktop
|
|
158
|
+
|
|
159
|
+
Add to your `claude_desktop_config.json`:
|
|
160
|
+
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"mcpServers": {
|
|
164
|
+
"ultimate-gemini": {
|
|
165
|
+
"command": "uvx",
|
|
166
|
+
"args": ["ultimate-gemini-mcp"],
|
|
167
|
+
"env": {
|
|
168
|
+
"GEMINI_API_KEY": "your-api-key-here"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**Important Notes:**
|
|
176
|
+
|
|
177
|
+
1. **Images are automatically saved** to `~/gemini_images` (your home directory). You can optionally set `OUTPUT_DIR` to customize this location:
|
|
178
|
+
- **macOS**: `"OUTPUT_DIR": "/Users/yourusername/custom_folder"`
|
|
179
|
+
- **Windows**: `"OUTPUT_DIR": "C:\\Users\\YourUsername\\custom_folder"`
|
|
180
|
+
|
|
181
|
+
2. **uvx path issues on macOS**: If you get `spawn uvx ENOENT` errors, use the full path to uvx:
|
|
182
|
+
```json
|
|
183
|
+
"command": "/Users/yourusername/.local/bin/uvx"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Config file locations:**
|
|
187
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
188
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
189
|
+
|
|
190
|
+
### With Claude Code (VS Code)
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
# Add MCP server to Claude Code
|
|
194
|
+
claude mcp add ultimate-gemini \
|
|
195
|
+
--env GEMINI_API_KEY=your-api-key \
|
|
196
|
+
-- uvx ultimate-gemini-mcp
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Note**: Images are automatically saved to `~/gemini_images`. To customize, add `--env OUTPUT_DIR=/your/custom/path`.
|
|
200
|
+
|
|
201
|
+
### With Cursor
|
|
202
|
+
|
|
203
|
+
Add to Cursor's MCP configuration (`.cursor/mcp.json`):
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"mcpServers": {
|
|
208
|
+
"ultimate-gemini": {
|
|
209
|
+
"command": "uvx",
|
|
210
|
+
"args": ["ultimate-gemini-mcp"],
|
|
211
|
+
"env": {
|
|
212
|
+
"GEMINI_API_KEY": "your-api-key-here"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
**Note**: Images are automatically saved to `~/gemini_images`. Optionally add `"OUTPUT_DIR": "/your/custom/path"` to customize.
|
|
220
|
+
|
|
221
|
+
## 🎯 Available Models
|
|
222
|
+
|
|
223
|
+
### Gemini 3 Pro Image
|
|
224
|
+
- **gemini-3-pro-image-preview** (default): State-of-the-art image generation optimized for professional asset production with:
|
|
225
|
+
- Built-in 1K, 2K, and 4K resolution support
|
|
226
|
+
- Advanced text rendering capabilities
|
|
227
|
+
- Up to 14 reference images for consistency
|
|
228
|
+
- Google Search grounding for real-time data
|
|
229
|
+
- Thinking mode with reasoning process
|
|
230
|
+
- Support for both TEXT and IMAGE response modalities
|
|
231
|
+
|
|
232
|
+
## 🛠️ Tools
|
|
233
|
+
|
|
234
|
+
### `generate_image`
|
|
235
|
+
|
|
236
|
+
Generate professional images using Gemini 3 Pro Image with advanced features.
|
|
237
|
+
|
|
238
|
+
**Parameters:**
|
|
239
|
+
- `prompt` (required): Text description of the image to generate
|
|
240
|
+
- `model`: Model to use (default: gemini-3-pro-image-preview)
|
|
241
|
+
- `enhance_prompt`: Automatically enhance prompt using AI (default: true)
|
|
242
|
+
- `aspect_ratio`: Aspect ratio like 1:1, 16:9, 9:16, 3:2, 4:5, etc. (default: 1:1)
|
|
243
|
+
- `image_size`: Resolution: 1K, 2K, or 4K (default: 1K)
|
|
244
|
+
- `output_format`: Image format: png, jpeg, webp (default: png)
|
|
245
|
+
- `reference_image_paths`: List of paths to reference images (up to 14 total)
|
|
246
|
+
- Maximum 6 object images for high-fidelity inclusion
|
|
247
|
+
- Maximum 5 human images for character consistency
|
|
248
|
+
- `enable_google_search`: Enable Google Search grounding for real-time data (default: false)
|
|
249
|
+
- `response_modalities`: Response types like ["TEXT", "IMAGE"] (default: both)
|
|
250
|
+
|
|
251
|
+
**Examples:**
|
|
252
|
+
```
|
|
253
|
+
1. Basic image generation:
|
|
254
|
+
Generate an image of "a serene mountain landscape at sunset with a lake reflection"
|
|
255
|
+
|
|
256
|
+
2. High-resolution with specific aspect ratio:
|
|
257
|
+
Generate a 4K image of "modern minimalist architecture" with aspect_ratio 16:9
|
|
258
|
+
|
|
259
|
+
3. With Google Search grounding:
|
|
260
|
+
Generate an image with Google Search enabled: "Current weather map for New York City"
|
|
261
|
+
|
|
262
|
+
4. With reference images:
|
|
263
|
+
Generate an image with reference_image_paths: ["/path/person1.png", "/path/person2.png"]
|
|
264
|
+
and prompt: "An office group photo of these people making funny faces"
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### `batch_generate`
|
|
268
|
+
|
|
269
|
+
Process multiple prompts efficiently with parallel batch processing.
|
|
270
|
+
|
|
271
|
+
**Parameters:**
|
|
272
|
+
- `prompts` (required): List of text prompts
|
|
273
|
+
- `model`: Model to use for all images
|
|
274
|
+
- `enhance_prompt`: Enhance all prompts (default: true)
|
|
275
|
+
- `aspect_ratio`: Aspect ratio for all images
|
|
276
|
+
- `batch_size`: Parallel processing size (default: from config)
|
|
277
|
+
|
|
278
|
+
**Example:**
|
|
279
|
+
```
|
|
280
|
+
Batch generate images for these prompts:
|
|
281
|
+
1. "minimalist logo design for a tech startup"
|
|
282
|
+
2. "modern dashboard UI design"
|
|
283
|
+
3. "mobile app wireframe"
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## 🎨 Advanced Features
|
|
287
|
+
|
|
288
|
+
### AI Prompt Enhancement
|
|
289
|
+
|
|
290
|
+
When enabled (default), the server uses Gemini Flash to automatically enhance your prompts:
|
|
291
|
+
|
|
292
|
+
**Original:** `a cat wearing a space helmet`
|
|
293
|
+
|
|
294
|
+
**Enhanced:** `A photorealistic portrait of a domestic tabby cat wearing a futuristic space helmet, close-up composition, warm studio lighting, detailed fur texture, reflective helmet visor showing subtle reflections, soft focus background, professional photography style`
|
|
295
|
+
|
|
296
|
+
This significantly improves image quality without requiring you to be a prompt engineering expert!
|
|
297
|
+
|
|
298
|
+
### Google Search Grounding
|
|
299
|
+
|
|
300
|
+
Generate images based on real-time data:
|
|
301
|
+
|
|
302
|
+
```
|
|
303
|
+
Generate an image with Google Search enabled:
|
|
304
|
+
- prompt: "Visualize the current weather forecast for San Francisco as a modern chart"
|
|
305
|
+
- enable_google_search: true
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
The response will include grounding metadata with search sources used.
|
|
309
|
+
|
|
310
|
+
### Reference Images for Consistency
|
|
311
|
+
|
|
312
|
+
Maintain consistent characters and objects across generations:
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
Generate an image with:
|
|
316
|
+
- prompt: "An office group photo of these people, they are making funny faces"
|
|
317
|
+
- reference_image_paths: ["/path/person1.png", "/path/person2.png", "/path/person3.png"]
|
|
318
|
+
- aspect_ratio: "5:4"
|
|
319
|
+
- image_size: "2K"
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
You can provide up to 14 reference images (max 6 objects, max 5 humans).
|
|
323
|
+
|
|
324
|
+
### High-Resolution Assets
|
|
325
|
+
|
|
326
|
+
Generate professional 4K assets:
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
Generate a 4K image of "minimalist logo design for a tech startup"
|
|
330
|
+
with image_size: "4K" and aspect_ratio: "1:1"
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
## ⚙️ Configuration
|
|
334
|
+
|
|
335
|
+
### Environment Variables
|
|
336
|
+
|
|
337
|
+
| Variable | Description | Default |
|
|
338
|
+
|----------|-------------|---------|
|
|
339
|
+
| `GEMINI_API_KEY` | Google Gemini API key (required) | - |
|
|
340
|
+
| `OUTPUT_DIR` | Directory for generated images | `~/gemini_images` |
|
|
341
|
+
| `ENABLE_PROMPT_ENHANCEMENT` | Enable AI prompt enhancement | `true` |
|
|
342
|
+
| `ENABLE_BATCH_PROCESSING` | Enable batch processing | `true` |
|
|
343
|
+
| `DEFAULT_MODEL` | Default model | `gemini-3-pro-image-preview` |
|
|
344
|
+
| `DEFAULT_IMAGE_SIZE` | Default resolution | `2K` |
|
|
345
|
+
| `ENABLE_GOOGLE_SEARCH` | Enable Google Search grounding | `false` |
|
|
346
|
+
| `REQUEST_TIMEOUT` | API request timeout (seconds) | `60` |
|
|
347
|
+
| `MAX_BATCH_SIZE` | Maximum parallel batch size | `8` |
|
|
348
|
+
| `LOG_LEVEL` | Logging level | `INFO` |
|
|
349
|
+
|
|
350
|
+
## 📚 MCP Resources
|
|
351
|
+
|
|
352
|
+
### `models://list`
|
|
353
|
+
View all available models with descriptions and features.
|
|
354
|
+
|
|
355
|
+
### `settings://config`
|
|
356
|
+
View current server configuration.
|
|
357
|
+
|
|
358
|
+
## 🎭 Use Cases
|
|
359
|
+
|
|
360
|
+
### Web Development
|
|
361
|
+
- Hero images and banners
|
|
362
|
+
- UI/UX mockups and wireframes
|
|
363
|
+
- Logo and branding assets
|
|
364
|
+
- Placeholder images
|
|
365
|
+
|
|
366
|
+
### App Development
|
|
367
|
+
- App icons and splash screens
|
|
368
|
+
- User interface elements
|
|
369
|
+
- Marketing materials
|
|
370
|
+
- Documentation images
|
|
371
|
+
|
|
372
|
+
### Content Creation
|
|
373
|
+
- Blog post illustrations
|
|
374
|
+
- Social media graphics
|
|
375
|
+
- Presentation visuals
|
|
376
|
+
- Product mockups
|
|
377
|
+
|
|
378
|
+
### Creative Projects
|
|
379
|
+
- Character design iterations
|
|
380
|
+
- Concept art exploration
|
|
381
|
+
- Style variations
|
|
382
|
+
- Scene composition
|
|
383
|
+
|
|
384
|
+
## 📊 Gemini 3 Pro Image Features
|
|
385
|
+
|
|
386
|
+
| Feature | Support | Details |
|
|
387
|
+
|---------|---------|---------|
|
|
388
|
+
| Resolution Options | ✅ 1K, 2K, 4K | Built-in high-resolution generation |
|
|
389
|
+
| Reference Images | ✅ Up to 14 | 6 objects + 5 humans for consistency |
|
|
390
|
+
| Google Search Grounding | ✅ Real-time data | Weather, stocks, events, maps |
|
|
391
|
+
| Thinking Mode | ✅ Advanced reasoning | Visible thought process and interim images |
|
|
392
|
+
| Text Rendering | ✅ Advanced | Legible text in infographics, menus, diagrams |
|
|
393
|
+
| Aspect Ratios | ✅ 10 options | Full flexibility for any format |
|
|
394
|
+
| Response Modalities | ✅ TEXT + IMAGE | Dual output modes |
|
|
395
|
+
| Prompt Enhancement | ✅ Built-in | AI-powered optimization |
|
|
396
|
+
| Thought Signatures | ✅ Automatic | Preserved across multi-turn interactions |
|
|
397
|
+
| Best For | Professional assets, marketing, real-time visualization |
|
|
398
|
+
|
|
399
|
+
## 🐛 Troubleshooting
|
|
400
|
+
|
|
401
|
+
### "spawn uvx ENOENT" error
|
|
402
|
+
- **Cause**: Claude Desktop cannot find the `uvx` command in its PATH
|
|
403
|
+
- **Solution**: Use the full path to uvx in your config:
|
|
404
|
+
```json
|
|
405
|
+
"command": "/Users/yourusername/.local/bin/uvx"
|
|
406
|
+
```
|
|
407
|
+
- Find your uvx location with: `which uvx`
|
|
408
|
+
|
|
409
|
+
### Custom output directory
|
|
410
|
+
- **Default**: Images are automatically saved to `~/gemini_images` in your home directory
|
|
411
|
+
- **Customize**: Set `OUTPUT_DIR` in your MCP config if you want a different location:
|
|
412
|
+
```json
|
|
413
|
+
"env": {
|
|
414
|
+
"GEMINI_API_KEY": "your-key",
|
|
415
|
+
"OUTPUT_DIR": "/your/custom/path"
|
|
416
|
+
}
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
### "GEMINI_API_KEY not found"
|
|
420
|
+
- Add your API key to `.env` or environment variables
|
|
421
|
+
- Get a free key at [Google AI Studio](https://makersuite.google.com/app/apikey)
|
|
422
|
+
|
|
423
|
+
### "Content blocked by safety filters"
|
|
424
|
+
- Modify your prompt to comply with content policies
|
|
425
|
+
- Try rephrasing without potentially sensitive content
|
|
426
|
+
|
|
427
|
+
### "Rate limit exceeded"
|
|
428
|
+
- Wait a few moments and try again
|
|
429
|
+
- Consider upgrading your API plan for higher limits
|
|
430
|
+
|
|
431
|
+
### Images not saving
|
|
432
|
+
- Check that OUTPUT_DIR exists and is writable
|
|
433
|
+
- Verify you have sufficient disk space
|
|
434
|
+
- Create the directory manually: `mkdir -p /path/to/your/images`
|
|
435
|
+
|
|
436
|
+
## 🤝 Contributing
|
|
437
|
+
|
|
438
|
+
Contributions are welcome! This project combines the best features from multiple MCP servers:
|
|
439
|
+
- mcp-image (TypeScript): Prompt enhancement and editing features
|
|
440
|
+
- nanobanana-mcp-server (Python): Architecture and FastMCP integration
|
|
441
|
+
- gemini-imagen-mcp-server (TypeScript): Imagen API support and batch processing
|
|
442
|
+
|
|
443
|
+
## 📄 License
|
|
444
|
+
|
|
445
|
+
MIT License - see LICENSE file for details.
|
|
446
|
+
|
|
447
|
+
## 🙏 Acknowledgments
|
|
448
|
+
|
|
449
|
+
Built on the excellent work of:
|
|
450
|
+
- [mcp-image](https://github.com/shinpr/mcp-image) - Prompt enhancement concept
|
|
451
|
+
- [nanobanana-mcp-server](https://github.com/zhongweili/nanobanana-mcp-server) - FastMCP architecture
|
|
452
|
+
- [gemini-imagen-mcp-server](https://github.com/serkanhaslak/gemini-imagen-mcp-server) - Imagen integration
|
|
453
|
+
|
|
454
|
+
## 🔗 Links
|
|
455
|
+
|
|
456
|
+
- [Google AI Studio](https://makersuite.google.com/app/apikey) - Get your API key
|
|
457
|
+
- [Gemini API Documentation](https://ai.google.dev/gemini-api/docs)
|
|
458
|
+
- [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
**Ready to create amazing AI-generated images?** Install now and start generating! 🚀
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
src/__init__.py,sha256=QhfDgdKNkj7VNKYCnWzS7PDgEkT-8_3DGPrN6p7dWY4,435
|
|
2
|
+
src/server.py,sha256=E7l9SsGRhp5LIRUMuiNyl8tHnPf0DRrPCiP341fsU9w,6063
|
|
3
|
+
src/config/__init__.py,sha256=Se6o4DG-6D7NocDlY-6MtEc8c0ymMjjqiV1ibQei_4s,966
|
|
4
|
+
src/config/constants.py,sha256=CWyNgxUNRWAB1f9rd2U1d1k5h1IubZ4KX5I8juyJUec,1521
|
|
5
|
+
src/config/settings.py,sha256=DHdPRHclJC0QvSuUrKGOqD7N93hqJsi9n72MsqBvrvs,4516
|
|
6
|
+
src/core/__init__.py,sha256=9Lg-eD9zD7EqoW4gC7Bk9PrupDPigO9Zo5aGo133yQU,1034
|
|
7
|
+
src/core/exceptions.py,sha256=NVb4tpwoX_DR-Wp8r73brXvZhEP35SUMyuEis8llFR0,1211
|
|
8
|
+
src/core/validation.py,sha256=fGyXlczVjuwxEbNJS7MxA-bIEv6e-SmXKnJ_APuuXI4,3781
|
|
9
|
+
src/services/__init__.py,sha256=90BlTCXk69ajrjSz1RvnEld-cqlZLr3cIKDxn69mzEQ,335
|
|
10
|
+
src/services/gemini_client.py,sha256=yBaMsznAS4TwPBz1HhnXePsnw_gGwxCbiybetUvndFs,11900
|
|
11
|
+
src/services/image_service.py,sha256=MBJ-7vrmfSSDOnwtwgWPKjYznwbwG21GyDCyu7EP4cc,6080
|
|
12
|
+
src/services/prompt_enhancer.py,sha256=sCAzLDgrwiUQ9-1DTGMdk04a-6f67WP_cKmtBVVnvbI,4930
|
|
13
|
+
src/tools/__init__.py,sha256=zBfAjFT51LvvD7WXTfDYiyJstRdphr2ChddAmGMZxkI,346
|
|
14
|
+
src/tools/batch_generate.py,sha256=JRtAZa4u_G7WUTrk3VolsT6iJFg-2rHoW0VFrVvP50A,6337
|
|
15
|
+
src/tools/generate_image.py,sha256=XtJ-o14sCM3QpJRXRTuHaZelj8FxzVEZK0_A6y2hDGE,8678
|
|
16
|
+
ultimate_gemini_mcp-3.0.7.dist-info/METADATA,sha256=AxhiwHolNr9nYXJZQKCuOOoEUqbtu3Pb_uPZdwAcc5E,15971
|
|
17
|
+
ultimate_gemini_mcp-3.0.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
18
|
+
ultimate_gemini_mcp-3.0.7.dist-info/entry_points.txt,sha256=-BeRTT4oR05e-YnF1ZNbNxlaekD4LsWhD-Zy_1dyRnc,56
|
|
19
|
+
ultimate_gemini_mcp-3.0.7.dist-info/licenses/LICENSE,sha256=ilyzUnN0QHYtYGJks-NFUwiniNu08IedLmn_muRqa0o,1480
|
|
20
|
+
ultimate_gemini_mcp-3.0.7.dist-info/RECORD,,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ultimate Gemini MCP Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
This project combines and builds upon features from:
|
|
26
|
+
- mcp-image (https://github.com/shinpr/mcp-image)
|
|
27
|
+
- nanobanana-mcp-server (https://github.com/zhongweili/nanobanana-mcp-server)
|
|
28
|
+
- gemini-imagen-mcp-server (https://github.com/serkanhaslak/gemini-imagen-mcp-server)
|
|
29
|
+
|
|
30
|
+
Each of these projects has its own license. Please refer to their respective
|
|
31
|
+
repositories for their licensing terms.
|