GitHub Repository
View source code, report issues, and contribute.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI assistants to use external tools. When you install MeiGen as an MCP server, your AI assistant gains the ability to generate images and videos, search a curated 1,446-prompt gallery, and enhance prompts — all through natural language.Providers
MeiGen supports three image generation backends — configure one or more.MeiGen Cloud
Hosted multi-model API. 9 image and video models: GPT Image 2, Nanobanana Pro/2, Seedream, Midjourney V8.1, Flux 2 Klein, Seedance 2.0, Happyhorse 1.0, Veo 3.1. No GPU required — just an API key.
ComfyUI
Local GPU generation. Run any Stable Diffusion, SDXL, or Flux model on your own hardware. Full control over workflows and parameters.
Bring Your Own API
Any OpenAI-compatible API. Connect Together AI, Fireworks AI, DeepInfra, SiliconFlow, OpenAI, or your own endpoint.
| Provider | Type | Cost | Best For |
|---|---|---|---|
| MeiGen Cloud | Hosted API | Credits (pricing) | Multi-model access, zero setup |
| ComfyUI | Local GPU | Free (your hardware) | Full control, custom workflows, privacy |
| Bring Your Own API | OpenAI-compatible | Varies by service | Existing API keys, any provider |
Tools
8 MCP tools, six of which are free without any provider:| Tool | Description | Requires Provider? |
|---|---|---|
| generate_image | Generate images using any configured provider | Yes |
| generate_video | Generate videos via MeiGen platform (Seedance 2.0 fast/pro, Happyhorse 1.0, Veo 3.1). Text-to-video and first/last-frame image-to-video. | Yes (MeiGen) |
| enhance_prompt | Transform a brief idea into a detailed, professional prompt | No |
| search_gallery | Search 1,446 curated AI art prompts from the community | No |
| get_inspiration | Get the full prompt and images for any gallery entry | No |
| list_models | List available models across all configured providers | No |
| manage_preferences | Save default style, aspect ratio, and favorite prompts | No |
| comfyui_workflow | Import, view, modify, and delete ComfyUI workflow templates | No |
Supported Platforms
Claude Code
Install as a plugin from the marketplace — includes slash commands, smart agents, and automation hooks.
Cursor / VS Code / Windsurf / Roo Code
One-command setup via
npx meigen init <host> — writes the right MCP config file for each editor.OpenAI Codex CLI
Add the MCP server to
~/.codex/config.toml. Standard stdio MCP, no extra plumbing.Hermes Agent
First-class MCP support — add to
~/.hermes/config.yaml with timeout: 600 for video generation.OpenClaw
Install as a plugin from ClawHub — includes skills, commands, and MCP server.
Any MCP host
Standard stdio MCP — point any MCP-compatible host at
npx -y meigen@latest.Standalone CLI Mode
No MCP host? MeiGen also ships as a CLI for shell scripts and CI pipelines:--json for machine-readable output, --no-wait to submit without polling, and --reference <path|url> to pass a reference image. Run npx meigen gen --help for the full flag list.
Next Steps
Setup Guide
Install the plugin and configure your preferred provider.
ComfyUI Guide
Set up local ComfyUI generation with custom workflows.
REST API
Prefer HTTP? Integrate via REST without MCP setup.