loading…
Search for a command to run...
loading…
Image generation
Image generation
Fast, cost-efficient image generation and editing for MCP. Powered by Nano Banana 2 via OpenRouter.
.env loading, API key presence, selected model, and optionally run a live OpenRouter connectivity test.NANO_BANANA_MODEL_ID if you want to point the server at a different OpenRouter image model.Clone this repository:
git clone https://github.com/BearThreat/nano-banana-openrouter-mcp
cd nano-banana-openrouter-mcp
Install dependencies:
npm install
Build the server:
npm run build
Add the server to your MCP settings file (e.g., cline_mcp_settings.json or claude_desktop_config.json):
{
"mcpServers": {
"nano-banana": {
"command": "node",
"args": ["/path/to/nano-banana-openrouter-mcp/build/index.js"],
"cwd": "/path/to/nano-banana-openrouter-mcp",
"env": {
"OPENROUTER_API_KEY": "your-openrouter-api-key",
"NANO_BANANA_MODEL_ID": "google/gemini-3.1-flash-image-preview"
},
"disabled": false,
"autoApprove": [
"edit_or_create_image",
"batch_edit_or_create_images",
"start_annotation",
"get_annotation_results",
"complete_annotation_edit",
"health_check"
]
}
}
}
Once configured, your AI client will have access to the image generation tools.
By default, this server now targets Nano Banana 2 on OpenRouter:
google/gemini-3.1-flash-image-preview
This was chosen for better speed/cost tradeoffs. You can still override it with NANO_BANANA_MODEL_ID if needed.
{
"prompt": "Generate a modern technical infographic about the Model Context Protocol.",
"outputPath": "infographic.png"
}
{
"tasks": [
{ "prompt": "Create a blue circle", "outputPath": "circle.png" },
{ "prompt": "Create a red square", "outputPath": "square.png" },
{ "prompt": "Combine circle.png and square.png into a single composition", "imagePaths": ["circle.png", "square.png"], "outputPath": "combined.png" }
]
}
Use the start_annotation tool to open a browser-based annotation UI where you can draw freehand markings on images and add notes:
{
"imagePaths": ["photo1.jpg", "photo2.png", "design.webp"]
}
This opens a visual editor where you can:
Notes about {filename}:)The tool returns:
annotatedImagePaths: Paths to the annotated images (saved in .nano-banana-temp/ folder)combinedPrompt: All individual prompts concatenated togetheroriginalImagePaths: The original input pathsThis is particularly useful when you want to point out specific areas in images that need editing, which the AI can then use with edit_or_create_image.
If the user has already completed the annotation step in the browser, you can call complete_annotation_edit to retrieve the saved annotation results and immediately apply the edit in one tool call.
Use health_check to verify local configuration and optionally test OpenRouter connectivity:
{
"testApi": true
}
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"imagen": {
"command": "npx",
"args": []
}
}
}Transcripts, channel stats, search
AI image generation using various models.
Unified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
A powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,