Command Palette

Search for a command to run...

UnylyUnyly
Browse all

PanPan Image Generator Server

FreeNot checked

AI-powered image generation and editing server for Claude Code, supporting multiple Gemini models, batch generation, shared context, and conversion to PDF/PPTX.

GitHubEmbed

About

AI-powered image generation and editing server for Claude Code, supporting multiple Gemini models, batch generation, shared context, and conversion to PDF/PPTX.

README

PanPan Image Generator

PanPan Image Generator MCP

AI-powered image generation & editing MCP server for Claude Code

FeaturesModelsQuick StartToolsExamples


Features

  • Multi-model support — Gemini Pro Image Preview (1K/2K/4K) and Gemini Flash Image Preview
  • Image editing — Edit existing images with text instructions, supports multi-image reference
  • Batch generation — High-concurrency worker pool for parallel image generation
  • Shared context — Generate series of images with consistent style (great for slides, tutorials, card sets)
  • Resolution control — 1K / 2K / 4K presets or custom WxH, plus aspect ratio selection
  • Format conversion — Convert images to PDF or PowerPoint (PPTX)
  • Smart file handling — Auto-fallback output directory, customizable per-request save paths

Supported Models

Model ID Alias Quality
gemini-3-pro-image-preview nanobananapro High quality, 1K
gemini-3-pro-image-preview-2k High quality, 2K
gemini-3-pro-image-preview-4k High quality, 4K
gemini-3.1-flash-image-preview nanobanana2, gemini-flash Fast

All models are accessed through any OpenAI-compatible API endpoint that supports Gemini image generation.


Demo


Art illustration

Cyberpunk

Chinese ink painting

Quick Start

Install

git clone https://github.com/panda920/panpan-image-generator-mcp.git
cd panpan-image-generator-mcp
npm install

Configure

Copy the example env file and fill in your API key:

cp .env.example .env

Edit .env:

GEMINI_API_KEY=your_api_key_here
GEMINI_API_BASE=https://openrouter.ai/api/v1

Use with Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "panpan-image-generator": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/panpan-image-generator-mcp/panpan-image-generator-mcp-server.js"],
      "env": {
        "GEMINI_API_KEY": "your_api_key",
        "GEMINI_API_BASE": "https://openrouter.ai/api/v1"
      }
    }
  }
}

Tools

Image Generation

Tool Description
generate_image_batch Generate one or more images with high concurrency. Supports all 4 models, custom resolution and aspect ratio.
generate_image_with_shared_context Batch generate images with shared style context for visual consistency. Ideal for slides, tutorials, card sets.

Image Editing

Tool Description
edit_image_nano Edit images (single or batch). Supports all 4 models, multi-image reference, custom resolution and aspect ratio.

Format Conversion

Tool Description
images_to_pdf Convert multiple images to a PDF document (one image per page, full bleed).
images_to_pptx Convert multiple images to a PowerPoint presentation.

Examples

In Claude Code, just ask naturally:

Generate a cyberpunk cityscape at night in 4K

Edit this image: change the background to blue

Batch generate 5 cat illustrations in different styles

Create a 10-slide presentation with consistent branding, then export to PPTX

Environment Variables

Variable Default Description
GEMINI_API_KEY API key (required)
GEMINI_API_BASE https://openrouter.ai/api/v1 OpenAI-compatible API base URL
GEMINI_MODEL gemini-3-pro-image-preview Default Pro model
GEMINI_FLASH_MODEL gemini-3.1-flash-image-preview Default Flash model
OUTPUT_DIR Current working directory Default output directory

Requirements

  • Node.js >= 18.0.0

License

MIT License


Made with ❤️ by PanPan

from github.com/panda920/panpan-image-generator-mcp

Install PanPan Image Generator Server in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install panpan-image-generator-mcp-server

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add panpan-image-generator-mcp-server -- npx -y github:panda920/panpan-image-generator-mcp

FAQ

Is PanPan Image Generator Server MCP free?

Yes, PanPan Image Generator Server MCP is free — one-click install via Unyly at no cost.

Does PanPan Image Generator Server need an API key?

No, PanPan Image Generator Server runs without API keys or environment variables.

Is PanPan Image Generator Server hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install PanPan Image Generator Server in Claude Desktop, Claude Code or Cursor?

Open PanPan Image Generator Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare PanPan Image Generator Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs