The MeiGen AI Image Generation MCP server turns LLMs into creative design assistants, supporting multi-provider image generation, prompt engineering, and a curated inspiration gallery.
Core Capabilities:
Generate Images: Create AI images using MeiGen Cloud, local ComfyUI, or any OpenAI-compatible API (e.g., Together AI, Fireworks AI). Supports prompts, reference images, aspect ratios, negative prompts, and quality settings.
Enhance Prompts: Transform simple ideas (e.g., "a cat in a garden") into detailed, professional prompts in
realistic,anime, orillustrationstyles — free, no API key needed.Search Gallery: Semantically search 1,500+ curated trending prompts with visual previews, filterable by category and sortable by rank, likes, views, or date.
Get Inspiration: Retrieve full prompt details and image URLs for any gallery entry to use as style references or direct generation input.
List Models: Browse available AI image generation models with pricing and capabilities across all configured providers.
Upload Reference Images: Compress and upload local images (JPEG, PNG, WebP, GIF) to temporary cloud storage as public URLs (expire in 24 hours) for use in generation.
Manage ComfyUI Workflows: List, view, import, modify, and delete ComfyUI workflow templates, including node parameters like steps, CFG, sampler, and dimensions.
Manage Preferences: Save and retrieve user defaults for style, aspect ratio, model, provider, style notes, and favorite prompts.
Parallel Generation: Generate multiple image variations or creative directions simultaneously using specialized sub-agents.
Slash Commands: Quick access via
/meigen:gen,/meigen:find,/meigen:models,/meigen:ref, and/meigen:setupfor streamlined workflows.
Includes an automation hook that automatically opens generated images in the macOS Preview application for immediate visual feedback and a more efficient design workflow.
Supports image generation by connecting to any OpenAI-compatible API endpoint, allowing users to leverage various external models and providers using a standardized interface.
What Is This?
An open-source MCP Server (installed via plugin marketplace) that gives LLMs creative and aesthetic capabilities through 8 tools and carefully designed skills, enabling them to handle complex design tasks. It teaches LLMs how to use various image generation models effectively, delivering professional results through reference images and multi-direction parallel workflows.
Works with local ComfyUI — no external API dependency; also easily integrates with any custom API
Built-in 1,500+ curated prompt templates from nanobanana-trending-prompts and fine-tuned prompt engineering techniques that turn requirements into concrete image generation tasks
Parallel batch generation and sub-agent execution to keep the main context window clean
See It in Action
Product Photo — 4 Directions in Parallel
"Create 4 product display images for this perfume, one of which should feature a model."
Process — AI uploads the reference image, crafts 4 distinct prompts, then generates all 4 in parallel:
Result — 4 creative directions delivered in under 2 minutes:
Generated images:
Quick Start
Claude Code Plugin (Recommended)
# Add the plugin marketplace
/plugin marketplace add jau123/MeiGen-AI-Design-MCP
# Install
/plugin install meigen@meigen-marketplaceRestart Claude Code after installation (close and reopen, or open a new terminal tab).
Alternative marketplace — also available via wshobson/agents (30k+ stars):
/plugin marketplace add wshobson/agents
/plugin install meigen-ai-design@claude-code-workflowsThis marketplace doesn't bundle MCP server config. After installing, add to your project's
.mcp.json:{ "mcpServers": { "meigen": { "command": "npx", "args": ["-y", "meigen@1.2.5"] } } }
First-Time Setup
Free features work immediately after restart — try:
"Search for some creative inspiration"
To unlock image generation, run the setup wizard:
/meigen:setupThe wizard walks you through:
Choose a provider — local ComfyUI, MeiGen Cloud, or any OpenAI-compatible API (bring your own key & endpoint)
Enter credentials — ComfyUI URL, API token, or key
Done — restart Claude Code once more, then start generating
Cursor / VS Code / Windsurf / Roo Code
One command to set up MeiGen for any supported AI coding tool:
npx meigen init cursor # Cursor
npx meigen init vscode # VS Code / GitHub Copilot
npx meigen init windsurf # Windsurf
npx meigen init roo # Roo Code
npx meigen init claude # Claude Code (project-level)This writes the correct MCP config file with the right format and path for your tool. If a config file already exists, MeiGen is merged in without overwriting your other servers.
OpenClaw
Install from ClawHub, or use the CLI:
npx clawhub@latest install creative-toolkitOur skills follow the Agent Skills open standard — copy them into your OpenClaw workspace and they work directly. For MCP tools, use OpenClaw's MCP adapter to connect the MeiGen server.
Other MCP-Compatible Hosts
Add to your MCP config (e.g. .mcp.json, claude_desktop_config.json):
{
"mcpServers": {
"meigen": {
"command": "npx",
"args": ["-y", "meigen@latest"],
"env": {
"MEIGEN_API_TOKEN": "meigen_sk_..."
}
}
}
}Free features (inspiration search, prompt enhancement, model listing) work without any API key.
MCP Tools
Tool | Free | Description |
| Yes | Search 1,500+ curated trending prompts with visual previews (powered by nanobanana-trending-prompts) |
| Yes | Get full prompt, all images, and metadata for any gallery entry |
| Yes | Transform a brief idea into a professional image prompt |
| Yes | List available models across all configured providers |
| Yes | Compress and upload a local image for use as a reference |
| Yes | Manage ComfyUI workflow templates: list, view, import, modify, delete |
| Yes | Remember your preferred style, aspect ratio, model, and favorite prompts |
| Key | Generate an image — routes to the best available provider automatically |
Slash Commands
Command | Description |
| Quick generate — skip conversation, go straight to image |
| Search 1,300+ curated prompts for inspiration |
| Browse and switch AI models for this session |
| Upload a local image as reference, get a URL back |
| Interactive provider configuration wizard |
Smart Agents
MeiGen uses specialized sub-agents for efficient parallel execution:
Agent | Purpose |
| Executes |
| Writes multiple distinct prompts for batch generation (runs on Haiku for cost efficiency) |
| Deep gallery exploration without cluttering the main conversation (runs on Haiku) |
Output Styles
Switch creative modes with /output-style:
Creative Director — Art direction mode with visual storytelling, mood boards, and design thinking
Minimal — Just images and file paths, no commentary. Ideal for batch workflows
Automation Hooks
Config Check — Validates provider configuration on session start, guides setup if missing
Auto-Open — Generated images automatically open in Preview (macOS)
MeiGen MCP supports three image generation backends. Configure one or multiple — the system auto-selects the best available.
ComfyUI — Local & Free
Run generation on your own GPU with full control over models, samplers, and workflow parameters. Import any ComfyUI API-format workflow — MeiGen auto-detects KSampler, CLIPTextEncode, EmptyLatentImage, and LoadImage nodes.
{
"comfyuiUrl": "http://localhost:8188",
"comfyuiDefaultWorkflow": "txt2img"
}Perfect for Flux, SDXL, or any model you run locally. Your images never leave your machine.
MeiGen Cloud
Cloud API with multiple models: Nanobanana 2, Seedream 5.0, GPT image 1.5, and more. No GPU required.
Get your API token:
Sign in at meigen.ai
Click your avatar → Settings → API Keys
Create a new key (starts with
meigen_sk_)
{ "meigenApiToken": "meigen_sk_..." }Bring Your Own API (OpenAI-Compatible)
Connect any image generation API that follows the OpenAI format — Together AI, Fireworks AI, DeepInfra, SiliconFlow, or your own endpoint. Just provide your key, base URL, and model name:
{
"openaiApiKey": "sk-...",
"openaiBaseUrl": "https://api.together.xyz/v1",
"openaiModel": "black-forest-labs/FLUX.1-schnell"
}All three providers support reference images. MeiGen and OpenAI-compatible APIs accept URLs directly; ComfyUI accepts both URLs and local file paths, injecting them into LoadImage nodes in your workflow.
Configuration
Interactive Setup (Recommended)
/meigen:setupThe wizard walks you through provider selection, API key entry, and ComfyUI workflow import. You can also paste a curl command from your API provider's docs — it auto-extracts the key, URL, and model.
Config File
Configuration is stored at ~/.config/meigen/config.json. ComfyUI workflows are stored at ~/.config/meigen/workflows/.
Environment Variables
Environment variables take priority over the config file.
Variable | Description |
| MeiGen platform token |
| Your API key (any OpenAI-compatible provider) |
| API base URL — change this to use Together AI, Fireworks AI, etc. |
| Model name at your provider (e.g., |
| ComfyUI server URL (default: |
Privacy
MeiGen MCP respects your privacy. Here's what happens with your data:
ComfyUI (local) — All processing stays on your machine. No data is sent externally.
MeiGen Cloud — Prompts and reference images are sent to
api.meigen.aifor generation. Generated images are stored temporarily on Cloudflare R2. See meigen.ai/privacy.OpenAI-compatible — Prompts and reference images are sent to the configured API endpoint. See your provider's privacy policy.
Reference image upload — Images are compressed locally (max 2MB) and uploaded to Cloudflare R2 via
gen.meigen.ai. Uploaded images expire automatically after 24 hours. No authentication required. ComfyUI users can skip uploading entirely by passing local file paths directly.Gallery search & prompt enhancement — Run locally against bundled data. No external API calls.
No telemetry, analytics, or tracking of any kind.
Custom Storage Backend
If you prefer to use your own S3/R2 bucket for reference image uploads, set the UPLOAD_GATEWAY_URL environment variable or uploadGatewayUrl in ~/.config/meigen/config.json to point to your own presign endpoint. The endpoint must implement:
POST /upload/presign
Content-Type: application/json
Request: { "filename": "photo.jpg", "contentType": "image/jpeg", "size": 123456 }
Response: { "success": true, "presignedUrl": "https://...", "publicUrl": "https://..." }The presignedUrl is used for a PUT upload, and publicUrl is the publicly accessible URL returned to the user.
License
MIT — free for personal and commercial use.