Back to Home
Riti0208 icon

nano-banana-mcp

Verified Safe

by Riti0208

Overview

This server provides a Model Context Protocol (MCP) interface for advanced image generation, editing, analysis, and batch processing using Google's Gemini 2.5 Flash Image Preview and Gemini 3 Pro Image Preview models.

Installation

Run Command
node dist/index.js

Environment Variables

  • GEMINI_API_KEY

Security Notes

The server uses `@modelcontextprotocol/sdk` with a `StdioServerTransport`, which primarily communicates over standard I/O, limiting direct external network exposure. The Google Gemini API key is correctly managed via environment variables (`GEMINI_API_KEY`) and not hardcoded. File system operations (`fs.readFile`, `fs.writeFile`, `fs.mkdir`) are performed for image input and output. The default output directory is `~/Downloads/nano-banana-images`, but custom `outputDir` and `imagePath` arguments are accepted. While control over these paths could theoretically lead to unintended file access in a highly compromised client environment, this is a common and expected interaction for a local agent-based tool and not an inherent vulnerability in the server logic itself. No 'eval' or other direct code execution vulnerabilities were found.

Similar Servers

Stats

Interest Score30
Security Score8
Cost ClassHigh
Avg Tokens1000000
Stars1
Forks0
Last Update2025-12-09

Tags

Image GenerationImage EditingImage AnalysisGoogle GeminiModel Context Protocol