Promo Kit MCP
Creates a complete promotional campaign kit from a short brief using web research, images, voiceovers, and evaluation.
README
Promo Kit MCP
Finished reference project for the MCP build night. This Manufact/mcp-use app creates a complete promo kit from a short campaign brief.
It combines:
- Exa for web research and source summaries
- Unsplash for campaign visuals by default
- optional fal.ai support for generated poster images
- ElevenLabs for voice ad generation
- Langfuse for trace and score observability
- an LLM-as-a-judge style evaluator for output quality
- MCP as the agent tool interface
Setup
Prerequisite: Node.js 22 or newer.
npm install
cp .env.example .env
Add your workshop credit keys to .env:
PORT=3000
MCP_URL=http://localhost:3000
IMAGE_PROVIDER=unsplash
EXA_API_KEY=...
UNSPLASH_ACCESS_KEY=...
FAL_KEY=...
ELEVENLABS_API_KEY=...
ELEVENLABS_VOICE_ID=TX3LPaxmHKxFdv7VOQHJ
JUDGE_PROVIDER=heuristic
OPENAI_API_KEY=
JUDGE_MODEL=gpt-4o-mini
LANGFUSE_PUBLIC_KEY=
LANGFUSE_SECRET_KEY=
LANGFUSE_BASE_URL=https://cloud.langfuse.com
ELEVENLABS_VOICE_ID is optional. The example value is a premade voice that worked with the free-plan key during testing.
FAL_KEY is optional unless you set IMAGE_PROVIDER=fal.
Langfuse and OpenAI are optional. Without them, the benchmark still works with a local heuristic judge and returns langfuse.sent: false.
When Langfuse keys are missing, langfuse.dryRun: true shows the trace name and score names that would be sent.
The app loads .env automatically on Node 22+, and direnv-exported variables still work.
If you use direnv, put those exports in .envrc.local instead and run:
direnv allow
Start the local server:
npm run dev
In another terminal, run the preflight smoke test:
npm run smoke
To verify the Langfuse request shape without real Langfuse keys:
npm run test:langfuse
Open the inspector:
http://localhost:3000/inspector
Local MCP endpoint:
http://localhost:3000/mcp
If mcp-use reports a different port because 3000 is busy, set PORT in .envrc.local and update mcp.json / .mcp.json to match for that machine.
Optional Web UI
The MCP inspector is a developer console, not the product UI. This repo also includes a tiny local web app that calls the same MCP tools through a local proxy, so you can showcase the MCP server and a real client side by side.
Start the MCP server first:
PORT=3022 MCP_URL=http://localhost:3022 npm run dev
Then start the web UI in another terminal:
MCP_SERVER_URL=http://localhost:3022 npm run web
Open:
http://localhost:5174
The UI can:
- run
check_setup - load
list_demo_presets - call
run_demo_preset - call
create_and_evaluate_promo_kit - call
research_market - call
generate_voiceover
This is intentionally small enough for attendees to modify with Cursor during the workshop.
Cursor Demo
Use mcp.json to connect Cursor to the local server:
{
"mcpServers": {
"promo-kit-mcp": {
"url": "http://localhost:3000/mcp"
}
}
}
Then ask Cursor Agent:
Use get_workshop_flow first, then check_setup.
After that, use run_demo_preset with cursor-build-night-padova.
Show the promo kit, the judge score, and whether Langfuse received the trace.
Or, for the shortest possible demo:
Use run_demo_preset with cursor-build-night-padova.
Show the promo kit, the judge score, and whether Langfuse received the trace.
Tools
check_setup()get_workshop_flow()research_market(topic, audience, location, maxResults)generate_poster(brief, visualStyle, format)generate_voiceover(script, voiceId, language)create_promo_kit(topic, audience, location, tone)evaluate_promo_kit(topic, audience, location, promoKitJson)create_and_evaluate_promo_kit(topic, audience, location, tone)list_demo_presets()run_demo_preset(preset)
Expected Output
create_promo_kit returns:
- title and positioning
- three social captions
- Exa-backed research with source links
- Unsplash image URL with attribution, or fal.ai poster prompt and image URL when
IMAGE_PROVIDER=fal - ElevenLabs voiceover script, plus an audio data URL when the current key and voice have enough API access
create_and_evaluate_promo_kit returns:
promoKit: the generated campaign kitevaluation: judge, overall score, rubric scores, strengths, and improvementslangfuse: whether the trace and scores were sent to Langfuse, plus dry-run trace and score metadata when keys are missing
Demo Prompts
Run get_workshop_flow and explain the live demo sequence.
Run check_setup and tell me what is ready for the workshop.
Create a promo kit for a student AI build night in Rome.
Create and evaluate a promo kit for a Cursor build night in Padova for developers.
Run the cursor-build-night-padova preset and explain the judge scores.
Preset IDs:
cursor-build-night-padovastudent-ai-build-night-romematcha-cafe-universityindie-game-tournament
Create a promo kit for a matcha cafe opening near a university.
Create a promo kit for an indie game tournament this weekend.
Troubleshooting
Missing API key:
EXA_API_KEY is required for Exa. Copy .env.example to .env and add your workshop credit key.
Fix: add the missing key to .env and restart npm run dev.
fal.ai returns no image URL:
fal.ai returned no image URL.
Fix: retry with a shorter prompt or check fal.ai credits.
Unsplash returns no image:
Unsplash returned no image
Fix: use a simpler campaign brief or visual style.
ElevenLabs returns an auth or quota error:
ElevenLabs TTS failed (401 or 429)
The server now keeps the promo kit usable when TTS is unavailable. The voiceover object returns status: "unavailable", keeps the script, and includes the provider error for troubleshooting.
Fix: verify the API key, voice ID, account tier, and remaining credits.
Langfuse says sent: false:
langfuse: { "enabled": false, "sent": false, "dryRun": true }
Fix: set LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASE_URL, then restart npm run dev.
For the workshop, dryRun: true is still useful: show traceName, scoreNames, and scoreCount to explain exactly what the app would send to Langfuse once keys are configured.
OpenAI judge is not configured:
judge: "heuristic"
This is expected for the workshop. Set JUDGE_PROVIDER=openai and OPENAI_API_KEY only if you want a live LLM judge instead of the deterministic rubric.
Check setup before a live demo:
check_setup()
This reports which providers are configured without exposing key values. Exa and the selected image provider are required for the finished live demo. ElevenLabs, OpenAI judge, and Langfuse can be unavailable without breaking the main promo kit flow.
Langfuse implementation note:
This repo keeps the workshop dependency surface small by sending traces and numeric scores through Langfuse's public HTTP API from src/providers/langfuse.ts. The same flow can be swapped to the Langfuse SDK later without changing the MCP tool contract.
Build warning about large chunks:
Some chunks are larger than 1024 kB
This comes from the mcp-apps widget bundle and does not block the local workshop demo.
Optional Distribution Story
This repo includes local wrapper files for:
- Cursor:
.cursor-plugin/plugin.jsonandmcp.json - Claude Code:
.claude-plugin/plugin.jsonand.mcp.json - Codex:
.codex-plugin/plugin.jsonand.mcp.json
The important idea for attendees: the MCP server is the product, and plugin or connector marketplaces are the distribution layer.
Workshop Narrative
- The agent calls MCP tools instead of only writing text.
- Exa grounds the campaign in current web context.
- Unsplash supplies a visual asset with attribution.
- ElevenLabs attempts a voiceover; if account limits block audio, the workflow still keeps the script.
- The judge scores the output with a rubric.
- Langfuse stores the trace and numeric scores when keys are configured.
Manufact Cloud
Deployment is optional for the local workshop:
npm run deploy
Do not commit real API keys, Manufact device codes, generated images, or generated audio files.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。