# jau123/MeiGen-AI-Design-MCP [Health: Active]

**Category:** 🎨 Art & Culture  
**Repository:** https://github.com/jau123/MeiGen-AI-Design-MCP  
**GitHub Stars:** 1746  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/jau123-meigen-ai-design-mcp

## Description
AI image generation & editing MCP server with 1,500+ curated prompt library, smart prompt enhancement, and multi-provider routing (local ComfyUI, MeiGen Cloud, OpenAI-compatible APIs).

## Tools
Capabilities this server exposes over MCP:

- **enhance_prompt** — Transform a simple idea into a professional image generation prompt. Use when the user provides a brief description (e.g., "a cat in a garden") and needs a detailed, high-quality prompt. Combine with gallery inspiration for best results. Free, no API key needed.
- **search_gallery** — Search AI image prompts with semantic understanding — finds visually and conceptually similar results, not just keyword matches. Results include image URLs — render them as markdown images (![](url)) so users can visually browse and pick styles. Use when users need inspiration, want to explore styles, or say "generate an image" without a specific idea.
- **list_models** — List available AI image generation models and their capabilities. For up-to-date pricing, see https://www.meigen.ai/model-comparison.
- **get_inspiration** — Get the full prompt and all image URLs for a gallery entry. Show the images to the user as visual examples. The prompt can be used directly with generate_image(), and image URLs can be passed as referenceImages for style transfer.
- **check_generation** — Check a MeiGen generation by ID — the follow-up for interrupted generate_image / generate_video polling (the error message includes the Generation ID). Returns result URLs when done. The server keeps jobs alive well beyond a single tool call; if still processing, retry later instead of re-submitting (re-submitting costs credits again).
- **manage_preferences** — Read or update user preferences: default style, aspect ratio, model, style notes, and favorite prompts. Call with action "get" at conversation start to load preferences.
- **comfyui_workflow** — Manage ComfyUI workflow templates: list, view parameters, import from file, modify settings, or delete.
- **generate_image** — Generate an image using AI. Supports MeiGen platform, local ComfyUI, or OpenAI-compatible APIs. Tip: get prompts from get_inspiration() or enhance_prompt(), and use gallery image URLs as referenceImages for style guidance. For Midjourney V8.1, an optional style reference can be passed by appending `--sref <code>` at the end of the prompt — only when the user provides a Midjourney style code (numeric or text). Do NOT pass URLs or local paths via --sref; for any image-based reference, use the referenceImages parameter instead.
- **generate_video** — Generate a video using a required MeiGen model ID. Model lineup, tiers, resolutions, output-duration enum/range and reference-video range are live capabilities served by list_models; do not rely on snapshots. The server validates and prices every combination before dispatch. Video generation is slow and costs credits — confirm before submitting and never run videos in parallel.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "meigen-ai-design-mcp": {
    "command": "npx",
    "args": ["-y","meigen"],
    "env": {
      "MEIGEN_API_TOKEN": "",
      "MEIGEN_OUTPUT_DIR": ""
    }
  }
}
```

**Requires environment variables:** `MEIGEN_API_TOKEN`, `MEIGEN_OUTPUT_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What jau123/MeiGen-AI-Design-MCP MCP server does

jau123/MeiGen-AI-Design-MCP MCP server exposes nine tools for visual design workflows. Agents can turn short descriptions into detailed image prompts, search a curated gallery of roughly 1,446 prompts, inspect gallery inspiration, list current image and video models, and submit or monitor generations. Image generation supports MeiGen Cloud, local ComfyUI, and OpenAI-compatible endpoints. Video generation uses MeiGen models and requires a model ID.

The server also stores user preferences such as a default style, aspect ratio, model, style notes, and favorite prompts. ComfyUI users can manage workflow templates by listing them, viewing parameters, importing files, changing settings, or deleting templates.

## How it works

An agent can begin with `search_gallery` when the user needs visual direction or has not supplied a concrete idea. `get_inspiration` returns the selected gallery prompt and image URLs, while `enhance_prompt` expands a brief concept into a more developed generation prompt. Those results can then be passed to `generate_image`; gallery image URLs may be used as reference images for style guidance.

`list_models` supplies the available model capabilities, which is especially important for video because supported tiers, resolutions, durations, and reference-video ranges are live values rather than fixed assumptions. The server validates and prices video combinations before dispatch. Long-running jobs can be checked with `check_generation` using the generation ID, avoiding a duplicate submission that could consume credits again.

The project also includes parallel batch generation through sub-agents and a standalone CLI, although these are separate usage modes rather than MCP tools described in the tool list.

## Setup and configuration

The package can be run locally with npm using the `meigen` package. The README gives this MCP configuration:

```json
{
  "mcpServers": {
    "meigen": {
      "command": "npx",
      "args": ["-y", "meigen@1.4.0"]
    }
  }
}
```

A hosted Streamable HTTP endpoint is also available at `https://www.meigen.ai/api/mcp`. Its read-only tools can be used without a token, while authenticated operations use a bearer token. For local operation, the setup wizard lets the user choose MeiGen Cloud, ComfyUI, or an OpenAI-compatible API and enter the corresponding endpoint or credentials. Local ComfyUI can run without a cloud provider, using the user's own GPU.

For the CLI mode, the README documents `MEIGEN_API_TOKEN` for MeiGen authentication and `MEIGEN_OUTPUT_DIR` to change where generated images are saved. The default output directory is `~/Pictures/meigen/`.

## Tools and capabilities

- `enhance_prompt`: expands a short idea into a detailed image prompt.
- `search_gallery`: finds semantically similar prompts and returns image URLs for visual browsing.
- `get_inspiration`: retrieves a gallery entry's full prompt and image URLs.
- `list_models`: reports available image and video models and capabilities.
- `generate_image`: submits image jobs through the configured backend.
- `generate_video`: submits validated MeiGen video jobs.
- `check_generation`: checks an existing MeiGen generation by ID.
- `manage_preferences`: reads or updates design preferences.
- `comfyui_workflow`: manages ComfyUI workflow templates.

## Limitations and notes

Video generation can be slow and uses credits, so the README advises confirming before submission and avoiding parallel video jobs. If a video or image request is interrupted, use `check_generation` and retry polling rather than submitting the same job again. Midjourney style references use a supplied `--sref` code; image-based references should instead be passed through `referenceImages`. The remote endpoint returns media URLs, whereas local package usage can provide automatic local file saving and ComfyUI bridging.

_Full upstream README: https://allmcps.com/mcp/jau123-meigen-ai-design-mcp/readme_

