Back to Home
zhongweili icon

nanobanana-mcp-server

Verified Safe

by zhongweili

Overview

Provides AI-powered image generation and editing capabilities through Google's Gemini models with intelligent model selection.

Installation

Run Command
uvx nanobanana-mcp-server@latest

Environment Variables

  • GEMINI_API_KEY
  • GOOGLE_API_KEY
  • NANOBANANA_AUTH_METHOD
  • GCP_PROJECT_ID
  • GCP_REGION
  • NANOBANANA_MODEL
  • IMAGE_OUTPUT_DIR
  • LOG_LEVEL
  • LOG_FORMAT
  • FASTMCP_TRANSPORT
  • FASTMCP_HOST
  • FASTMCP_PORT
  • FASTMCP_MASK_ERRORS

Security Notes

API keys are loaded from environment variables (GEMINI_API_KEY or GOOGLE_API_KEY), not hardcoded. Input validation is present for prompts and file paths, including basic path traversal protection. Error details can be masked in production. Logging of sensitive data is sanitized. Build scripts use `subprocess` for `uv` and `twine` commands, which is standard for packaging but should be run in a trusted environment. No obvious 'eval' or other highly dangerous patterns were found in the core server logic.

Similar Servers

Stats

Interest Score50
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars51
Forks29
Last Update2026-01-17

Tags

mcpaiimage-generationgemini4kmodel-selection