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 "Install 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 Servergenerate 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画一只可爱的猫咪Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. It allows users to create new images from text, modify existing files, and perform iterative edits through natural language prompts.Last updated61,090MIT
- FlicenseAqualityDmaintenanceMCP server that generates images using Gemini models via an OpenAI-compatible gateway.Last updated19
- Alicense-qualityCmaintenanceAn 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.Last updated1MIT
- Alicense-qualityDmaintenanceA local stdio MCP server for generating images using Google's Gemini image models, saving to disk as JPEG.Last updated1,090MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Flux AI image generation
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/NH-5/nanobanana-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server