PanPan Image Generator MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PanPan Image Generator MCP ServerGenerate a fantasy landscape in 4K"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: ModelsLab Text2Image MCP Server
Supported Models
Model ID | Alias | Quality |
|
| High quality, 1K |
| — | High quality, 2K |
| — | High quality, 4K |
|
| Fast |
All models are accessed through any OpenAI-compatible API endpoint that supports Gemini image generation.
Demo
Quick Start
Install
git clone https://github.com/panda920/panpan-image-generator-mcp.git
cd panpan-image-generator-mcp
npm installConfigure
Copy the example env file and fill in your API key:
cp .env.example .envEdit .env:
GEMINI_API_KEY=your_api_key_here
GEMINI_API_BASE=https://openrouter.ai/api/v1Use 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 one or more images with high concurrency. Supports all 4 models, custom resolution and aspect ratio. |
| Batch generate images with shared style context for visual consistency. Ideal for slides, tutorials, card sets. |
Image Editing
Tool | Description |
| Edit images (single or batch). Supports all 4 models, multi-image reference, custom resolution and aspect ratio. |
Format Conversion
Tool | Description |
| Convert multiple images to a PDF document (one image per page, full bleed). |
| 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 PPTXEnvironment Variables
Variable | Default | Description |
| — | API key (required) |
|
| OpenAI-compatible API base URL |
|
| Default Pro model |
|
| Default Flash model |
| Current working directory | Default output directory |
Requirements
Node.js >= 18.0.0
License
MIT License
Available Tools
5 toolsedit_image_nanoA
编辑图像(单张或批量)。支持全部四款生图模型,支持多图参考,支持指定分辨率和宽高比。
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | 模型选择,默认 nanobananapro | |
| requests | No | 【批量】批量编辑请求列表 | |
| imagePath | No | 【单张】要编辑的图像路径 | |
| editPrompt | No | 【单张】编辑指令 | |
| image_size | No | 图像分辨率预设:1K(1024x576)、2K(2048x1152,默认)、4K(3840x2160) | 2K |
| resolution | No | 自定义分辨率,格式 WxH,如 1920x1080。优先级高于 image_size。 | |
| concurrency | No | 并发数,默认 10 | |
| aspect_ratio | No | 宽高比 | |
| saveToFilePath | No | 保存路径 | |
| referenceImages | No | 【单张】参考图片路径数组 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full behavioral burden. It only lists features and makes an inaccurate claim of 'all four models' when the schema contains eight model enums. It does not disclose save behavior, overwrite risks, or output details.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. Each clause adds a relevant capability, and it is appropriately sized for the tool's scope.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 10 parameters, no annotations, and no output schema, so the description must compensate. It fails to explain mode selection (single vs. batch), how to choose between imagePath/requests, or what the tool returns—leaving significant gaps for a complex tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the structured fields already document every parameter. The description adds minimal meaning beyond naming feature areas like resolution and aspect ratio, which the schema already covers.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool edits images ('编辑图像') and specifies single or batch scope. It mentions key capabilities (all models, multi-reference, resolution/aspect ratio) that distinguish it from sibling generation or conversion tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies editing existing images rather than generating new ones, and explicitly notes single/batch usage. However, it does not explicitly name alternatives or exclusions, so it falls short of full guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
generate_image_batchA
批量生图(单张或多张,高并发)。支持全部四款模型:nanobananapro / gemini-3-pro-image-preview(高质量)、gemini-3-pro-image-preview-2k(2K)、gemini-3-pro-image-preview-4k(4K)、nanobanana2 / gemini-flash(快速)。支持指定分辨率和宽高比。
📁 路径规则:① 每条请求可单独指定 saveToFilePath;② 可用 outputDir 统一指定目录(默认当前工作目录);③ 写入失败时自动 fallback 到 MCP 服务器目录。
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | 模型选择:nanobananapro(高质量,默认)、gemini-3-pro-image-preview-2k(Pro 2K)、gemini-3-pro-image-preview-4k(Pro 4K)、nanobanana2(快速) | |
| requests | Yes | 生成请求列表 | |
| outputDir | No | 可选,统一指定输出目录(不含文件名)。未指定时默认为当前工作目录。单条请求的 saveToFilePath 优先级更高。 | |
| image_size | No | 图像分辨率预设:1K(1024x576)、2K(2048x1152,默认)、4K(3840x2160) | 2K |
| resolution | No | 自定义分辨率,格式 WxH,如 1920x1080。优先级高于 image_size。 | |
| concurrency | No | 并发数,默认 10 | |
| aspect_ratio | No | 宽高比 |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full transparency burden. It discloses important behavioral traits: automatic fallback to MCP server directory on write failure, priority of saveToFilePath over outputDir, and default concurrency. It does not mention return format or error handling, but the disclosed behaviors are substantial.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and front-loaded: the first sentence establishes the tool's purpose, the model list is compact, and the path rules are presented as a numbered list. Every sentence adds value with no fluff or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has 7 parameters with 100% schema coverage and no output schema, the description adequately enhances context with path priority and fallback rules. It does not explicitly state return values, but the output is implicitly file paths, and the description covers the critical behavioral aspects for a batch tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds some value by grouping models by quality/speed and explaining path fallback, but most parameter semantics are already present in the schema. No major compensatory additions exist.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states '批量生图(单张或多张,高并发)' – batch image generation (single or multiple, high concurrency). It also lists supported models and options, effectively distinguishing itself from sibling tools like edit_image_nano, images_to_pdf, and images_to_pptx.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides strong contextual cues: batch vs single, high concurrency, path priority rules, and fallback behavior. However, it does not explicitly name alternative tools or state when not to use this tool, so it stops short of a perfect 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
images_to_pdfA
将多张图片转换为 PDF(每页一张,完美填充无空白)。
| Name | Required | Description | Default |
|---|---|---|---|
| imagePaths | Yes | ||
| outputPath | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden. It discloses a key behavioral trait: each image is placed on its own PDF page with 'perfect fill and no whitespace'. However, it does not mention potential side effects like overwriting existing files, page size, or aspect ratio handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with the key information, no fluff, and the action is front-loaded. Every clause serves a purpose, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity, the description covers the core function but leaves gaps: parameter details are absent, and it does not mention behaviors like overwriting output or supported image formats. It's adequate but not comprehensive, especially with no annotations or output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema includes imagePaths and outputPath, but the description adds no explanation for these parameters. With 0% schema description coverage, the description should compensate, but it only names the conversion, leaving parameter semantics to be inferred from their self-explanatory names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'convert' and resource 'multiple images to PDF', with specific scope details 'one per page, perfectly filled without whitespace'. This distinguishes it from the sibling images_to_pptx by the output format (PDF vs PPTX).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when a PDF output is needed, but it does not explicitly mention when to use this tool over the sibling images_to_pptx or any exclusions. It provides clear context but lacks alternative guidance, so it receives a 3.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
images_to_pptxC
将多张图片转换为 PowerPoint (PPTX) 文件。
| Name | Required | Description | Default |
|---|---|---|---|
| imagePaths | Yes | ||
| outputPath | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full transparency responsibility. It only states that images are converted to PPTX, but does not disclose whether outputPath is overwritten, how image order is handled, supported image formats, or error behavior. This leaves significant behavioral uncertainty.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no redundant words. It is front-loaded and easy to parse, earning its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has a simple schema but no annotations or output schema. The description covers only the core conversion function and lacks context about when to use it, how it differs from alternatives (especially images_to_pdf), and what happens to the output. This makes it minimally complete but insufficient for complex decision-making.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no descriptions for imagePaths or outputPath (0% coverage). The description mentions 'multiple images' and 'PPTX file', which loosely maps to the parameters, but it does not explicitly define what imagePaths and outputPath represent (e.g., file paths) or explain their roles. Given the low schema coverage, the description insufficiently compensates.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description '将多张图片转换为 PowerPoint (PPTX) 文件' clearly states the tool converts multiple images into a PPTX file, specifying a specific verb, input, and output format. It is distinguishable from siblings by the PPTX format, though it does not explicitly contrast with the similar images_to_pdf tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives like images_to_pdf. The description only states the conversion action without any context, prerequisites, or exclusions, leaving the agent to infer usage based on the output format.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The two generation tools (generate_image_with_shared_context and generate_image_batch) overlap somewhat, but their descriptions clarify different use cases: one for style-consistent series, the other for high-concurrency generic batch generation. The editing and conversion tools are clearly distinct from each other and from the generation tools.
The naming is mixed: the first three tools use a verb_noun pattern (generate_image_*, edit_image_*), but the last two use a noun_to_noun pattern (images_to_pdf, images_to_pptx). The suffix 'nano' in edit_image_nano is also inconsistent with the other names. The pattern is readable but not uniform.
With 5 tools, the server is well-scoped for its purpose of image generation, editing, and conversion to common presentation formats. Each tool serves a distinct purpose without unnecessary bloat.
The server covers the core lifecycle of creating, editing, and converting images. Minor gaps exist, such as lack of explicit format conversion beyond PDF/PPTX or model listing, but the primary workflows are supported.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate and edit images and create short videos inside Claude. Prepaid credits, no subscription.
Generate AI images, video, speech, music and presentations from Claude, ChatGPT and Cursor.
MCP server for Qwen Image 3 AI image generation
AI content generation with 50+ models: image, video, TTS, voice cloning, and more.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceA server that provides AI-powered image generation, modification, and processing capabilities through the Model Context Protocol, leveraging Google Gemini models and other image services.18MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Claude Code to generate high-quality AI images using ModelsLab API with support for multiple image generation models including Flux, Stable Diffusion, and Midjourney.
- AlicenseNot gradedqualityDmaintenanceAI-powered image and video generation and processing server that supports text-to-image, image-to-image, text/image-to-video generation, image analysis, and comprehensive editing operations (crop, resize, convert, adjust) through providers like Doubao and Aliyun.6MIT
- AlicenseAqualityDmaintenanceAn MCP server that brings Google Gemini's image generation and editing capabilities to Claude Desktop, Claude Code, and Cursor. It supports 2K image creation, natural language image transformations, and session consistency to maintain styles across generations.71,171MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/panda920/panpan-image-generator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server