Skip to main content
Glama
jau123

MeiGen AI Image Generation MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
COMFYUI_URLNoLocal ComfyUI server URL
OPENAI_API_KEYNoOpenAI-compatible API key (optional alternative provider)
OPENAI_BASE_URLNoCustom base URL for OpenAI-compatible provider
MEIGEN_API_TOKENNoMeiGen platform API token (optional, starts with meigen_sk_)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 () 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 with pricing and capabilities.

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.

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.

upload_reference_image

Upload a local image for use as a reference in generate_image. Image generation APIs require reference images as public URLs — this tool converts local files to URLs by compressing (max 2MB, max 2048px) and uploading to temporary cloud storage. The URL expires in 24 hours; re-upload if needed later. For ComfyUI users: you can pass local file paths directly to generate_image's referenceImages without uploading.

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jau123/mei-gen-ai-design-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server