Skip to main content
Glama

What Is This?

LemGen AI Design MCP turns an AI coding agent into a practical visual creative assistant. Instead of asking the agent to invent prompts from nothing, it gives the agent a searchable prompt library, prompt enhancement tools, model metadata, local preferences, and optional image/video generation through LemGen.

Use it when you want your agent to:

  • find visual references before writing a prompt;

  • inspect full prompt examples with images, videos, model names, tags, and source links;

  • translate, polish, or improve prompts across multiple languages;

  • expand rough ideas into production-ready image or video prompts;

  • generate images or videos only after the user approves the final prompt.

Free tools work without an API key. Generation tools require LEMGEN_API_TOKEN from LemGen.

Related MCP server: vision-mcp

Preview

Quick Start

Install directly from GitHub today:

{
  "mcpServers": {
    "lemgen": {
      "command": "npx",
      "args": ["-y", "github:aithink001/lemgen-ai-design-mcp"]
    }
  }
}

Enable generation by adding your LemGen token:

{
  "mcpServers": {
    "lemgen": {
      "command": "npx",
      "args": ["-y", "github:aithink001/lemgen-ai-design-mcp"],
      "env": {
        "LEMGEN_API_TOKEN": "sk_your_key_here"
      }
    }
  }
}

After the npm package is published, the same server can be installed with:

npx -y lemgen@latest

Features

Capability

Tool

Free

What the agent gets

Prompt search

search_gallery

Yes

Ranked image/video prompt results with preview media and LemGen links.

Full inspiration

get_inspiration

Yes

Complete prompt, model, tags, author, stats, images/videos, and source URL.

Prompt expansion

enhance_prompt

Yes

A structured production prompt from a rough visual idea.

Model guidance

list_models

Yes

Supported models, media type, ratios, resolutions, reference limits, and strengths.

Prompt translation

prompt_tools

Yes

Translation, polish, and improvement workflows for image/video prompts.

Local memory

manage_preferences

Yes

Style, model, ratio, resolution, and favorite prompt IDs stored locally.

Image generation

generate_image

Token

LemGen image generation job with status and result URLs.

Video generation

generate_video

Token

LemGen video generation job; agents are instructed to ask before calling it.

Language Support

LemGen MCP is built for multilingual creative teams. Agent replies should follow the user's language, while model names and API parameters stay in English.

prompt_tools.targetLanguage supports:

Code

Language

Code

Language

Code

Language

en

English

zh

Chinese

ja

Japanese

ko

Korean

es

Spanish

fr

French

de

German

pt

Portuguese

it

Italian

nl

Dutch

ru

Russian

ar

Arabic

hi

Hindi

id

Indonesian

vi

Vietnamese

th

Thai

tr

Turkish

pl

Polish

Examples:

{ "action": "translate", "targetLanguage": "ja", "mediaType": "image" }
{ "action": "polish", "mediaType": "video" }

More setup notes are in docs/clients.md and docs/languages.md.

Client Setup

Claude Code

Install from this GitHub repository:

/plugin marketplace add aithink001/lemgen-ai-design-mcp
/plugin install lemgen@lemgen-marketplace

Restart Claude Code after installation.

Cursor

Add to Cursor MCP config:

{
  "mcpServers": {
    "lemgen": {
      "command": "npx",
      "args": ["-y", "github:aithink001/lemgen-ai-design-mcp"],
      "env": {
        "LEMGEN_API_TOKEN": "sk_your_key_here"
      }
    }
  }
}

Codex

codex mcp add lemgen -- npx -y github:aithink001/lemgen-ai-design-mcp

For generation, add LEMGEN_API_TOKEN to the MCP server environment in your Codex config.

Windsurf / Roo Code / Cline

Use the same MCP server block:

{
  "command": "npx",
  "args": ["-y", "github:aithink001/lemgen-ai-design-mcp"],
  "env": {
    "LEMGEN_API_TOKEN": "sk_your_key_here"
  }
}

OpenClaw

Install from ClawHub:

clawhub install lemgen-ai-design

Skill page:

https://clawhub.ai/aithink001/skills/lemgen-ai-design

The source skill is included in this repository:

openclaw/SKILL.md

It defines the recommended workflow for inspiration search, prompt enhancement, generation confirmation, and video safety.

Prompt Library

This repository ships with data/trending-prompts.json, exported from LemGen.

Type

Count

Image prompts

2,593

Video prompts

1,940

Total

4,533

Model

Count

GPT Image

1,935

Seedance 2.0

1,940

Nano Banana Pro

489

Midjourney

104

Other image models

65

Schema:

type GalleryPrompt = {
  id: string;
  rank: number;
  title: string;
  prompt: string;
  author: string;
  model: string;
  categories: string[];
  image: string;
  images: string[];
  video_url?: string;
  media_type: "image" | "video";
  likes: number;
  views: number;
  source_url: string;
};

Data-only repository:

https://github.com/aithink001/lemgen-trending-prompts

Development

pnpm install
pnpm validate
pnpm inspect

pnpm validate runs TypeScript, build, brand scan, and an MCP smoke test.

Environment Variables

Variable

Default

Description

LEMGEN_API_BASE_URL

https://lemgen.org

LemGen API host.

LEMGEN_API_TOKEN

none

Required for image/video generation.

LEMGEN_OUTPUT_DIR

~/Pictures/lemgen

Reserved for future CLI image saving.

LEMGEN_VIDEO_OUTPUT_DIR

~/Movies/lemgen

Reserved for future CLI video saving.

LEMGEN_PREFERENCES_PATH

~/.lemgen/preferences.json

Local preferences file.

Principles

  • Search and inspiration are free; generation is opt-in.

  • Video generation requires explicit confirmation.

  • Responses return real IDs and URLs, not guessed visual descriptions.

  • Public data is source-linked to LemGen.

  • Documentation and package metadata stay clean of duplicate-brand signals.

Roadmap

  • Publish the lemgen npm package.

  • Add a hosted remote MCP endpoint.

  • Add semantic search over the prompt library.

  • Add focused prompt packs for product photography, logos, portraits, posters, and video ads.

  • Add one-shot CLI generation commands for shell and CI workflows.

License

MIT

Available Tools

8 tools
enhance_promptA
Read-only

Turn a short idea into a professional image/video prompt. Free, local, no API key required.

ParametersJSON Schema
NameRequiredDescriptionDefault
ideaYesShort idea or rough prompt.
styleNorealistic, product, cinematic, anime, poster, minimal, or a custom style phrase.
mediaTypeNoimage
aspectRatioNoOptional ratio such as 1:1, 16:9, 9:16, or auto.
referenceCountNo

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark readOnlyHint=true; description adds valuable context ('Free, local, no API key required') beyond annotations, though it does not discuss output format or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no wasted words. The primary action is front-loaded, and the free/local note is appended efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Missing explicit description of the return value (the enhanced prompt) and no clarification of which parameters are optional/required beyond the schema. Adequate but incomplete for a tool with 5 parameters and no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 60% schema coverage, the description does not add meaning beyond what the schema already provides (e.g., style options are listed in schema, not description). No compensation for missing parameter descriptions like referenceCount.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Turn a short idea into a professional image/video prompt' clearly states the verb (enhance) and resource (prompt), distinguishing it from sibling tools like generate_image that create media directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives or when not to use it. The context implies use for prompt refinement before generation, but this is not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_imageA

Generate an AI image with LemGen. Requires LEMGEN_API_TOKEN. Use after the user approves a final prompt.

ParametersJSON Schema
NameRequiredDescriptionDefault
waitNo
modelNoOptional model name. Omit for LemGen default unless user asked for one.
promptYes
qualityNo标准
promptIdNo
resolutionNo2K
aspectRatioNo自动
timeoutSecondsNo
referenceImagesNo

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnlyHint=false, so the description's 'generate' is consistent. It adds the token requirement and usage timing, but does not disclose other behavioral traits like rate limits or effects of missing token, which is acceptable given the simple write action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loaded with the main purpose, and wastes no words on unnecessary details. Every sentence serves a clear function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 9 parameters, no output schema, and low schema description coverage, the description is too minimal. It does not explain key parameters, return format, or side effects, leaving significant gaps for an agent to correctly invoke the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 11%, with most parameters having defaults but no descriptions. The tool description provides no additional information about parameters (e.g., quality, resolution, aspectRatio), leaving the agent uninformed about their meaning or appropriate values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'generate an AI image' with LemGen, specifying the resource and action. It also provides context about requiring a token and using after user approval, which distinguishes it from siblings like generate_video or enhance_prompt.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes when to use ('after user approves a final prompt') and a prerequisite ('requires LEMGEN_API_TOKEN'), offering clear context. However, it lacks explicit exclusions or alternatives for when not to use this tool compared to siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

generate_videoB

Generate an AI video with LemGen. Requires LEMGEN_API_TOKEN. Videos are slow and should only be called after explicit user confirmation.

ParametersJSON Schema
NameRequiredDescriptionDefault
tierNo
waitNo
modelNoSeedance
promptYes
durationNo
promptIdNo
resolutionNo720p
aspectRatioNo自动
timeoutSecondsNo
referenceImagesNo
referenceVideosNo

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Discloses slowness and the need for user confirmation, which are key behavioral traits. Annotations only provide readOnlyHint=false, so description adds value. However, it omits details like whether it consumes significant resources, cost implications, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences, front-loaded with the core purpose. Every sentence adds value with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (11 params, no output schema, no parameter descriptions), the description is severely lacking. It covers only authentication and slowness, leaving the agent with insufficient context to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 11 parameters and 0% schema description coverage, the description must compensate but provides zero information about any parameter. User cannot infer what 'tier', 'model', 'duration', etc., mean from the description alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Generate') and the resource ('AI video') with the specific provider 'LemGen'. It distinguishes from sibling tools like generate_image by specifying video generation. No ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states that videos are slow and require explicit user confirmation, providing strong usage guidance. However, it does not mention when not to use this tool or suggest alternatives (e.g., generate_image for images).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_inspirationA
Read-only

Get the full prompt, preview media, metadata, and LemGen source link for one gallery entry. Free, no API key required.

ParametersJSON Schema
NameRequiredDescriptionDefault
idYesPrompt id from search_gallery.

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate read-only; description adds useful info about cost and authentication.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence plus free/no-auth note; every word is necessary and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all returned items for a simple retrieval tool; no missing critical info.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers 100% of parameter 'id' with description; description adds no extra meaning beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the tool retrieves full prompt, preview media, metadata, and source link for one gallery entry. Distinct from siblings like search_gallery.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Mentions free/no API key but lacks explicit guidance on when to use vs alternatives like search_gallery.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_modelsA
Read-only

List LemGen image and video models with strengths, ratios, resolutions, and reference limits. Free, no API key required.

ParametersJSON Schema
NameRequiredDescriptionDefault
mediaTypeNoall

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true. The description adds value by specifying it is free and requires no API key, and lists the exact information returned (strengths, ratios, resolutions, reference limits), going beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that conveys all essential information without unnecessary words. It is well-structured and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional parameter, no output schema, read-only), the description provides sufficient context: it lists what models are available and their attributes, and notes it is free. No key missing information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should compensate. It mentions 'image and video models', hinting at the mediaType parameter, but does not explain the 'all' option or provide details on how to use the parameter. The enum values are self-explanatory, but more explicit guidance would help.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states action (List), resource (LemGen models), and details (strengths, ratios, resolutions, reference limits). It distinguishes from sibling tools (generate_image, generate_video, etc.) by being a read-only listing tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies use for checking available models before generation, noting it is free and requires no API key. However, it lacks explicit guidance on when not to use it or direct comparison to sibling tools like search_gallery.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

manage_preferencesA

Read or update local LemGen preferences for style, model, aspect ratio, resolution, and favorite prompt ids. Free, local, no API key required.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNo
styleNo
actionYes
promptIdNo
resolutionNo
styleNotesNo
aspectRatioNo

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations indicate readOnlyHint=false, and the description clarifies it supports both reading and updating, which adds context. However, it does not disclose behavioral traits such as whether changes are persisted immediately, require additional steps, or affect other operations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, concisely stating the purpose and key attributes (free, local, no API key). Every word adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters, no output schema, and no parameter descriptions, the description is insufficient for an agent to effectively invoke the tool. It lacks details on parameter value ranges, required combinations, and expected behavior for each action.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description must compensate but only lists parameter names without explaining valid values, formats, or constraints. For example, 'style' and 'resolution' are mentioned but not what values they accept, leaving agents to guess.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool's purpose: to read or update local LemGen preferences. It lists the specific preference fields (style, model, aspect ratio, resolution, favorite prompt ids), clearly indicating the resource and actions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for managing preferences but lacks explicit guidance on when to use this tool versus alternatives. No exclusions or when-not-to-use scenarios are mentioned, and sibling tools like 'prompt_tools' or 'list_models' are not differentiated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

prompt_toolsC
Read-only

Translate, polish, or improve an AI image/video prompt. Free locally; if LEMGEN_API_TOKEN is configured, the LemGen prompt tool may be used by callers separately.

ParametersJSON Schema
NameRequiredDescriptionDefault
textYes
actionYes
mediaTypeNoimage
targetLanguageNoen

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations provide readOnlyHint=true, indicating a safe read operation. The description adds minor context about local availability and LemGen but does not disclose behavioral traits beyond annotations. No side effects or authentication needs are mentioned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short with two sentences, front-loaded with the main purpose. It is efficient but the second sentence about LemGen could be seen as slightly tangential. Still, it is not verbose and avoids clutter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 4 parameters (3 enums) and no output schema, the description is too brief. It fails to explain the differences between actions, the role of targetLanguage, or expected results. An agent lacks sufficient context to correctly invoke the tool, especially without schema descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, and the description does not compensate. It does not explain the four parameters, the meaning of each action, or the purpose of mediaType and targetLanguage. The schema's enums provide some structure, but the description adds no semantic value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: to translate, polish, or improve an AI image/video prompt. It uses specific verbs and identifies the resource (prompt), making the purpose clear. However, it does not explicitly distinguish from sibling tools like enhance_prompt, which may overlap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description mentions 'Free locally' and the optional LemGen prompt tool, providing some context on when to use this tool vs. an alternative. But it lacks explicit guidance on when to use each action (translate vs. improve vs. polish) and does not address sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv0.1.0
    • First observedenhance_prompt
    • First observedgenerate_image
    • First observedgenerate_video
    • First observedget_inspiration
    • First observedlist_models
    • First observedmanage_preferences
    • First observedprompt_tools
    • First observedsearch_gallery

TDQS

A3.7/5.0

Scored across 8 tools

Disambiguation4/5

Most tools have distinct purposes, but 'enhance_prompt' and 'prompt_tools' both deal with prompt improvement, which could cause confusion despite different specific actions.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with lowercase and underscores, e.g., 'generate_image', 'list_models', 'search_gallery'.

Tool Count5/5

8 tools is well-scoped for an AI design MCP, covering prompt enhancement, generation, inspiration, models, preferences, and gallery search without being excessive.

Completeness4/5

The tool set covers the core workflow of prompt creation, generation, and exploration, but lacks tools for managing generated assets (e.g., deletion or history), which is a minor gap.

Maintenance

ActivityStale
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers