npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mseep/gemini-image-mcp

v1.0.0

Published

Multi-editor MCP server for AI-powered image generation using Google's Gemini API. Works with Claude Desktop, Cursor, VS Code, and JetBrains IDEs. Provides business-focused tools for marketing visuals, logos, and product mockups.

Readme

Nano Banana Image MCP Server

npm version License: MIT Node.js Version

An open-source Model Context Protocol (MCP) server that provides AI-powered image generation capabilities using Google's Gemini API. Designed specifically for business applications with tools optimized for marketing, branding, and commercial use.

🎯 Features

Business-Focused Image Generation Tools

  • 🎨 Marketing Image Generator - Create professional marketing visuals and hero images
  • 🏷️ Business Logo Creator - Generate logos with accurate text rendering and branding
  • 📦 Product Mockup Generator - Design realistic product mockups for e-commerce
  • 📊 Visual Strategy Consultant - Get comprehensive visual content strategies

Key Capabilities

  • Professional Quality - Commercial-grade images suitable for business use
  • Text Rendering - Accurate text placement in logos and branded content
  • Business Context - Tools understand your industry, audience, and purpose
  • ROI Focused - Each tool provides business impact insights
  • Multiple Formats - Support for various aspect ratios and use cases

🚀 Quick Start - Choose Your Editor

This MCP server works with multiple AI-powered editors. Choose your preferred setup:

Prerequisites

  • Node.js 18 or higher
  • Google AI API key (Get one here)
  • One of the supported editors below

✨ Supported Editors

| Editor | Setup Difficulty | Features | Status | |--------|------------------|----------|--------| | Claude Desktop | Easy | Full support | ✅ Recommended | | Cursor AI | Easy | Full support | ✅ Popular | | VS Code | Medium | GitHub Copilot integration | ✅ Available | | JetBrains IDEs | Medium | AI Assistant integration | ✅ Available |

Installation

npm install -g gemini-image-mcp

Or install locally:

npm install gemini-image-mcp

Configuration

  1. Set up your API key:
    export GOOGLE_API_KEY='your-google-ai-api-key'

🛠️ Editor Configuration

Choose your editor and follow the setup instructions:

Option 1: Claude Desktop (Recommended)

Why Choose Claude: Native MCP support, easiest setup, full feature compatibility.

  1. Add to your claude_desktop_config.json:

    {
      "mcpServers": {
        "gemini-image": {
          "command": "gemini-image-mcp",
          "env": {
            "GOOGLE_API_KEY": "your-google-ai-api-key"
          }
        }
      }
    }
  2. Start using:

    • Restart Claude Desktop
    • Look for the 🔌 MCP connection indicator
    • Use the image generation tools in your conversations

Option 2: Cursor AI Editor

Why Choose Cursor: Popular AI editor, one-click MCP setup, great for developers.

  1. Method A - One-Click Setup (Recommended):

    • Open Cursor Settings → MCP Servers
    • Click "Add New MCP Server"
    • Search for "Gemini Image Generator"
    • Click install and authenticate with your Google API key
  2. Method B - Manual Configuration:

    • Create ~/.cursor/mcp.json in your home directory:
    {
      "mcpServers": {
        "gemini-image": {
          "command": "gemini-image-mcp",
          "env": {
            "GOOGLE_API_KEY": "your-google-ai-api-key"
          }
        }
      }
    }
    • Restart Cursor
  3. Start using:

    • Open Cursor's Composer (Cmd/Ctrl + I)
    • Ask to generate marketing images, logos, or product mockups
    • Tools will appear under "Available Tools" in MCP settings

Option 3: VS Code + GitHub Copilot

Why Choose VS Code: Popular editor, integrates with GitHub Copilot's agent mode.

  1. Requirements:

    • VS Code 1.102+
    • GitHub Copilot subscription
    • GitHub Copilot Chat extension
  2. Configuration:

    • Install the MCP server globally: npm install -g gemini-image-mcp
    • VS Code will auto-detect MCP servers from other tools
    • Or add to VS Code settings:
    {
      "github.copilot.chat.mcp.servers": {
        "gemini-image": {
          "command": "gemini-image-mcp",
          "env": {
            "GOOGLE_API_KEY": "your-google-ai-api-key"
          }
        }
      }
    }
  3. Start using:

    • Open GitHub Copilot Chat
    • Use agent mode (@workspace)
    • Request image generation tasks

Option 4: JetBrains IDEs (IntelliJ, PyCharm, etc.)

Why Choose JetBrains: Powerful IDEs with AI Assistant integration.

  1. Requirements:

    • JetBrains IDE with AI Assistant plugin
    • AI Assistant subscription
  2. Configuration:

    • Go to Settings → Tools → AI Assistant → Model Context Protocol
    • Add new MCP server:
      • Name: Gemini Image Generator
      • Command: gemini-image-mcp
      • Environment: GOOGLE_API_KEY=your-api-key
  3. Start using:

    • Open AI Assistant chat
    • Request image generation with business context
    • Tools will be available automatically

📖 Usage Examples

Generate Marketing Images

Use the generateMarketingImage tool to create a hero image for my coffee shop website. 
I want a warm, inviting scene showing a barista crafting latte art, with golden hour lighting 
and a cozy cafe atmosphere in the background.

Create Business Logos

Use the createBusinessLogo tool to design a modern logo for "TechFlow Solutions" 
with a minimalist style, incorporating a subtle tech icon, using blue and gray colors.

Design Product Mockups

Use the createProductMockup tool to create a mockup of my new organic skincare bottle. 
It's a 50ml glass bottle with dropper, sage green color, with "Pure Botanics" branding. 
I need a clean studio shot with soft lighting for my e-commerce site.

🛠️ Development

Local Development

  1. Clone the repository:

    git clone https://github.com/yourusername/gemini-image-mcp.git
    cd gemini-image-mcp
  2. Install dependencies:

    npm install
  3. Set up environment:

    cp .env.example .env
    # Add your GOOGLE_API_KEY to .env
  4. Run in development mode:

    npm run dev
  5. Build for production:

    npm run build

Testing the Server

# Test with a simple image generation
echo '{"method": "tools/call", "params": {"name": "generateMarketingImage", "arguments": {"prompt": "A simple test image"}}}' | npm start

🔧 Configuration Options

Environment Variables

| Variable | Required | Description | Default | |----------|----------|-------------|---------| | GOOGLE_API_KEY | ✅ Yes | Google AI API key | - | | GEMINI_API_KEY | ➖ Alternative | Alternative API key variable | - | | IMAGE_OUTPUT_DIR | ❌ No | Custom output directory | ./generated-images |

Advanced Configuration

Create a .env file for additional settings:

GOOGLE_API_KEY=your-api-key-here
IMAGE_OUTPUT_DIR=./custom-images
MAX_IMAGE_SIZE=50MB
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=3600

🖼️ Where to Find Your Generated Images

⚠️ Important: All images are saved on YOUR computer (not in Claude or the cloud)

📍 Quick Answer:

Images are saved in the generated-images/ folder on your computer.

📚 Need Help Finding Them?

Click here for the complete beginner's guide with screenshots and step-by-step instructions!

File Organization:

generated-images/
├── marketing-1756761697374.png         (Marketing visuals)
├── logo-techflow-solutions-1756761698123.png   (Business logos)
└── product-organic-skincare-1756761699456.png  (Product mockups)

How to View Your Images:

Since Claude Desktop cannot display images directly, you can view them by:

  1. Opening the folder:

    open generated-images/  # macOS
    explorer generated-images\  # Windows
  2. Quick preview latest image:

    ls -t generated-images/ | head -1 | xargs -I {} open "generated-images/{}"

🔒 Security & Privacy

  • API keys are never logged or stored in generated files
  • Images are saved locally - nothing sent to third parties
  • Input validation on all parameters
  • Error handling prevents information leakage
  • Rate limiting support to prevent abuse

Security Best Practices

  1. Store API keys securely using environment variables
  2. Restrict API key permissions in Google AI Studio
  3. Monitor API usage to detect unexpected activity
  4. Keep the server updated to the latest version

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Ways to Contribute

  • 🐛 Bug Reports - Found a bug? Let us know!
  • 💡 Feature Requests - Ideas for new capabilities
  • 📖 Documentation - Help improve our docs
  • 🔧 Code - Submit PRs for fixes and features
  • 🎨 Examples - Share creative use cases

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Ensure tests pass: npm test
  5. Submit a pull request

📊 Roadmap

Upcoming Features

  • [ ] Batch image generation for efficient processing
  • [ ] Style transfer capabilities
  • [ ] Image editing tools (crop, resize, filters)
  • [ ] Template system for consistent branding
  • [ ] Web interface for visual management
  • [ ] Integration examples for popular frameworks

Version History

  • v1.0.0 - Initial release with core image generation tools
  • More versions coming soon!

🆘 Support

Getting Help

Common Issues

Q: "Error: GOOGLE_API_KEY not found" A: Make sure you've set the environment variable: export GOOGLE_API_KEY='your-key'

Q: "Images not generating" A: Check your API key is valid and you have sufficient quota at Google AI Studio

Q: "Claude doesn't see the MCP server" A: Restart Claude Desktop after updating the configuration file

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

🌟 Star History

Star History Chart


Made with ❤️ for the open-source community

Happy image generating! 🎨