Skip to main content
MeiGen is an open-source MCP (Model Context Protocol) server that gives AI coding assistants the ability to generate images. It supports multiple generation backends — use MeiGen’s cloud models, your local ComfyUI server, or any OpenAI-compatible API.

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, search a curated prompt gallery, and enhance prompts — all through natural language.

Providers

MeiGen supports three image generation backends. You can configure one or more — the plugin automatically selects the best available provider, or you can specify one explicitly.

MeiGen Cloud

Hosted multi-model API. Access Nanobanana, Seedream, Midjourney V7/Niji 7, Seedance, and more. 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.
ProviderTypeCostBest For
MeiGen CloudHosted APICredits (pricing)Multi-model access, zero setup
ComfyUILocal GPUFree (your hardware)Full control, custom workflows, privacy
Bring Your Own APIOpenAI-compatibleVaries by serviceExisting API keys, any provider
Provider priority: When multiple providers are configured, MeiGen selects in this order: MeiGen Cloud → ComfyUI → OpenAI-compatible. You can override this per-request.

Tools

ToolDescriptionRequires Provider?
generate_imageGenerate images using any configured providerYes
enhance_promptTransform a brief idea into a detailed, professional promptNo
search_gallerySearch 1,500+ curated AI art prompts from the communityNo
get_inspirationGet the full prompt and images for any gallery entryNo
list_modelsList available models across all configured providersNo
manage_preferencesSave default style, aspect ratio, and favorite promptsNo
comfyui_workflowImport, view, modify, and delete ComfyUI workflow templatesNo

Supported Platforms

Claude Code

Install as a plugin from the marketplace — includes slash commands, smart agents, and automation hooks.

OpenClaw

Install as a plugin from ClawHub — includes skills, commands, and MCP server.

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.