n

nanobanana-mcp-server

tipobt/nanobanana-mcp-server
Hosted
2 Stars 1.3k 次浏览 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "nanobanana": {
      "args": [
        "nanobanana-mcp-server@latest"
      ],
      "command": "uvx",
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key-here"
      }
    }
  }
}

该服务需要配置环境变量:GEMINI_API_KEY

可用工具 (4 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

generate_image 9 个参数 需填 1 项

Generate new images or edit existing images using natural language instructions. Supports multiple input modes: 1. Pure generation: Just provide a prompt to create new images 2. Multi-image conditioning: Provide up to 3 input images using input_image_path_1/2/3 parameters 3. File ID editing: Edit previously uploaded images using Files API ID 4. File path editing: Edit local images by providing single input image path Automatically detects mode based on parameters or can be explicitly controlled. Input images are read from the local filesystem to avoid massive token usage. Returns both MCP image content blocks and structured JSON with metadata.

必填参数:prompt

upload_file 2 个参数 需填 1 项

Upload a local file through the Gemini Files API and return its URI & metadata. Useful when the image is larger than 20MB or reused across prompts.

必填参数:path

show_output_stats

Show statistics about the output directory and recently generated images.

该工具无需必填参数,直接调用即可

maintenance 4 个参数 需填 1 项

Perform maintenance operations following workflows.md patterns. Available operations: - cleanup_expired: Remove expired Files API entries from database - cleanup_local: Clean old local files based on age/LRU - check_quota: Check Files API storage usage vs. ~20GB budget - database_hygiene: Clean up database inconsistencies - full_cleanup: Run all cleanup operations in sequence

必填参数:operation

服务介绍

一个生产就绪的模型上下文协议(MCP)服务器,通过Google的Gemini 2.5 Flash Image模型提供基于AI的图像生成能力。

✨ 特性

🎨 AI图像生成:从详细的文本提示中创建高质量的图像

📋 智能模板:预构建的用于摄影、设计和编辑的提示模板

📁 文件管理:通过Gemini Files API上传和管理文件

🔍 资源发现:通过MCP资源浏览模板和文件元数据

🛡️ 生产就绪:全面的错误处理、日志记录和验证

⚡ 高性能:优化的架构并带有智能缓存

相关 MCP 服务