lemgen-ai-design-mcp
Turns AI coding agents into visual creative assistants by providing a curated prompt gallery, prompt enhancement, and image/video generation via LemGen, with free inspiration tools and optional token-based generation.
README
<h1 align="center">LemGen AI Design MCP</h1>
<p align="center"> <strong>Turn Claude Code, Cursor, Codex, Windsurf, Roo Code, and OpenClaw into a visual creative assistant.</strong> <br> <sub>4,533 curated AI image/video prompts · GPT Image · Nano Banana · Seedance · Midjourney · prompt enhancement · local preferences · LemGen generation tools</sub> </p>
<p align="center"> <a href="https://github.com/aithink001/lemgen-ai-design-mcp/actions"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/aithink001/lemgen-ai-design-mcp/validate.yml?branch=main&style=flat-square"></a> <a href="https://github.com/aithink001/lemgen-ai-design-mcp"><img alt="MCP" src="https://img.shields.io/badge/MCP-Server-blue?style=flat-square"></a> <a href="https://lemgen.org"><img alt="LemGen" src="https://img.shields.io/badge/Powered%20by-LemGen-111?style=flat-square"></a> <a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/License-MIT-lightgrey?style=flat-square"></a> </p>
<p align="center"> <a href="#quick-start">Quick Start</a> · <a href="#what-you-can-do">Tools</a> · <a href="#prompt-library">Prompt Library</a> · <a href="#client-setup">Client Setup</a> · <a href="README.zh-CN.md">中文</a> </p>
Why This Exists
Most AI coding agents are good at writing text and code, but weak at visual creative work. LemGen MCP gives them a visual toolkit:
- Search a real prompt gallery before inventing prompts from scratch.
- Pull full prompts, images, model metadata, and source links into the agent context.
- Expand rough ideas into production-grade prompts.
- Generate images or videos through LemGen when the user approves the final prompt.
- Keep all exploratory tools free and local-friendly; only generation needs a token.
The result is a cleaner workflow: browse inspiration, craft the direction, then generate without leaving your agent.
See The Library
<p align="center"> <a href="https://lemgen.org/prompt/2071424170383364525"><img src="https://lemgen.org/lemgen/api-image-tweets-2071424170383364525-0-1adbcf3d.jpg" width="24%" alt="Editorial lifestyle prompt"></a> <a href="https://lemgen.org/prompt/2068374577009275026"><img src="https://lemgen.org/lemgen/api-image-tweets-2068374577009275026-0-e7c26ef1.jpg" width="24%" alt="Logo prompt"></a> <a href="https://lemgen.org/prompt/community_86e7eecf-8940-4616-95bc-8e99f26beafa"><img src="https://lemgen.org/lemgen/api-image-generations-2026-06-community_86e7eecf-8940-4616-95bc-8e99f26beafa-09a9aa30.png" width="24%" alt="Midjourney prompt"></a> <a href="https://lemgen.org/prompt/cdanceai-seedance-seedance-2-0-15-second-cinematic-japanese-romance-short-film"><img src="https://cdn.lemgen.org/uploads/seedance-2-0/seedance-2-0-15-second-cinematic-japanese-romance-short-film/cover-be8dfe1fb4.jpg" width="24%" alt="Seedance video prompt"></a> </p>
Quick Start
Free inspiration tools work without any API key:
{
"mcpServers": {
"lemgen": {
"command": "npx",
"args": ["-y", "lemgen@latest"]
}
}
}
To enable generate_image and generate_video, create an API key at
https://lemgen.org and add it to your MCP config:
{
"mcpServers": {
"lemgen": {
"command": "npx",
"args": ["-y", "lemgen@latest"],
"env": {
"LEMGEN_API_TOKEN": "sk_your_key_here"
}
}
}
}
During local development, run from this repository:
pnpm install
pnpm build
node bin/lemgen-mcp.js
What You Can Do
| Tool | Free | What it does | When to use it |
|---|---|---|---|
search_gallery |
Yes | Searches 4,533 curated prompts with preview media and source links. | The user wants ideas, examples, style references, or prompt recipes. |
get_inspiration |
Yes | Returns the full prompt, images/video, model, tags, stats, and LemGen URL. | The user picked an item from search results. |
enhance_prompt |
Yes | Turns a rough idea into a detailed image/video prompt. | The user says something short like "luxury perfume ad". |
list_models |
Yes | Lists supported image/video models, ratios, resolutions, and reference limits. | The user asks which model to use. |
prompt_tools |
Yes | Translates, polishes, or improves prompts. | The user already has a prompt but wants it cleaner. |
manage_preferences |
Yes | Stores local style, model, ratio, and favorite prompt preferences. | The user says "remember this style". |
generate_image |
Token | Submits an image generation job to LemGen. | The user approved a final image prompt. |
generate_video |
Token | Submits a video generation job to LemGen. | The user explicitly confirmed video generation. |
Example Workflows
1. Find A Visual Direction
User:
Find product photography inspiration for a matte black perfume bottle.
Agent:
- Calls
search_gallery(query="matte black perfume product photography"). - Shows preview URLs and prompt IDs.
- Calls
get_inspiration(id=...)when the user picks one. - Adapts the prompt for the user's product.
2. Improve A Weak Prompt
User:
Make a poster for a new AI design tool.
Agent:
- Calls
enhance_prompt(idea="poster for a new AI design tool", style="poster"). - Explains the visual direction.
- Asks for approval before generation.
3. Generate An Image
User:
Looks good, generate it in 16:9.
Agent:
- Calls
generate_image(prompt=..., aspectRatio="16:9"). - Returns the generation ID, status, and image URLs.
- Does not invent a visual description it cannot verify.
4. Generate A Video
Video is slower and more expensive, so the agent should confirm first:
This will create a LemGen video job. Continue?
After confirmation it calls generate_video.
Prompt Library
This repository ships with data/trending-prompts.json.
Current snapshot:
| Type | Count |
|---|---|
| Image prompts | 2,593 |
| Video prompts | 1,940 |
| Total | 4,533 |
Model coverage:
| Model | Count |
|---|---|
| GPT Image | 1,935 |
| Seedance 2.0 | 1,940 |
| Nano Banana Pro | 489 |
| Midjourney | 104 |
| Other image models | 65 |
Each item includes:
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;
};
The companion data-only repository is:
https://github.com/aithink001/lemgen-trending-prompts
Client Setup
Claude Code Plugin
/plugin marketplace add aithink001/lemgen-ai-design-mcp
/plugin install lemgen@lemgen-marketplace
Restart Claude Code after installation.
Cursor
Add this to your Cursor MCP config:
{
"mcpServers": {
"lemgen": {
"command": "npx",
"args": ["-y", "lemgen@latest"],
"env": {
"LEMGEN_API_TOKEN": "sk_your_key_here"
}
}
}
}
Codex
codex mcp add lemgen -- npx -y lemgen@latest
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", "lemgen@latest"],
"env": {
"LEMGEN_API_TOKEN": "sk_your_key_here"
}
}
OpenClaw
Use the included skill:
openclaw/SKILL.md
It defines the recommended workflow for inspiration search, prompt enhancement, generation confirmation, and video safety.
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. |
Development
pnpm install
pnpm validate
pnpm inspect
Validation runs:
- TypeScript typecheck
- Build
- Brand scan
- MCP client smoke test
Design Principles
- Free discovery first; generation second.
- Never generate expensive video without explicit confirmation.
- Return actual URLs and IDs; do not hallucinate what an image looks like.
- Keep prompt data source-linked to LemGen.
- Keep public docs and data clean of legacy or duplicate-brand signals.
Roadmap
- Publish the
lemgennpm package. - Add a remote MCP endpoint at
https://mcp.lemgen.org/mcp. - Add richer semantic search over the prompt library.
- Add generated prompt packs for product photography, logos, portraits, posters, and video ads.
- Add one-shot CLI generation commands for shell and CI workflows.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。