meigen-ai-design-mcp

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

meigen-ai-design-mcp

meigen-ai-design-mcp

Skill by ara.so — MCP Skills collection.
MeiGen AI Design MCP is an open-source MCP server that transforms AI coding tools (Claude Code, Cursor, Windsurf, Roo Code, OpenClaw, etc.) into professional design assistants. It provides unified access to 9 leading image and video generation models, a curated library of 1,446 trending prompts, and parallel sub-agent orchestration for batch generation.
ara.so开发的Skill — MCP Skills合集。
MeiGen AI Design MCP是一款开源MCP服务器,可将AI编码工具(Claude Code、Cursor、Windsurf、Roo Code、OpenClaw等)转变为专业设计助手。它提供对9款主流图像与视频生成模型的统一访问、包含1446个热门提示词的精选库,以及用于批量生成的并行子Agent编排功能。

What It Does

功能介绍

  • Multi-provider image generation: MeiGen Cloud (9 models), OpenAI-compatible APIs, or local ComfyUI
  • Video generation: Seedance 2.0, Happyhorse 1.0, Veo 3.1 via MeiGen platform
  • Curated prompt library: 1,446 trending prompts from nanobanana-trending-prompts
  • Smart prompt enhancement: Transform brief ideas into professional image prompts
  • Parallel batch generation: Sub-agents for efficient multi-variant creation
  • ComfyUI workflow management: Import, modify, and run custom workflows
  • Standalone CLI mode: Use without an MCP host for scripts and CI/CD
  • 多提供商图像生成:支持MeiGen Cloud(9种模型)、兼容OpenAI的API或本地ComfyUI
  • 视频生成:通过MeiGen平台使用Seedance 2.0、Happyhorse 1.0、Veo 3.1模型
  • 精选提示词库:包含来自nanobanana-trending-prompts的1446个热门提示词
  • 智能提示词优化:将简短想法转化为专业图像提示词
  • 并行批量生成:通过子Agent高效创建多种变体
  • ComfyUI工作流管理:导入、修改并运行自定义工作流
  • 独立CLI模式:无需MCP主机即可用于脚本和CI/CD流程

Installation

安装步骤

Claude Code (Recommended)

Claude Code(推荐)

bash
undefined
bash
undefined

Via MeiGen marketplace

通过MeiGen市场安装

/plugin marketplace add jau123/MeiGen-AI-Design-MCP /plugin install meigen@meigen-marketplace
/plugin marketplace add jau123/MeiGen-AI-Design-MCP /plugin install meigen@meigen-marketplace

Or via wshobson/agents (30k+ stars)

或通过wshobson/agents(超30k星标)安装

/plugin marketplace add wshobson/agents /plugin install meigen-ai-design@claude-code-workflows

**Restart Claude Code** after installation.
/plugin marketplace add wshobson/agents /plugin install meigen-ai-design@claude-code-workflows

安装后**重启Claude Code**。

Other MCP-Compatible Hosts

其他兼容MCP的主机

Add to your MCP config (
.mcp.json
,
claude_desktop_config.json
, etc.):
json
{
  "mcpServers": {
    "meigen": {
      "command": "npx",
      "args": ["-y", "meigen@1.3.1"],
      "env": {
        "MEIGEN_API_TOKEN": "${MEIGEN_API_TOKEN}"
      }
    }
  }
}
将以下内容添加到你的MCP配置文件(
.mcp.json
claude_desktop_config.json
等):
json
{
  "mcpServers": {
    "meigen": {
      "command": "npx",
      "args": ["-y", "meigen@1.3.1"],
      "env": {
        "MEIGEN_API_TOKEN": "${MEIGEN_API_TOKEN}"
      }
    }
  }
}

Cursor / VS Code / Windsurf / Roo Code

Cursor / VS Code / Windsurf / Roo Code

bash
npx meigen init cursor      # Cursor
npx meigen init vscode      # VS Code
npx meigen init windsurf    # Windsurf
npx meigen init roo         # Roo Code
bash
npx meigen init cursor      # Cursor
npx meigen init vscode      # VS Code
npx meigen init windsurf    # Windsurf
npx meigen init roo         # Roo Code

OpenClaw

OpenClaw

bash
undefined
bash
undefined

Full plugin (commands + skills + MCP)

完整插件(命令+技能+MCP)

openclaw bundles install clawhub:meigen-ai-design
openclaw bundles install clawhub:meigen-ai-design

Or skill only

或仅安装技能

npx clawhub@latest install creative-toolkit
undefined
npx clawhub@latest install creative-toolkit
undefined

Hermes Agent

Hermes Agent

Add to
~/.hermes/config.yaml
:
yaml
mcp_servers:
  meigen:
    command: "npx"
    args: ["-y", "meigen@1.3.1"]
    env:
      MEIGEN_API_TOKEN: "${MEIGEN_API_TOKEN}"
    timeout: 600          # Video generation can take 5-10 min
    connect_timeout: 120  # First npx download needs time
添加到
~/.hermes/config.yaml
yaml
mcp_servers:
  meigen:
    command: "npx"
    args: ["-y", "meigen@1.3.1"]
    env:
      MEIGEN_API_TOKEN: "${MEIGEN_API_TOKEN}"
    timeout: 600          # 视频生成可能需要5-10分钟
    connect_timeout: 120  # 首次npx下载需要时间

Configuration

配置说明

Initial Setup

初始设置

Run the setup wizard:
bash
/meigen:setup
The wizard walks through:
  1. Provider selection: ComfyUI (local), MeiGen Cloud, or OpenAI-compatible API
  2. Credentials: API tokens, URLs, or keys
  3. Restart: One final restart to activate
运行设置向导:
bash
/meigen:setup
向导会引导你完成以下步骤:
  1. 提供商选择:ComfyUI(本地)、MeiGen Cloud或兼容OpenAI的API
  2. 凭证配置:API令牌、URL或密钥
  3. 重启:最后一次重启以激活配置

Provider Options

提供商选项

Option 1: Local ComfyUI (Free)

选项1:本地ComfyUI(免费)

Run on your own GPU with full control:
json
{
  "comfyuiUrl": "http://localhost:8188",
  "comfyuiDefaultWorkflow": "txt2img"
}
Environment variables:
bash
COMFYUI_URL=http://localhost:8188
COMFYUI_DEFAULT_WORKFLOW=txt2img
在你自己的GPU上运行,完全可控:
json
{
  "comfyuiUrl": "http://localhost:8188",
  "comfyuiDefaultWorkflow": "txt2img"
}
环境变量:
bash
COMFYUI_URL=http://localhost:8188
COMFYUI_DEFAULT_WORKFLOW=txt2img

Option 2: MeiGen Cloud

选项2:MeiGen Cloud

Get your API token at meigen.ai → Settings → API Keys:
json
{
  "meigenApiToken": "meigen_sk_..."
}
Environment variable:
bash
MEIGEN_API_TOKEN=meigen_sk_...
meigen.ai → 设置 → API密钥获取你的API令牌:
json
{
  "meigenApiToken": "meigen_sk_..."
}
环境变量:
bash
MEIGEN_API_TOKEN=meigen_sk_...

Option 3: OpenAI-Compatible API

选项3:兼容OpenAI的API

Bring your own key and endpoint:
json
{
  "openaiCompatibleApiKey": "sk-...",
  "openaiCompatibleEndpoint": "https://api.openai.com/v1"
}
Environment variables:
bash
OPENAI_API_KEY=sk-...
OPENAI_API_BASE=https://api.openai.com/v1
使用你自己的密钥和端点:
json
{
  "openaiCompatibleApiKey": "sk-...",
  "openaiCompatibleEndpoint": "https://api.openai.com/v1"
}
环境变量:
bash
OPENAI_API_KEY=sk-...
OPENAI_API_BASE=https://api.openai.com/v1

MCP Tools

MCP工具

search_gallery (Free)

search_gallery(免费)

Search 1,446 curated trending prompts with visual previews.
TypeScript usage:
typescript
const result = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "search_gallery",
  arguments: {
    keywords: "product photography luxury",
    limit: 10
  }
});
Natural language prompt:
"Search the gallery for luxury product photography inspiration"
搜索1446个带预览图的精选热门提示词。
TypeScript用法:
typescript
const result = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "search_gallery",
  arguments: {
    keywords: "product photography luxury",
    limit: 10
  }
});
自然语言提示:
"搜索图库获取奢侈品产品摄影灵感"

get_inspiration (Free)

get_inspiration(免费)

Get full prompt, all images, and metadata for a specific gallery entry.
TypeScript usage:
typescript
const inspiration = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "get_inspiration",
  arguments: {
    id: "nanobanana_12345"
  }
});
获取特定图库条目的完整提示词、所有图像及元数据。
TypeScript用法:
typescript
const inspiration = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "get_inspiration",
  arguments: {
    id: "nanobanana_12345"
  }
});

enhance_prompt (Free)

enhance_prompt(免费)

Transform brief ideas into professional image prompts with style awareness.
TypeScript usage:
typescript
const enhanced = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "enhance_prompt",
  arguments: {
    userPrompt: "cat in kitchen",
    style: "photorealistic",
    additionalContext: "sunlit, warm tones"
  }
});
Natural language prompt:
"Enhance this prompt: a cat in a kitchen"
结合风格认知,将简短想法转化为专业图像提示词。
TypeScript用法:
typescript
const enhanced = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "enhance_prompt",
  arguments: {
    userPrompt: "cat in kitchen",
    style: "photorealistic",
    additionalContext: "sunlit, warm tones"
  }
});
自然语言提示:
"优化这个提示词:厨房里的猫"

list_models (Free)

list_models(免费)

List available models across all configured providers.
TypeScript usage:
typescript
const models = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "list_models",
  arguments: {}
});
列出所有已配置提供商的可用模型。
TypeScript用法:
typescript
const models = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "list_models",
  arguments: {}
});

generate_image (Requires API Key)

generate_image(需要API密钥)

Generate an image with automatic provider routing, reference image upload, and aspect ratio handling.
TypeScript usage:
typescript
const image = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_image",
  arguments: {
    prompt: "a minimalist tech logo, geometric shapes, blue gradient",
    model: "midjourney-v8.1",
    aspectRatio: "1:1",
    referenceImagePath: "/Users/dev/Desktop/sketch.jpg"  // Optional
  }
});
Natural language prompt:
"Generate a minimalist tech logo in 1:1 ratio using Midjourney V8.1"
With reference image:
"Generate a product shot based on this bottle.jpg in my Downloads folder"
自动路由提供商、支持参考图上传和宽高比处理的图像生成工具。
TypeScript用法:
typescript
const image = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_image",
  arguments: {
    prompt: "a minimalist tech logo, geometric shapes, blue gradient",
    model: "midjourney-v8.1",
    aspectRatio: "1:1",
    referenceImagePath: "/Users/dev/Desktop/sketch.jpg"  // 可选
  }
});
自然语言提示:
"使用Midjourney V8.1生成1:1比例的极简科技标志"
带参考图:
"根据我下载文件夹中的bottle.jpg生成产品实拍图"

generate_video (Requires API Key)

generate_video(需要API密钥)

Generate video via MeiGen platform (Seedance 2.0, Happyhorse 1.0, or Veo 3.1).
TypeScript usage:
typescript
const video = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_video",
  arguments: {
    prompt: "Camera slowly zooms into the perfume bottle, bokeh background",
    model: "seedance-2.0-fast",
    firstFrameImagePath: "/Users/dev/Pictures/bottle.jpg",  // Optional
    duration: 5
  }
});
Natural language prompt:
"Animate this product photo into a 5-second video with a slow zoom"
通过MeiGen平台生成视频(支持Seedance 2.0、Happyhorse 1.0或Veo 3.1模型)。
TypeScript用法:
typescript
const video = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_video",
  arguments: {
    prompt: "Camera slowly zooms into the perfume bottle, bokeh background",
    model: "seedance-2.0-fast",
    firstFrameImagePath: "/Users/dev/Pictures/bottle.jpg",  // 可选
    duration: 5
  }
});
自然语言提示:
"将这张产品照片制作成5秒慢变焦视频"

comfyui_workflow (Free)

comfyui_workflow(免费)

Manage ComfyUI workflow templates.
TypeScript usage:
typescript
// List workflows
const workflows = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "list"
  }
});

// View a workflow
const workflow = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "view",
    name: "txt2img"
  }
});

// Import a workflow
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "import",
    name: "custom-flux",
    workflow: JSON.stringify(workflowJson)
  }
});
管理ComfyUI工作流模板。
TypeScript用法:
typescript
// 列出工作流
const workflows = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "list"
  }
});

// 查看工作流
const workflow = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "view",
    name: "txt2img"
  }
});

// 导入工作流
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "import",
    name: "custom-flux",
    workflow: JSON.stringify(workflowJson)
  }
});

manage_preferences (Free)

manage_preferences(免费)

Store user preferences (style, aspect ratio, model, favorite prompts).
TypeScript usage:
typescript
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "manage_preferences",
  arguments: {
    action: "set",
    key: "preferredStyle",
    value: "minimalist editorial"
  }
});

const prefs = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "manage_preferences",
  arguments: {
    action: "get"
  }
});
存储用户偏好(风格、宽高比、模型、收藏提示词)。
TypeScript用法:
typescript
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "manage_preferences",
  arguments: {
    action: "set",
    key: "preferredStyle",
    value: "minimalist editorial"
  }
});

const prefs = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "manage_preferences",
  arguments: {
    action: "get"
  }
});

Slash Commands

斜杠命令

Quick shortcuts for common tasks:
CommandDescription
/meigen:gen <prompt>
Skip conversation, generate image immediately
/meigen:find <keywords>
Search prompt library
/meigen:models
Browse and switch models
/meigen:setup
Run provider configuration wizard
Example:
bash
/meigen:gen a calico cat in a sunlit kitchen, photorealistic
/meigen:find luxury product photography
/meigen:models
常用任务快捷方式:
命令描述
/meigen:gen <prompt>
跳过对话,立即生成图像
/meigen:find <keywords>
搜索提示词库
/meigen:models
浏览并切换模型
/meigen:setup
运行提供商配置向导
示例:
bash
/meigen:gen a calico cat in a sunlit kitchen, photorealistic
/meigen:find luxury product photography
/meigen:models

Standalone CLI Mode

独立CLI模式

Use MeiGen without an MCP host (for shell scripts, CI/CD, etc.):
bash
undefined
无需MCP主机即可使用MeiGen(适用于Shell脚本、CI/CD等场景):
bash
undefined

Set token once

一次性设置令牌

export MEIGEN_API_TOKEN=meigen_sk_...
export MEIGEN_API_TOKEN=meigen_sk_...

Basic generation

基础生成

npx meigen gen --prompt "a calico cat in a sunlit kitchen"
npx meigen gen --prompt "a calico cat in a sunlit kitchen"

Specific model + aspect ratio

指定模型和宽高比

npx meigen gen -p "tech logo" -m midjourney-v8.1 -r 1:1
npx meigen gen -p "tech logo" -m midjourney-v8.1 -r 1:1

With reference image

带参考图

npx meigen gen -p "product hero shot" --ref ~/Desktop/bottle.jpg
npx meigen gen -p "product hero shot" --ref ~/Desktop/bottle.jpg

Submit only (no polling, good for CI)

仅提交(不轮询,适合CI)

npx meigen gen -p "..." --no-wait
npx meigen gen -p "..." --no-wait

Machine-readable output (pipe to jq)

机器可读输出(管道到jq)

npx meigen gen -p "..." --json | jq -r '.imageUrls[0]'

**Full CLI flags:**
```bash
npx meigen gen --help

Options:
  -p, --prompt <text>        Image prompt (required)
  -m, --model <name>         Model name (default: nanobanana-2)
  -r, --ratio <ratio>        Aspect ratio (e.g. 16:9, 1:1, 3:4)
  --ref <path>               Reference image path
  --no-wait                  Submit only, don't poll for result
  --json                     Machine-readable JSON output
  -h, --help                 Display help
Output:
  • Images saved to
    ~/Pictures/meigen/
    (override with
    MEIGEN_OUTPUT_DIR
    )
  • Videos saved to
    ~/Movies/meigen/
npx meigen gen -p "..." --json | jq -r '.imageUrls[0]'

**完整CLI参数:**
```bash
npx meigen gen --help

Options:
  -p, --prompt <text>        图像提示词(必填)
  -m, --model <name>         模型名称(默认:nanobanana-2)
  -r, --ratio <ratio>        宽高比(例如16:9、1:1、3:4)
  --ref <path>               参考图路径
  --no-wait                  仅提交,不等待结果
  --json                     机器可读JSON输出
  -h, --help                 显示帮助
输出:
  • 图像保存到
    ~/Pictures/meigen/
    (可通过
    MEIGEN_OUTPUT_DIR
    修改)
  • 视频保存到`~/Movies/meigen/

Common Patterns

常见使用模式

Parallel Batch Generation

并行批量生成

Generate multiple variations in parallel using sub-agents:
Natural language prompt:
"Create 4 product display images for this perfume, one of which should feature a model"
The AI will:
  1. Upload the reference image
  2. Craft 4 distinct prompts (luxury still life, model campaign, botanical, minimalist)
  3. Spawn 4
    image-generator
    sub-agents in parallel
  4. Return all 4 images in ~2 minutes
使用子Agent并行生成多种变体:
自然语言提示:
"为这款香水创建4张产品展示图,其中一张需包含模特"
AI会:
  1. 上传参考图
  2. 编写4个不同的提示词(奢华静物、模特宣传、植物风格、极简风格)
  3. 并行生成4个
    image-generator
    子Agent
  4. 约2分钟内返回所有4张图像

Style-Aware Prompt Enhancement

风格感知提示词优化

Natural language prompt:
"Enhance this for a cinematic feel: a coffee cup on a desk"
Enhanced result:
A pristine white ceramic coffee cup on a dark walnut desk, steam rising 
gracefully, shot with shallow depth of field, warm morning light streaming 
through venetian blinds creating dramatic shadows, cinematic color grading, 
shot on Arri Alexa, 35mm lens, f/1.4
自然语言提示:
"为这个提示词添加电影质感:桌上的咖啡杯"
优化结果:
A pristine white ceramic coffee cup on a dark walnut desk, steam rising 
gracefully, shot with shallow depth of field, warm morning light streaming 
through venetian blinds creating dramatic shadows, cinematic color grading, 
shot on Arri Alexa, 35mm lens, f/1.4

ComfyUI Workflow Import

ComfyUI工作流导入

Import any ComfyUI API-format workflow:
typescript
// Read workflow from file
const workflowJson = JSON.parse(
  fs.readFileSync('path/to/workflow_api.json', 'utf8')
);

// Import into MeiGen
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "import",
    name: "flux-lora-custom",
    workflow: JSON.stringify(workflowJson)
  }
});

// Use it
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_image",
  arguments: {
    prompt: "cyberpunk street scene",
    model: "comfyui",
    workflow: "flux-lora-custom"
  }
});
导入任何ComfyUI API格式的工作流:
typescript
// 从文件读取工作流
const workflowJson = JSON.parse(
  fs.readFileSync('path/to/workflow_api.json', 'utf8')
);

// 导入到MeiGen
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "comfyui_workflow",
  arguments: {
    action: "import",
    name: "flux-lora-custom",
    workflow: JSON.stringify(workflowJson)
  }
});

// 使用该工作流
await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_image",
  arguments: {
    prompt: "cyberpunk street scene",
    model: "comfyui",
    workflow: "flux-lora-custom"
  }
});

Video from Still Image

静态图转视频

Animate a product photo into a 5-second video:
typescript
const video = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_video",
  arguments: {
    prompt: "Slow camera push towards product, bokeh background, cinematic lighting",
    model: "seedance-2.0-fast",
    firstFrameImagePath: "/Users/dev/Desktop/product.jpg",
    duration: 5
  }
});
Models:
  • seedance-2.0-fast
    : 5s, 1280×720, ~30s generation
  • seedance-2.0-pro
    : 5s, 1280×720, higher quality, ~2min
  • happyhorse-1.0
    : 6s, 1360×768, realistic motion
  • veo-3.1
    : 8s+, 1280×720, ultra-realistic, ~5-10min
将产品照片制作成5秒视频:
typescript
const video = await use_mcp_tool({
  server_name: "meigen",
  tool_name: "generate_video",
  arguments: {
    prompt: "Slow camera push towards product, bokeh background, cinematic lighting",
    model: "seedance-2.0-fast",
    firstFrameImagePath: "/Users/dev/Desktop/product.jpg",
    duration: 5
  }
});
模型说明:
  • seedance-2.0-fast
    :5秒,1280×720,约30秒生成
  • seedance-2.0-pro
    :5秒,1280×720,更高质量,约2分钟生成
  • happyhorse-1.0
    :6秒,1360×768,逼真运动效果
  • veo-3.1
    :8秒以上,1280×720,超逼真,约5-10分钟生成

Multi-Model Comparison

多模型对比

Generate the same prompt with different models:
Natural language prompt:
"Generate this prompt with Nanobanana 2, Midjourney V8.1, and Flux 2 Klein: a serene Japanese garden at dawn"
The AI will parallelize across 3 sub-agents and present all results.
使用不同模型生成同一提示词:
自然语言提示:
"使用Nanobanana 2、Midjourney V8.1和Flux 2 Klein生成这个提示词: 黎明时分宁静的日式花园"
AI会并行调用3个子Agent,并展示所有结果。

Troubleshooting

故障排除

"No provider configured"

"未配置提供商"

Symptom:
generate_image
fails with "No provider configured"
Solution:
bash
/meigen:setup
症状:
generate_image
失败并提示"No provider configured"
解决方案:
bash
/meigen:setup

Or set environment variables manually:

或手动设置环境变量:

export MEIGEN_API_TOKEN=meigen_sk_...
undefined
export MEIGEN_API_TOKEN=meigen_sk_...
undefined

ComfyUI connection refused

ComfyUI连接被拒绝

Symptom:
ECONNREFUSED 127.0.0.1:8188
Solution:
  1. Ensure ComfyUI is running:
    http://localhost:8188
  2. Check firewall isn't blocking the port
  3. Verify
    COMFYUI_URL
    matches your actual URL
症状:
ECONNREFUSED 127.0.0.1:8188
解决方案:
  1. 确保ComfyUI正在运行:访问
    http://localhost:8188
  2. 检查防火墙是否阻止该端口
  3. 验证
    COMFYUI_URL
    与实际URL匹配

Reference image upload fails

参考图上传失败

Symptom: Local image path not found
Solution:
  • Use absolute paths:
    /Users/username/Desktop/image.jpg
  • Or relative to project root:
    ./assets/image.jpg
  • MeiGen auto-compresses images >5MB before upload
症状: 本地图像路径未找到
解决方案:
  • 使用绝对路径:
    /Users/username/Desktop/image.jpg
  • 或相对于项目根目录的路径:
    ./assets/image.jpg
  • MeiGen会自动压缩大于5MB的图像后再上传

Video generation timeout

视频生成超时

Symptom: MCP tool times out before video finishes
Solution:
  • For Hermes Agent, set
    timeout: 600
    in config
  • For other hosts, increase MCP server timeout (default 120s → 600s)
  • Veo 3.1 can take 5-10 minutes for high-quality 8s videos
症状: MCP工具在视频生成完成前超时
解决方案:
  • 对于Hermes Agent,在配置中设置
    timeout: 600
  • 对于其他主机,增加MCP服务器超时时间(默认120秒→600秒)
  • Veo 3.1生成高质量8秒视频可能需要5-10分钟

"Model not available"

"模型不可用"

Symptom: Requested model not found
Solution:
bash
/meigen:models
症状: 请求的模型未找到
解决方案:
bash
/meigen:models

Or use tool:

或使用工具:

use_mcp_tool({ server_name: "meigen", tool_name: "list_models", arguments: {} })

Available models depend on your provider:
- **MeiGen Cloud**: `nanobanana-2`, `gpt-image-2`, `seedream-5.0`, `midjourney-v8.1`, `flux-2-klein`, `seedance-2.0-fast`, `seedance-2.0-pro`, `happyhorse-1.0`, `veo-3.1`
- **ComfyUI**: Uses local workflows, model specified in workflow JSON
- **OpenAI-compatible**: `dall-e-3`, `dall-e-2`, or custom models at your endpoint
use_mcp_tool({ server_name: "meigen", tool_name: "list_models", arguments: {} })

可用模型取决于你的提供商:
- **MeiGen Cloud**:`nanobanana-2`、`gpt-image-2`、`seedream-5.0`、`midjourney-v8.1`、`flux-2-klein`、`seedance-2.0-fast`、`seedance-2.0-pro`、`happyhorse-1.0`、`veo-3.1`
- **ComfyUI**:使用本地工作流,模型在工作流JSON中指定
- **兼容OpenAI的API**:`dall-e-3`、`dall-e-2`或你的端点中的自定义模型

Prompt library search returns no results

提示词库搜索无结果

Symptom:
search_gallery
finds nothing
Solution:
  • Try broader keywords: "product" instead of "luxury minimalist product photography"
  • Use style terms: "cinematic", "minimalist", "vintage", "3D render"
  • Browse without keywords (empty search) to see all 1,446 prompts
症状:
search_gallery
未找到任何结果
解决方案:
  • 尝试更宽泛的关键词:用"product"代替"luxury minimalist product photography"
  • 使用风格术语:"cinematic"、"minimalist"、"vintage"、"3D render"
  • 不输入关键词(空搜索)浏览全部1446个提示词

Environment Variables Reference

环境变量参考

VariableDescriptionRequired
MEIGEN_API_TOKEN
MeiGen Cloud API token (get at meigen.ai)For MeiGen provider
COMFYUI_URL
ComfyUI server URLFor ComfyUI provider
COMFYUI_DEFAULT_WORKFLOW
Default workflow nameOptional (default:
txt2img
)
OPENAI_API_KEY
OpenAI or compatible API keyFor OpenAI provider
OPENAI_API_BASE
API endpoint URLOptional (default: OpenAI endpoint)
MEIGEN_OUTPUT_DIR
Override image output directoryOptional (default:
~/Pictures/meigen
)
变量描述是否必填
MEIGEN_API_TOKEN
MeiGen Cloud API令牌(在meigen.ai获取)使用MeiGen提供商时必填
COMFYUI_URL
ComfyUI服务器URL使用ComfyUI提供商时必填
COMFYUI_DEFAULT_WORKFLOW
默认工作流名称可选(默认:
txt2img
OPENAI_API_KEY
OpenAI或兼容API的密钥使用OpenAI提供商时必填
OPENAI_API_BASE
API端点URL可选(默认:OpenAI端点)
MEIGEN_OUTPUT_DIR
修改图像输出目录可选(默认:
~/Pictures/meigen

Resources

资源链接