Nano Banana MCP Server
Enables integration with Google AI Studio services to utilize the Google AI Studio API for image generation tasks.
Allows for the generation of images from text prompts by interacting with the Gemini Nano Banana Pro model.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nano Banana MCP Server generate a cinematic image of a lone astronaut exploring a crystal cave"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nano Banana MCP Server
MCP服务器,用于通过Google AI Studio API调用Gemini Nano Banana Pro (gemini-3-pro-image-preview) 图像生成模型。
版本: 1.0.0
功能
调用Google Gemini Nano Banana模型生成图像
支持通过MCP协议在opencode等客户端中使用
生成图片会保存到本地文件
Related MCP server: gemini-image-mcp
安装
npm install
npm run build配置
复制
.env.example为.env:
cp .env.example .env在
.env中设置你的Google API Key:
GOOGLE_API_KEY=your_api_key_here环境变量
变量 | 说明 | 默认值 |
| Google AI Studio API密钥 | (必填) |
| HTTPS代理地址 | 系统代理 |
运行
npm start在opencode中使用
在opencode的mcp配置中添加:
{
"mcp": {
"nanobanana": {
"type": "local",
"command": ["node", "/path/to/nanobanana-mcp-server/dist/index.js"],
"env": {
"GOOGLE_API_KEY": "your_api_key"
},
"enabled": true
}
}
}工具
generate_image
生成图像
参数:
prompt(required): 图像描述文本output_dir: 图片保存目录 (默认当前目录)
示例:
用nano banana画一只可爱的猫咪Available Tools
1 toolgenerate_imageC
Generate images using Google Gemini Nano Banana Pro (gemini-3-pro-image-preview) model
Inputs: prompt (required), output_dir.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generate_image' has a clearly distinct purpose that cannot be confused with any other tool in this set.
The single tool name 'generate_image' follows a clear verb_noun pattern. With only one tool, there is perfect consistency as there are no other tools to compare against or create naming conflicts with.
A single tool for an image generation server feels thin and under-scoped. While it might cover the core functionality, typical MCP servers for such domains would include additional tools like list_models, get_image_details, or variations of generation parameters. The count of 1 suggests limited capability for agents to perform related operations.
The tool surface is severely incomplete for an image generation domain. There is only a generation tool with no supporting operations like model listing, configuration management, image retrieval, or editing capabilities. This creates significant gaps that will likely cause agent failures when trying to perform comprehensive image-related tasks.
Maintenance
Related MCP Connectors
MCP server for Qwen Image 3 AI image generation
Generate AI images and videos from any compatible MCP client.
MCP server for Flux AI image generation
MCP server for Grok Imagine AI video generation
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server for image generation using the Gemini API.1160 npm2MIT
- FlicenseAqualityDmaintenanceMCP server that generates images using Gemini models via an OpenAI-compatible gateway.19-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides image generation using Google's Nano Banana Gemini models, with additional tools for background removal, upscaling, and format conversion via deterministic post-processing.1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language.27 npm1MIT