MeiGen AI Image

v1.3.2โ€ขData Science & MLโ€ขstable

๐Ÿ“‡ โ˜๏ธ ๐Ÿ  - AI image generation & editing MCP server with 1,500+ curated promp

ai-image-generationclaudeclaude-codecomfyuilovart
Share:
1,177
Stars
0
Downloads
0
Weekly
0/5

What is MeiGen AI Image?

MeiGen AI Image is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐Ÿ“‡ โ˜๏ธ ๐Ÿ  - ai image generation & editing mcp server with 1,500+ curated promp

๐Ÿ“‡ โ˜๏ธ ๐Ÿ  - AI image generation & editing MCP server with 1,500+ curated promp

This server falls under the Data Science & ML category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

Generate AI images using 1,500+ curated prompts.
Use ComfyUI and Lovart for advanced image generation.
jau123

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.3.2
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y meigen

Manual Installation

npx -y meigen

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MeiGen AI Image

MeiGen AI Image Generation MCP is a comprehensive AI image and video generation server that connects Claude and other AI coding tools to multiple generation backends including MeiGen Cloud (GPT Image 2.0, Midjourney V8.1, Nanobanana 2, Flux 2 Klein), locally-running ComfyUI, and any OpenAI-compatible provider. It ships with a library of over 1,500 curated prompts searchable through the MCP tool interface, a prompt-enhancement tool, and multi-task orchestration so you can queue several generation jobs in parallel. Developers and designers use it to generate production-ready images directly from their IDE or chat client without switching context.

Prerequisites

  • Node.js 18+ installed (required to run npx)
  • A MeiGen API token from meigen.ai (Settings โ†’ API Keys) for cloud generation
  • Optionally: an OpenAI-compatible API key (Together AI, Fireworks, etc.) and/or a local ComfyUI instance at http://localhost:8188
  • An MCP-capable client such as Claude Desktop, Claude Code, Cursor, VS Code, or Windsurf
1

Obtain your MeiGen API token

Sign up at meigen.ai, navigate to Settings โ†’ API Keys, and generate a token. The token starts with meigen_sk_. Keep it handy for the configuration step.

2

Set required environment variables

Export your API credentials. At minimum you need MEIGEN_API_TOKEN for cloud generation. Add OPENAI_API_KEY and OPENAI_BASE_URL if you want to use an OpenAI-compatible provider, and COMFYUI_URL if you run ComfyUI locally.

export MEIGEN_API_TOKEN="meigen_sk_..."
export OPENAI_API_KEY="sk-..."          # optional
export OPENAI_BASE_URL="https://api.together.xyz/v1"  # optional
export COMFYUI_URL="http://localhost:8188"              # optional
export MEIGEN_OUTPUT_DIR="~/Pictures/meigen"
3

Add the server to your MCP client config

Edit your claude_desktop_config.json (or equivalent config file for Cursor/Windsurf) to register the meigen MCP server. The server is invoked via npx with no additional build step required.

{
  "mcpServers": {
    "meigen": {
      "command": "npx",
      "args": ["-y", "meigen"],
      "env": {
        "MEIGEN_API_TOKEN": "meigen_sk_...",
        "MEIGEN_OUTPUT_DIR": "~/Pictures/meigen"
      }
    }
  }
}
4

Restart your MCP client

Quit and reopen Claude Desktop (or reload the MCP extension in your IDE) so it picks up the new server entry. The meigen tools will appear in the tool list once the server starts successfully.

5

Browse the prompt gallery and generate your first image

Use the search_gallery tool to find a curated prompt, then pass it to generate_image. You can also use enhance_prompt to expand a short idea into a detailed, model-ready prompt before generating.

# Standalone CLI usage (no MCP client needed)
npx meigen gen --prompt "a calico cat in a sunlit kitchen"
npx meigen gen -p "tech logo" -m midjourney-v8.1 -r 1:1

MeiGen AI Image Examples

Client configuration

Claude Desktop config entry for the MeiGen AI Image Generation MCP server using cloud generation.

{
  "mcpServers": {
    "meigen": {
      "command": "npx",
      "args": ["-y", "meigen"],
      "env": {
        "MEIGEN_API_TOKEN": "meigen_sk_your_token_here",
        "MEIGEN_OUTPUT_DIR": "~/Pictures/meigen",
        "MEIGEN_VIDEO_OUTPUT_DIR": "~/Movies/meigen"
      }
    }
  }
}

Prompts to try

Example prompts that exercise the gallery search, prompt enhancement, model listing, and generation tools.

- "Search the MeiGen prompt gallery for 'cyberpunk cityscape' prompts and show me the top 5 results"
- "Enhance this prompt for Midjourney: 'a dragon in a forest'"
- "Generate an image using the Nanobanana 2 model with the prompt: a serene Japanese garden at dusk"
- "List all available image generation models"
- "Generate a 1:1 square logo image with the prompt: minimalist tech startup logo, flat design"

Troubleshooting MeiGen AI Image

generate_image returns an authentication error

Verify that MEIGEN_API_TOKEN is set correctly in the env block of your MCP config and that the token starts with meigen_sk_. Tokens are per-account; regenerate one at meigen.ai โ†’ Settings โ†’ API Keys if needed.

ComfyUI workflow tool fails or times out

Ensure your local ComfyUI instance is running and reachable at the URL set in COMFYUI_URL (default http://localhost:8188). Check that the ComfyUI API is enabled and that no firewall is blocking the port.

npx command not found or server fails to start

Make sure Node.js 18+ is installed and npx is on your PATH. Run 'node --version' to confirm. If behind a corporate proxy, set HTTP_PROXY and HTTPS_PROXY before launching your MCP client.

Frequently Asked Questions about MeiGen AI Image

What is MeiGen AI Image?

MeiGen AI Image is a Model Context Protocol (MCP) server that ๐Ÿ“‡ โ˜๏ธ ๐Ÿ  - ai image generation & editing mcp server with 1,500+ curated promp It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MeiGen AI Image?

Install via npm with the command: npx -y meigen. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with MeiGen AI Image?

MeiGen AI Image works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MeiGen AI Image free to use?

Yes, MeiGen AI Image is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Data Science & ML MCP Servers

Explore all data science & ml servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "meigen-ai-image-generation-mcp": { "command": "npx", "args": ["-y", "meigen"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use MeiGen AI Image?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides