MeiGen AI Image Generation MCP

MeiGen AI Image Generation MCP

Turn Claude Code / OpenClaw into your local Lovart. Local ComfyUI, 1,400+ prompt library, multi-direction parallel generation.

Category
访问服务器

README

<h1 align="center"> MeiGen AI Design MCP <a href="https://github.com/punkpeye/awesome-mcp-servers"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome MCP Servers"></a> </h1>

<p align="center"> <strong>Turn Claude Code / OpenClaw into your personal design assistant rivaling Lovart</strong><br><sub>Local ComfyUI generation, API integration, 1,300+ pro prompt library, multi-direction parallel output</sub> </p>

<p align="center"> <a href="https://www.npmjs.com/package/meigen"><img src="https://img.shields.io/npm/v/meigen?style=flat-square&color=blue" alt="npm version"></a> <a href="https://www.npmjs.com/package/meigen"><img src="https://img.shields.io/npm/dm/meigen?style=flat-square&color=green" alt="npm downloads"></a> <img src="https://img.shields.io/badge/Type-MCP_Server-blue?style=flat-square" alt="MCP Server"> <img src="https://img.shields.io/badge/Local-ComfyUI-green?style=flat-square" alt="ComfyUI Support"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-lightgrey?style=flat-square" alt="MIT"></a> <a href="https://discord.gg/uX6rnersUx"><img src="https://img.shields.io/badge/Discord-Join-5865F2?style=flat-square&logo=discord&logoColor=white" alt="Discord"></a> </p>

<p align="center"> <a href="#quick-start">Quick Start</a> • <a href="#see-it-in-action">Demo</a> • <a href="#features">Features</a> • <a href="#providers">Providers</a> • <a href="#slash-commands">Commands</a> </p>

<p align="center"> <strong>English</strong> | <a href="README.zh-CN.md">中文</a> </p>


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

<p align="center"> <a href="https://youtu.be/JQ3DZ1DXqvs"> <img src="https://img.youtube.com/vi/JQ3DZ1DXqvs/maxresdefault.jpg" alt="Watch Demo" width="400"> </a> <br> <b><a href="https://youtu.be/JQ3DZ1DXqvs">▶ Watch demo on YouTube</a></b> </p>

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:

<p align="center"> <img src="assets/demo-process.jpg" alt="Parallel generation process" width="700"> </p>

Result — 4 creative directions delivered in under 2 minutes:

<p align="center"> <img src="assets/demo-result.jpg" alt="Generation results" width="700"> </p>

Generated images:

<p align="center"> <img src="assets/sample-luxury.jpg" alt="Luxury still life" width="24%"> <img src="assets/sample-model.jpg" alt="Model campaign" width="24%"> <img src="assets/sample-botanicals.jpg" alt="Nature botanicals" width="24%"> <img src="assets/sample-minimal.jpg" alt="Minimalist editorial" width="24%"> </p>


Quick Start

Claude Code Plugin (Recommended)

# Add the plugin marketplace
/plugin marketplace add jau123/MeiGen-AI-Design-MCP

# Install
/plugin install meigen@meigen-marketplace

Restart Claude Code after installation (close and reopen, or open a new terminal tab).

First-Time Setup

Free features work immediately after restart — try:

"Search for some creative inspiration"

To unlock image generation, run the setup wizard:

/meigen:setup

The wizard walks you through:

  1. Choose a provider — local ComfyUI, MeiGen Cloud, or any OpenAI-compatible API (bring your own key & endpoint)
  2. Enter credentials — ComfyUI URL, API token, or key
  3. 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-toolkit

Our 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.


<h2 id="features">Features</h2>

MCP Tools

Tool Free Description
search_gallery Yes Search 1,500+ curated trending prompts with visual previews (powered by nanobanana-trending-prompts)
get_inspiration Yes Get full prompt, all images, and metadata for any gallery entry
enhance_prompt Yes Transform a brief idea into a professional image prompt
list_models Yes List available models across all configured providers
upload_reference_image Yes Compress and upload a local image for use as a reference
comfyui_workflow Yes Manage ComfyUI workflow templates: list, view, import, modify, delete
manage_preferences Yes Remember your preferred style, aspect ratio, model, and favorite prompts
generate_image Key Generate an image — routes to the best available provider automatically

Slash Commands

Command Description
/meigen:gen <prompt> Quick generate — skip conversation, go straight to image
/meigen:find <keywords> Search 1,300+ curated prompts for inspiration
/meigen:models Browse and switch AI models for this session
/meigen:ref <file> Upload a local image as reference, get a URL back
/meigen:setup Interactive provider configuration wizard

Smart Agents

MeiGen uses specialized sub-agents for efficient parallel execution:

Agent Purpose
image-generator Executes generate_image in isolated context — enables true parallel generation
prompt-crafter Writes multiple distinct prompts for batch generation (runs on Haiku for cost efficiency)
gallery-researcher 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)

<h2 id="providers">Providers</h2>

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:

  1. Sign in at meigen.ai
  2. Click your avatar → Settings → API Keys
  3. 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:setup

The 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_API_TOKEN MeiGen platform token
OPENAI_API_KEY Your API key (any OpenAI-compatible provider)
OPENAI_BASE_URL API base URL — change this to use Together AI, Fireworks AI, etc.
OPENAI_MODEL Model name at your provider (e.g., gpt-image-1.5, flux-schnell)
COMFYUI_URL ComfyUI server URL (default: http://localhost:8188)

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.ai for 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选