Back to Home
greatSumini icon

nanobanana-api-mcp

by greatSumini

Overview

An MCP server providing image generation and editing capabilities via the Google Gemini API, integrable with various AI coding assistants and IDEs.

Installation

Run Command
nanobanana-api-mcp --apiKey "your-api-key-here"

Environment Variables

  • GOOGLE_API_KEY

Security Notes

The server processes user-provided file paths for image input/output (`path`, `output_path`, `reference_images_path`). While the documentation states 'ABSOLUTE path' and 'Relative paths are NOT accepted', there is no explicit server-side validation in the handlers (e.g., `generate-image.ts`, `edit-image.ts`) to ensure paths are absolute and confined to safe directories. This could lead to path traversal vulnerabilities if a malicious client provides manipulated paths, potentially allowing arbitrary file read/write on the server's filesystem. The Google API key is correctly handled via environment variables or CLI arguments, not hardcoded.

Similar Servers

Stats

Interest Score87
Security Score5
Cost ClassMedium
Avg Tokens5000
Stars14
Forks0
Last Update2025-11-25

Tags

image-generationimage-editingGoogle GeminiMCPAI