MeiGen AI Design MCP is an MCP server that lets AI coding tools generate images and videos through cloud models, OpenAI-compatible APIs, or local ComfyUI, an interface for running image-generation workflows. It is for creating designs such as logos, product images, animations, and batches of visual variations from coding-agent environments. Its catalogue entries provide skills, commands, agents, a plugin, and a hook for using the server's design workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/jau123/MeiGen-AI-Design-MCPWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/jau123/meigen-ai-design-mcp/setup)<a href="https://agentmods.dev/commands/jau123/meigen-ai-design-mcp/setup"><img src="https://agentmods.dev/badge/commands/jau123/meigen-ai-design-mcp/setup.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.03263 |
| Opus 5 | $0.00030 | $0.01631 |
| Sonnet 5 | $0.00012 | $0.00653 |
| Haiku 4.5 | $0.00006 | $0.00326 |
Grade D, and why
setup scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Harvests environment variableshighData exfiltration
Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.
- We'll automatically extract the API key, base URL, and model name Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- **Skip `chmod 600`** — NTFS has no chmod, and Windows file permissions are inherited from the parent directory. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **For curl health checks** (Step 3B-1, 3C): Windows 10+ has curl but lacks `head -c`; truncate with `Select-Object -First 5` (PowerShell) or omit the truncation. How it starts
The opening of the file, as written. The whole thing — 363 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MeiGen Plugin Setup
You are guiding the user through configuring the MeiGen plugin for image generation. Follow this flow step by step.
Step 0: Detect Platform
Before running any shell commands, detect whether you're on Windows. Many of the commands below assume a Unix shell (macOS / Linux / Git Bash). Quick check:
node -e "console.log(process.platform)"
darwin/linux→ Unix shell, use the commands as writtenwin32→ Windows. Adjustments:- For
2>/dev/nullin Step 1 (e.g.cat ... 2>/dev/null,ls ... 2>/dev/null): replace with2>NULin cmd or2>$nullin PowerShell. Or simpler: use a Node check instead, e.g.node -e "try{console.log(require('fs').readFileSync(require('os').homedir()+'/.config/meigen/config.json','utf8'))}catch{}" - For
mkdir -p ~/.config/meigen: in PowerShell useNew-Item -ItemType Directory -Force ~/.config/meigen. Or skip mkdir entirely — when you later call the Write tool withfile_path: ~/.config/meigen/config.json, Claude Code's harness creates the parent directory automatically (Write creates the file, the parent dir is a side-effect). - Skip
chmod 600— NTFS has no chmod, and Windows file permissions are inherited from the parent directory. - For curl health checks (Step 3B-1, 3C): Windows 10+ has curl but lacks
head -c; truncate withSelect-Object -First 5(PowerShell) or omit the truncation. - The config file lives at
%USERPROFILE%\.config\meigen\config.json— Node'sos.homedir()resolves~correctly when reading at runtime, so the config path in code works fine.
- For
Step 1: Welcome
First, check if a config file already exists:
cat ~/.config/meigen/config.json 2>/dev/null
Also check for existing ComfyUI workflows:
ls ~/.config/meigen/workflows/*.json 2>/dev/null
If config exists, show the current configuration (mask API keys: show first 10 chars + "...") and any saved workflows. Ask if they want to reconfigure.
If no config exists, present this introduction:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 363 lines · 60 tokens per session scan D 230f367549f9
setup is a command published in the GitHub repository jau123/MeiGen-AI-Design-MCP (1,745 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 3,263 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 3 findings (harvests environment variables, asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
models
List available AI models and switch the default model for this session. Use when user runs /meigen:models to see or change models.
ref
Upload a local image as reference for generation. Returns a public URL.
gen
Quick image generation. Use when user runs /meigen:gen with a prompt. Skips intent assessment, generates directly.
find
Quick gallery search. Use when user runs /meigen:find with keywords to browse inspiration.
review-epo-claims
Analyze patent claims for EPO Art. 84 EPC compliance - clarity, conciseness, support by description.
ingest-dev
Ingest a URL, directory, or file into your knowledge base. remember = a specific durable fact, ingest = a URL, learn = a distilled lesson that gets retrieval preference.