Get the FREE Ultimate OpenClaw Setup Guide →
j

Openclaw

Use Caution

@jau123

npx machina-cli add skill @jau123/creative-toolkit --openclaw
Files (1)
SKILL.md
8.7 KB

Creative Toolkit

Generate professional AI images through a unified interface that routes across multiple providers. Search curated prompts, enhance ideas into production-ready descriptions, and manage local ComfyUI workflows — all from a single MCP server.

Quick Start

Add the MCP server to your mcporter config (~/.config/mcporter/config.json):

{
  "mcpServers": {
    "creative-toolkit": {
      "command": "npx",
      "args": ["-y", "meigen@latest"],
      "env": {
        "MEIGEN_API_TOKEN": "${MEIGEN_API_TOKEN}"
      }
    }
  }
}

Set your API token in ~/.clawdbot/.env or shell environment:

export MEIGEN_API_TOKEN="meigen_sk_..."

Generate your first image:

mcporter call creative-toolkit.generate_image prompt="a minimalist perfume bottle on white marble, soft directional lighting, product photography"

Or try it without any config (ad-hoc stdio mode):

mcporter call --stdio "npx -y meigen@latest" generate_image prompt="a ceramic vase with morning light"

No API key? Free tools still work:

mcporter call creative-toolkit.search_gallery query="cyberpunk"
mcporter call creative-toolkit.enhance_prompt brief="a cat in space" style="realistic"

Setup

Get an API Token

  1. Visit meigen.ai → sign in → click avatar → SettingsAPI Keys
  2. Create a new key (starts with meigen_sk_)
  3. Set as environment variable or save to config:
# Shell environment or ~/.clawdbot/.env
export MEIGEN_API_TOKEN="meigen_sk_..."

Or save to ~/.config/meigen/config.json:

{
  "meigenApiToken": "meigen_sk_..."
}

Alternative Providers

You can use your own OpenAI-compatible API or a local ComfyUI instance instead of — or alongside — the default provider. Save to ~/.config/meigen/config.json:

OpenAI / Together AI / Fireworks AI:

{
  "openaiApiKey": "sk-...",
  "openaiBaseUrl": "https://api.together.xyz/v1",
  "openaiModel": "black-forest-labs/FLUX.1-schnell"
}

Local ComfyUI:

{
  "comfyuiUrl": "http://localhost:8188"
}

Import workflows with the comfyui_workflow tool (action: import). The server auto-detects key nodes (KSampler, CLIPTextEncode, EmptyLatentImage) and fills in prompt, seed, and dimensions at runtime.

Multiple providers can be configured simultaneously. Auto-detection priority: MeiGen > ComfyUI > OpenAI.

Available Tools

Free — no API key required

ToolWhat it does
search_gallerySearch 1,300+ curated prompts by keyword, style, or category. Returns prompt text, thumbnails, and metadata.
get_inspirationGet the full prompt and high-res images for any gallery entry. Use after search_gallery to get copyable prompts.
enhance_promptExpand a brief idea (e.g. "a cat in space") into a detailed, style-aware prompt with lighting, composition, and material directions. Supports three styles: realistic, anime, illustration.
list_modelsList all available models across configured providers with capabilities and supported features.

Requires configured provider

ToolWhat it does
generate_imageGenerate an image from a text prompt. Automatically routes to the best available provider. Supports aspect ratio, seed, and reference images.
upload_reference_imageCompress and upload a local image (max 2MB, 2048px) for use as a style reference in generation. Returns a public URL.
comfyui_workflowList, view, import, modify, and delete ComfyUI workflow templates. Modify parameters like steps, CFG scale, sampler, and checkpoint without editing JSON.

Usage Patterns

Basic generation

Generate a product photo of a ceramic vase with morning light

The server picks the best provider, generates the image, and returns a URL + local file path.

Prompt enhancement then generation

For brief ideas, enhance first for much better results:

1. enhance_prompt brief="futuristic city" style="realistic"
   → Returns detailed prompt with camera lens, lighting setup, atmospheric effects

2. generate_image prompt="<enhanced prompt>" aspectRatio="16:9"
   → Generates with the enhanced prompt

Reference image workflow

Use an existing image to guide style and composition:

1. upload_reference_image filePath="~/Desktop/my-logo.png"
   → Returns public URL

2. generate_image prompt="coffee mug mockup with this logo" referenceImages=["<url>"]
   → Generates using the reference for style guidance

Reference images work across all providers.

Gallery exploration

1. search_gallery query="product photography" category="Product"
   → Browse thumbnails and prompts

2. get_inspiration id="<entry_id>"
   → Get full prompt text — copy and modify for your own generation

ComfyUI workflows

1. comfyui_workflow action="list"
   → See saved workflows

2. comfyui_workflow action="view" name="txt2img"
   → See adjustable parameters (steps, CFG, sampler, checkpoint)

3. comfyui_workflow action="modify" name="txt2img" modifications={"steps": 30, "cfg": 7.5}
   → Adjust without editing JSON

4. generate_image prompt="..." workflow="txt2img"
   → Generate using the custom workflow

Provider Comparison

MeiGen PlatformOpenAI-CompatibleComfyUI (Local)
ModelsNanobanana Pro, GPT Image 1.5, Seedream 4.5, etc.Any model at the endpointAny checkpoint on your machine
Reference imagesNative supportgpt-image-1.5 onlyRequires LoadImage node
ConcurrencyUp to 4 parallelUp to 4 parallel1 at a time (GPU constraint)
Latency10-30s typicalVaries by providerDepends on hardware
CostToken-based creditsProvider billingFree (your hardware)
OfflineNoNoYes

Prompt Enhancement Styles

enhance_prompt supports three style modes, each producing different types of detail:

StyleFocusBest For
realisticCamera lens, aperture, focal length, lighting direction, material texturesProduct photos, portraits, architecture
animeKey visual composition, character details (eyes, hair, costume), trigger wordsAnime illustrations, character design
illustrationArt medium, color palette, composition direction, brush textureConcept art, digital painting, watercolor

Security & Privacy

Remote package execution: This skill runs as an MCP server via npx meigen@latest. The package is published on npmjs.com under the meigen name with full source code available at GitHub. No code is obfuscated or minified beyond standard TypeScript compilation.

Reference image upload: The upload_reference_image tool compresses local images (max 2MB, 2048px) and uploads them to a CDN for use as generation references. This is always user-initiated — the tool never accesses or uploads files without explicit invocation. Uploaded images are used solely as style references for image generation.

API tokens: MEIGEN_API_TOKEN is stored locally in environment variables or ~/.config/meigen/config.json with chmod 600 permissions. Tokens are only sent to the configured provider's API endpoint and never logged or transmitted elsewhere.

No telemetry: The MCP server does not collect analytics, usage data, or send any information to third parties beyond the configured image generation provider.

Troubleshooting

"No image generation providers configured" → Set MEIGEN_API_TOKEN or configure an alternative provider in ~/.config/meigen/config.json

Timeout during generation → Image generation typically takes 10-30 seconds. During high demand, it may take longer. The server polls with a 5-minute timeout.

ComfyUI connection refused → Ensure ComfyUI is running and accessible at the configured URL. Test with: curl <url>/system_stats

"Model not found" → Run list_models to see available models for your configured providers.

Reference image rejected → Images must be public URLs (not local paths). Use upload_reference_image to convert local files to URLs first.

Source

git clone https://clawhub.ai/jau123/creative-toolkitView on GitHub

Overview

Creative Toolkit generates professional AI images from text via a unified interface that routes requests across multiple providers, including Nanobanana Pro, GPT Image, Seedream, and local ComfyUI workflows. It includes 1,300+ curated prompts and style-aware prompt enhancement to turn ideas into production-ready descriptions, and can manage local ComfyUI workflows from a single MCP server.

How This Skill Works

A central MCP server routes generate_image requests to the best available provider, supporting MeiGen, ComfyUI, and OpenAI-compatible options. It also enables local ComfyUI workflows, auto detects key nodes such as KSampler, CLIPTextEncode, and EmptyLatentImage to fill runtime prompt, seed, and dimensions, and exposes tools like search_gallery and enhance_prompt to produce production-ready prompts with styles like realistic, anime, or illustration.

When to Use It

  • You want to generate images from text for product visuals, marketing assets, or concept art using multiple providers
  • You need inspiration from 1,300+ curated prompts and want to quickly copy or adapt prompts for your project
  • You want to turn a brief idea into a detailed, style aware prompt with lighting, composition, and material directions
  • You want to compare outputs across providers to ensure the best result before final render
  • You manage AI art workflows and want to integrate local ComfyUI with a centralized MCP server

Quick Start

  1. Step 1: Get an API token by signing into meigen.ai and creating a key that starts with meigen_sk_
  2. Step 2: Add the MCP server to your mcporter config as shown in the Quick Start snippet and set MEIGEN_API_TOKEN in your environment
  3. Step 3: Generate your first image with a prompt, for example mcporter call creative-toolkit.generate_image prompt=\"a minimalist perfume bottle on white marble, soft directional lighting, product photography\"

Best Practices

  • Start with search_gallery to find a prompt that aligns with your concept before generating
  • Use enhance_prompt to expand a brief idea into a production ready prompt with a chosen style
  • Store and protect the MEIGEN_API_TOKEN as an environment variable or in a config file
  • Leverage multi provider routing to compare outputs and select the best result
  • If using ComfyUI, import workflows with the comfyui_workflow tool and let the server auto detect key nodes

Example Use Cases

  • Create a product shot style image such as a minimalist perfume bottle on white marble with soft lighting
  • Generate concept art for a game asset using a realistic or illustrated style
  • Design marketing assets by pulling prompts from a gallery and refining them into production ready prompts
  • Automate an AI art workflow by integrating ComfyUI workflows into the MCP server
  • Refine prompts from the 1,300+ gallery prompts to fit branding guidelines and target aesthetics

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers