gemini-image-mcp
by lordmoocow
Overview
This server provides an MCP (Multi-Component Platform) interface for generating images using Google's Gemini 3 Pro Image model.
Installation
export PYTHONPATH="/workspaces/website/nano-banana-mcp-server/src:$PYTHONPATH" && export PATH="/workspaces/website/nano-banana-mcp-server/.venv/bin:$PATH" && /workspaces/website/nano-banana-mcp-server/.venv/bin/python -c "import sys; sys.path.insert(0, '/workspaces/website/nano-banana-mcp-server/src'); import asyncio; from nano_banana_mcp import server; asyncio.run(server.main())"Environment Variables
- GOOGLE_API_KEY
Security Notes
The `call_tool` function allows users to specify an arbitrary `file_path` for saving generated images. This path is used directly with `pathlib.Path(file_path)` and `path.write_bytes()`. This presents a significant directory traversal vulnerability, as a malicious user could specify paths like `../../../../tmp/malicious.png` to write files to arbitrary locations on the server's filesystem, potentially overwriting critical files or planting malicious executables, especially if the server runs with elevated permissions. The `path.resolve()` call occurs after the file write and only resolves the path for reporting, not for preventing the write itself. No input sanitization for `file_path` is evident.
Similar Servers
gemini-mcp-server
An MCP server providing a suite of 7 AI-powered tools (Image Gen/Edit, Chat, Audio Transcribe, Code Execute, Video/Image Analysis) powered by Google Gemini, featuring a self-learning "Smart Tool Intelligence" system for prompt enhancement and user preference adaptation.
nanobanana-api-mcp
An MCP server providing image generation and editing capabilities via the Google Gemini API, integrable with various AI coding assistants and IDEs.
ultimate-image-gen-mcp
A professional MCP server for Google's Gemini 3 Pro Image Preview, enabling state-of-the-art image generation with advanced reasoning, high-resolution output (1K-4K), up to 14 reference images, Google Search grounding, and automatic thinking mode.
gemini-mcp
The server provides a Model Context Protocol (MCP) interface to Google Gemini AI services, enabling multimodal generation including image creation, image editing, and video production.