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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.