{"id":35797512,"url":"https://github.com/ConechoAI/Nano-Banana-MCP","last_synced_at":"2026-06-11T04:00:53.302Z","repository":{"id":313277579,"uuid":"1050766186","full_name":"ConechoAI/Nano-Banana-MCP","owner":"ConechoAI","description":"A Nano Banana MCP server, which you can integrate to cursor/claude code and any mcp client","archived":false,"fork":false,"pushed_at":"2025-11-04T09:50:10.000Z","size":84,"stargazers_count":197,"open_issues_count":9,"forks_count":78,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-08T16:29:02.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConechoAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T22:54:12.000Z","updated_at":"2026-06-04T06:47:30.000Z","dependencies_parsed_at":"2025-09-05T02:22:58.831Z","dependency_job_id":"888ee6ac-21e1-4e5b-be30-0e3880fc6d0c","html_url":"https://github.com/ConechoAI/Nano-Banana-MCP","commit_stats":null,"previous_names":["conechoai/nano-banana-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ConechoAI/Nano-Banana-MCP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConechoAI%2FNano-Banana-MCP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConechoAI%2FNano-Banana-MCP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConechoAI%2FNano-Banana-MCP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConechoAI%2FNano-Banana-MCP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConechoAI","download_url":"https://codeload.github.com/ConechoAI/Nano-Banana-MCP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConechoAI%2FNano-Banana-MCP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34181555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-07T10:00:54.767Z","updated_at":"2026-06-11T04:00:53.292Z","avatar_url":"https://github.com/ConechoAI.png","language":"JavaScript","funding_links":[],"categories":["MCP Servers for Creative Work","📚 Projects (2474 total)"],"sub_categories":["Image, Video, Audio Generation","MCP Servers"],"readme":"# Nano-Banana MCP Server 🍌\n\n\u003e **🤖 This project was entirely generated by [Claude Code](https://claude.ai/code)** - an AI coding assistant that can create complete, production-ready applications from scratch.\n\nA Model Context Protocol (MCP) server that provides AI image generation and editing capabilities using Google's Gemini 2.5 Flash Image API. Generate stunning images, edit existing ones, and iterate on your creations with simple text prompts.\n\n\u003ca href=\"https://glama.ai/mcp/servers/@ConechoAI/Nano-Banana-MCP\"\u003e\n  \u003cimg width=\"380\" height=\"200\" src=\"https://glama.ai/mcp/servers/@ConechoAI/Nano-Banana-MCP/badge\" alt=\"Nano-Banana-MCP MCP server\" /\u003e\n\u003c/a\u003e\n\n## ✨ Features\n\n- 🎨 **Generate Images**: Create new images from text descriptions\n- ✏️ **Edit Images**: Modify existing images with text prompts\n- 🔄 **Iterative Editing**: Continue editing the last generated/edited image\n- 🖼️ **Multiple Reference Images**: Use reference images for style transfer and guidance\n- 🌍 **Cross-Platform**: Smart file paths for Windows, macOS, and Linux\n- 🔧 **Easy Setup**: Simple configuration with API key\n- 📁 **Auto File Management**: Automatic image saving with organized naming\n\n## 🔑 Setup\n\n1. **Get your Gemini API key**:\n   - Visit [Google AI Studio](https://aistudio.google.com/app/apikey)\n   - Create a new API key\n   - Copy it for configuration\n\n2. **Configure the MCP server**:\n   See configuration examples for your specific client below (Claude Code, Cursor, or other MCP clients).\n\n## 💻 Usage with Claude Code\n\n### Configuration:\n\nAdd this to your Claude Code MCP settings:\n\n**Option A: With environment variable (Recommended - Most Secure)**\n```json\n{\n  \"mcpServers\": {\n    \"nano-banana\": {\n      \"command\": \"npx\",\n      \"args\": [\"nano-banana-mcp\"],\n      \"env\": {\n        \"GEMINI_API_KEY\": \"your-gemini-api-key-here\"\n      }\n    }\n  }\n}\n```\n\n**Option B: Without environment variable**\n```json\n{\n  \"mcpServers\": {\n    \"nano-banana\": {\n      \"command\": \"npx\",\n      \"args\": [\"nano-banana-mcp\"]\n    }\n  }\n}\n```\n\n### Usage Examples:\n```\nGenerate an image of a sunset over mountains\n```\n\n```\nEdit this image to add some birds in the sky\n```\n\n```\nContinue editing to make it more dramatic\n```\n\n## 🎯 Usage with Cursor\n\n### Configuration:\n\nAdd to your Cursor MCP configuration:\n\n**Option A: With environment variable (Recommended)**\n```json\n{\n  \"nano-banana\": {\n    \"command\": \"npx\",\n    \"args\": [\"nano-banana-mcp\"],\n    \"env\": {\n      \"GEMINI_API_KEY\": \"your-gemini-api-key-here\"\n    }\n  }\n}\n```\n\n**Option B: Without environment variable**\n```json\n{\n  \"nano-banana\": {\n    \"command\": \"npx\",\n    \"args\": [\"nano-banana-mcp\"]\n  }\n}\n```\n\n### Usage Examples:\n- Ask Cursor to generate images for your app\n- Create mockups and prototypes  \n- Generate assets for your projects\n\n## 🔧 For Other MCP Clients\n\nIf you're using a different MCP client, you can configure nano-banana-mcp using any of these methods:\n\n### Configuration Methods\n\n**Method A: Environment Variable in MCP Config (Recommended)**\n```json\n{\n  \"nano-banana\": {\n    \"command\": \"npx\",\n    \"args\": [\"nano-banana-mcp\"],\n    \"env\": {\n      \"GEMINI_API_KEY\": \"your-gemini-api-key-here\"\n    }\n  }\n}\n```\n\n**Method B: System Environment Variable**\n```bash\nexport GEMINI_API_KEY=\"your-gemini-api-key-here\"\nnpx nano-banana-mcp\n```\n\n**Method C: Using the Configure Tool**\n```bash\nnpx nano-banana-mcp\n# The server will prompt you to configure when first used\n# This creates a local .nano-banana-config.json file\n```\n\n## 🛠️ Available Commands\n\n### `generate_image`\nCreate a new image from a text prompt.\n```typescript\ngenerate_image({\n  prompt: \"A futuristic city at night with neon lights\"\n})\n```\n\n### `edit_image`\nEdit a specific image file.\n```typescript\nedit_image({\n  imagePath: \"/path/to/image.png\",\n  prompt: \"Add a rainbow in the sky\",\n  referenceImages?: [\"/path/to/reference.jpg\"] // optional\n})\n```\n\n### `continue_editing`\nContinue editing the last generated/edited image.\n```typescript\ncontinue_editing({\n  prompt: \"Make it more colorful\",\n  referenceImages?: [\"/path/to/style.jpg\"] // optional\n})\n```\n\n### `get_last_image_info`\nGet information about the last generated image.\n```typescript\nget_last_image_info()\n```\n\n### `configure_gemini_token`\nConfigure your Gemini API key.\n```typescript\nconfigure_gemini_token({\n  apiKey: \"your-gemini-api-key\"\n})\n```\n\n### `get_configuration_status`\nCheck if the API key is configured.\n```typescript\nget_configuration_status()\n```\n\n## ⚙️ Configuration Priority\n\nThe MCP server loads your API key in the following priority order:\n\n1. **🥇 MCP Configuration Environment Variables** (Highest Priority)\n   - Set in your `claude_desktop_config.json` or MCP client config\n   - Most secure as it's contained within the MCP configuration\n   - Example: `\"env\": { \"GEMINI_API_KEY\": \"your-key\" }`\n\n2. **🥈 System Environment Variables**\n   - Set in your shell/system environment\n   - Example: `export GEMINI_API_KEY=\"your-key\"`\n\n3. **🥉 Local Configuration File** (Lowest Priority)\n   - Created when using the `configure_gemini_token` tool\n   - Stored as `.nano-banana-config.json` in current directory\n   - Automatically ignored by Git and NPM\n\n**💡 Recommendation**: Use Method 1 (MCP config env variables) for the best security and convenience.\n\n## 📁 File Storage\n\nImages are automatically saved to platform-appropriate locations:\n\n- **Windows**: `%USERPROFILE%\\\\Documents\\\\nano-banana-images\\\\`\n- **macOS/Linux**: `./generated_imgs/` (in current directory)\n- **System directories**: `~/nano-banana-images/` (when run from system paths)\n\nFile naming convention:\n- Generated images: `generated-[timestamp]-[id].png`\n- Edited images: `edited-[timestamp]-[id].png`\n\n## 🎨 Example Workflows\n\n### Basic Image Generation\n1. `generate_image` - Create your base image\n2. `continue_editing` - Refine and improve\n3. `continue_editing` - Add final touches\n\n### Style Transfer\n1. `generate_image` - Create base content\n2. `edit_image` - Use reference images for style\n3. `continue_editing` - Fine-tune the result\n\n### Iterative Design\n1. `generate_image` - Start with a concept\n2. `get_last_image_info` - Check current state\n3. `continue_editing` - Make adjustments\n4. Repeat until satisfied\n\n## 🔧 Development\n\nThis project was created with Claude Code and follows these technologies:\n\n- **TypeScript** - Type-safe development\n- **Node.js** - Runtime environment  \n- **Zod** - Schema validation\n- **Google GenAI** - Image generation API\n- **MCP SDK** - Model Context Protocol\n\n### Local Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/claude-code/nano-banana-mcp.git\ncd nano-banana-mcp\n\n# Install dependencies\nnpm install\n\n# Run in development mode\nnpm run dev\n\n# Build for production\nnpm run build\n\n# Run tests\nnpm test\n```\n\n## 📋 Requirements\n\n- Node.js 18.0.0 or higher\n- Gemini API key from Google AI Studio\n- Compatible with Claude Code, Cursor, and other MCP clients\n\n## 🤝 Contributing\n\nThis project was generated by Claude Code, but contributions are welcome! Please feel free to:\n\n- Report bugs\n- Suggest new features\n- Submit pull requests\n- Improve documentation\n\n## 📄 License\n\nMIT License - see [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- **[Claude Code](https://claude.ai/code)** - For generating this entire project\n- **Google AI** - For the powerful Gemini 2.5 Flash Image API\n- **Anthropic** - For the Model Context Protocol\n- **Open Source Community** - For the amazing tools and libraries\n\n## 📞 Support\n\n- 🐛 **Issues**: [GitHub Issues](https://github.com/claude-code/nano-banana-mcp/issues)\n- 📖 **Documentation**: This README and inline code comments\n- 💬 **Discussions**: [GitHub Discussions](https://github.com/claude-code/nano-banana-mcp/discussions)\n\n---\n\n*✨ Generated with love by [Claude Code](https://claude.ai/code) - The future of AI-powered development is here!*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConechoAI%2FNano-Banana-MCP","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FConechoAI%2FNano-Banana-MCP","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConechoAI%2FNano-Banana-MCP/lists"}