Discover and explore top open-source AI tools and projects—updated daily.
zhongweiliAI image generation server with intelligent model selection
Top 90.4% on SourcePulse
This project provides a production-ready Model Context Protocol (MCP) server for AI-powered image generation, leveraging Google's Gemini models. It targets developers and power users seeking to integrate advanced image synthesis capabilities into their workflows, offering intelligent model selection, high-resolution output, and features like real-world grounding for enhanced accuracy and consistency.
How It Works
The server acts as an MCP endpoint, routing requests to Google's Gemini models. It features "Smart Model Selection," automatically directing prompts to the Gemini 3.1 Flash Image (NB2) for balanced speed and quality, or the Gemini 3 Pro Image for complex reasoning tasks. This approach optimizes performance and leverages advanced capabilities such as Google Search Grounding for factual accuracy, subject consistency across multiple elements, and precise text rendering within generated images.
Quick Start & Requirements
io.github.zhongweili/nanobanana-mcp-server), uvx nanobanana-mcp-server@latest, or pip install nanobanana-mcp-server.NANOBANANA_AUTH_METHOD (API Key, Vertex AI, or auto). API Key authentication requires setting the GEMINI_API_KEY environment variable. Vertex AI requires NANOBANANA_AUTH_METHOD=vertex_ai, GCP_PROJECT_ID, and GCP_REGION.Highlighted Details
output_path parameter.Maintenance & Community
Support and discussions are primarily handled through GitHub Issues and Discussions for the repository.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration into closed-source applications, provided the terms of the license are met.
Limitations & Caveats
Authentication requires either a Google Gemini API key or Google Cloud Vertex AI setup. The legacy "Flash" model is limited to 1024px resolution. Local development requires cloning the repository and managing Python dependencies.
2 weeks ago
Inactive
markfulton