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

mcp-imagenate

v0.1.8

Published

MCP server for image generation using multiple providers (Google Gemini, OpenAI, BFL FLUX)

Readme

mcp-imagenate

An MCP server for image generation using multiple providers: Google Gemini, OpenAI (gpt-image), and BFL FLUX.

Providers & Models

Google Gemini (Nano Banana)

| Name | Model ID | Best for | | ----------------- | -------------------------------- | ---------------------------- | | nano-banana-2 | gemini-3.1-flash-image-preview | Fast, high-volume generation | | nano-banana-pro | gemini-3-pro-image-preview | Highest quality output |

OpenAI

| Name | Model ID | Best for | | ----------------- | ----------------- | ------------------------------ | | gpt-image-1.5 | gpt-image-1.5 | High quality, prompt adherence |

BFL FLUX

| Name | Model ID | Best for | | --------------- | ------------- | -------------------------------- | | flux-2-klein | klein-4b | Fast, lightweight generation | | flux-2-pro | pro-preview | Balanced quality and speed | | flux-2-max | max | Maximum quality |

Requirements

  • Node.js 18+
  • At least one provider API key

Installation

npx mcp-imagenate

Or install globally:

npm install -g mcp-imagenate

Setup

Set API keys for the providers you want to use:

# Google Gemini (at least one)
export GEMINI_API_KEY=your_key_here
# or
export NANO_BANANA_API_KEY=your_key_here

# OpenAI (at least one)
export OPENAI_API_KEY=your_key_here
# or
export GPT_IMAGE_API_KEY=your_key_here

# BFL FLUX
export BFL_API_KEY=your_key_here

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-imagenate": {
      "command": "npx",
      "args": ["mcp-imagenate"],
      "env": {
        "GEMINI_API_KEY": "your_key_here",
        "NANO_BANANA_OUTPUT_DIR": "/path/to/image/output"
      }
    }
  }
}

Environment Variables

| Variable | Required | Description | | ------------------------- | -------- | ------------------------------------------------------------------------------------------------------------- | | GEMINI_API_KEY | * | Google AI Studio API key | | NANO_BANANA_API_KEY | * | Alternative to GEMINI_API_KEY (takes precedence) | | OPENAI_API_KEY | * | OpenAI API key | | GPT_IMAGE_API_KEY | * | Alternative to OPENAI_API_KEY (takes precedence) | | BFL_API_KEY | * | BFL FLUX API key | | NANO_BANANA_OUTPUT_DIR | No | Base directory for saved images. When set, all output and input paths are sandboxed within this directory. Recommended for production. |

* At least one provider API key must be set.

Tool: generate_image

Parameters

| Parameter | Type | Default | Description | | -------------- | ------------------------------------------------------ | ----------------- | ----------------------------------------------------------------------------- | | prompt | string (1-32,000 chars) | - | Text prompt describing the image | | model | see Models above | "nano-banana-2" | Model to use (available models depend on configured API keys) | | resolution | "1K" | "2K" | "4K" | "1K" | Output image resolution | | aspectRatio | see below | "1:1" | Aspect ratio of the image | | mode | "image" | "image_and_text" | "image" | Return image only, or image with description (Google models only) | | thinking | "none" | "auto" | "auto" | Controls model thinking (Google models only) | | outputDir | string | "." | Directory where images will be saved | | inputImages | string[] | - | File paths of images to send alongside the prompt (Google models only) |

Supported aspect ratios

1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9

Response

Returns a JSON object:

{
  "model": "gemini-3.1-flash-image-preview",
  "savedFiles": ["/path/to/image-1.png"],
  "settings": {
    "resolution": "1K",
    "aspectRatio": "9:16",
    "mode": "image"
  },
  "description": "..."
}

description is only present when mode is "image_and_text".

Security

  • Path sandboxing: When NANO_BANANA_OUTPUT_DIR is set, both output and input image paths are sandboxed within this directory. Symlinks that resolve outside the sandbox are rejected.
  • Input validation: Input images are validated for format (PNG/JPEG/WEBP/GIF) and size (max 20 MB).
  • API key validation: The server exits immediately if no API keys are configured.

License

MIT