mcp-server-nano-banana
v1.0.0
Published
MCP server for Nano Banana DUOMI AI image generation and editing
Maintainers
Readme
MCP Nano Banana Server
A Model Context Protocol (MCP) server that integrates with DUOMI's Nano Banana AI for image generation and editing.
Features
Tools
generate_image- Generate new images using Nano Banana AIprompt(required): Text description for image generationmodel(optional): AI model, default "gemini-2.5-pro-image-preview"aspect_ratio(optional): Image aspect ratioimage_size(optional): Image size like "1K", default "1K"poll_interval(optional): Polling interval in seconds, default 5max_attempts(optional): Maximum polling attempts, default 60
edit_image- Edit existing images using Nano Banana AIprompt(required): Text description for image editingimage_urls(required): Comma-separated list of image URLs to editmodel(optional): AI model, default "gemini-2.5-pro-image-preview"aspect_ratio(optional): Image aspect ratioimage_size(optional): Image size like "1K", default "1K"poll_interval(optional): Polling interval in seconds, default 5max_attempts(optional): Maximum polling attempts, default 60
Installation
npm install -g mcp-server-nano-bananaConfiguration
You need to obtain a DUOMI API token:
- Visit DUOMI website and register for an account
- Get your API token from the developer dashboard
- Set the
DUOMI_API_TOKENenvironment variable
Usage with Claude Desktop
Add the server config to your Claude Desktop configuration:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"nano-banana": {
"command": "npx",
"args": ["-y", "mcp-server-nano-banana"],
"env": {
"DUOMI_API_TOKEN": "your-api-token-here"
},
"disabled": false,
"autoApprove": []
}
}
}Or if using npm install (traditional way):
{
"mcpServers": {
"nano-banana": {
"command": "mcp-server-nano-banana",
"env": {
"DUOMI_API_TOKEN": "your-api-token-here"
},
"disabled": false,
"autoApprove": []
}
}
}Development
Clone this repository and install dependencies:
git clone https://github.com/Lunar-feedmob/Duomi_banana_MCP.git
cd Duomi_banana_MCP
npm install
npm run buildDebug with MCP Inspector
npm run inspectorThis will provide a URL to access debugging tools in your browser.
License
MIT
Contributing
Contributions are welcome. Please open issues and pull requests on GitHub.
