demo-director
An MCP server that turns AI agents into product presenters, enabling them to record keynote-quality demo videos by controlling screen recording, mouse, Chrome, and narration.
README
π¬ Demo Director
Turn an AI agent into a product presenter. Demo Director is an MCP server that gives Claude (or any MCP client) everything it needs to record a keynote-quality demo video of your app β completely hands-free:
- πΉ Native screen recording β macOS
screencapture, full screen / display / region - π±οΈ Presenter-grade cursor β a native Swift CGEvent driver that glides the real mouse along smooth, eased, slightly-curved paths; human-rhythm typing; momentum scrolling
- π Chrome direction β DevTools Protocol control with a clean demo profile: navigate, cinematic in-page scrolling, and the killer feature β resolve any CSS selector to screen coordinates so the real cursor glides to real UI
- π‘ Keynote effects β spotlight (dim everything but the feature) and pulse highlights
- π£οΈ Natural voiceover β first-class Voicebox integration:
voice-clone narration generated sentence-by-sentence with drifting seeds, jittered
punctuation-based pauses, soft procedural in-breaths, and β16 LUFS loudness β then
compose_final_videomuxes it into the finished MP4 in one call. Falls back to macOSsaywhen Voicebox isn't running; livesaynarration for real-time pacing - π§ A master-presenter skill β a playbook that teaches the agent to understand your app first, write an Apple-style beat sheet, rehearse off camera, then roll
Tell Claude βrecord a demo of my appβ β it reads your codebase, learns what the app does, writes the story, and presents it feature by feature like it's on stage.
Zero npm dependencies. Pure Node 22+ (built-in fetch + WebSocket), one small
Swift file compiled on first run.
macOS only for now. Linux/Windows drivers are welcome β see Contributing.
Quick start
git clone https://github.com/jayadevrana/demo-director
cd demo-director
npm run check # doctor: builds the cursor helper, verifies ffmpeg/Chrome
Requirements:
- macOS, Node β₯ 22, Xcode Command Line Tools (
xcode-select --install) ffmpeg(narration assembly + muxing):brew install ffmpeg- Permissions for your terminal / Claude app in System Settings β Privacy & Security: Screen Recording and Accessibility
- Optional but recommended: the Voicebox app running locally
(server Online, default
http://127.0.0.1:17493, override withVOICEBOX_URL) for natural voice-clone narration β without it, narration falls back to macOSsay
Register with Claude Code
claude mcp add demo-director -- node /absolute/path/to/demo-director/server.js
Or in .mcp.json:
{
"mcpServers": {
"demo-director": {
"command": "node",
"args": ["/absolute/path/to/demo-director/server.js"]
}
}
}
Install the presenter skill
cp -r skills/demo-director ~/.claude/skills/
The skill is what turns raw tools into a performance: product research β beat sheet β rehearsal β recording β final cut.
Try it
Ask Claude:
Record a 60-second demo of my app at http://localhost:3000. Present it like an Apple keynote β feature by feature, with narration.
What happens:
- Claude reads your app's code and explores it in a throwaway Chrome profile.
- It writes a beat sheet β hook, 3β6 feature beats with narration lines, finale (see examples/beat-sheet.example.json).
- It rehearses every selector and action off camera.
start_recordingβ for each beat: glide the cursor to the real element, click, type at human speed, scroll at reading pace, spotlight the moment. βstop_recording.compose_final_videoβ every beat's narration is rendered in your chosen Voicebox voice (humanized: varied takes, pauses, breaths) and muxed over the recording. The deliverable is a finished MP4 with voiceover.
Tools
| Tool | What it does |
|---|---|
check_setup |
Doctor: helper build, ffmpeg, Chrome, permission notes |
start_recording / stop_recording / recording_status |
Native screen capture (full / display / region) |
screen_info |
Displays + current mouse position |
mouse_move |
Smooth eased glide of the real cursor (600β1000 ms looks human) |
mouse_click / mouse_drag |
Clicks (left/right/double) and smooth drags |
scroll |
OS-level momentum scroll at the cursor |
type_text |
Human-rhythm typing (jittered timing, slower after punctuation) |
press_key |
Named keys with cmd/shift/alt/ctrl modifiers |
pause |
Presenter beats between actions |
chrome_launch / chrome_connect |
Chrome with DevTools control + a clean demo profile |
chrome_navigate |
Navigate and wait for load |
chrome_locate |
CSS selector β screen coordinates for real-cursor interaction |
chrome_scroll |
Cinematic eased in-page scrolling to a selector or Y |
chrome_highlight / chrome_clear_highlight |
Spotlight / pulse emphasis |
chrome_eval / chrome_page_text |
Page scripting and reading |
narrate |
Live voiceover via say (blocks β natural pacing) |
voicebox_status |
Voicebox health + installed voice-clone profiles |
render_narration |
Narration to file with exact duration β Voicebox (natural, humanized) or say fallback |
mux_narration |
Lay rendered audio over the video at precise offsets (ffmpeg) |
compose_final_video |
One call: beats in β finished narrated .mp4 out |
How it works
Claude (MCP client)
β stdio JSON-RPC
βΌ
server.js ββ src/rpc.js minimal MCP implementation, no SDK
ββ src/recorder.js screencapture -v (SIGINT to stop)
ββ src/mouse.js ββΆ native/cursor Swift CGEvent driver (compiled on first use
β to ~/.demo-director/bin β smooth bezier moves,
β pixel momentum scroll, unicode typing)
ββ src/chrome.js CDP over built-in WebSocket; dedicated profile in
β ~/.demo-director/chrome-profile
ββ src/narrate.js say + ffmpeg adelay/amix/loudnorm + compose_final_video
ββ src/voicebox.js Voicebox REST client: per-sentence generation with
drifting seeds, jittered pauses, synthesized breaths,
click-free joins, -16 LUFS master
The trick that makes demos feel human: the agent asks Chrome where an element is on
the physical screen (chrome_locate accounts for window position and browser chrome),
then drives the real macOS cursor to it. Viewers see an actual hand at work, not
DOM events firing invisibly.
Troubleshooting
screencapture exited immediatelyβ grant Screen Recording to your terminal / Claude app, then restart it.- Cursor doesn't move / clicks ignored β grant Accessibility permission.
chrome_locateclicks land off-target β set Chrome page zoom to 100 % (β0) and don't move the window mid-demo; re-chrome_locateafter any scroll.- Node < 22 β upgrade; the server needs the built-in
WebSocketclient. - Recording is black / clicks do nothing mid-shoot β the display went to sleep.
Keep it awake for long takes by driving under
caffeinate -dims β¦. - Clicks land on the wrong window β the app window must be the frontmost
application, not just visible; a real click hits whatever owns that pixel. Raise
the target window first (
osascript -e 'tell application "Google Chrome" to activate'). - Long recording never saved β fixed:
stop_recordingnow waits up to 3 min forscreencaptureto finalize a multi-minute file before giving up. - Narration missing from the video β by design: live
sayaudio isn't captured. Userender_narration+mux_narrationfor the final cut.
Contributing
PRs welcome β especially:
- Linux driver (
xdotool/ydotool+wf-recorder/ffmpeg x11grab) - Windows driver (SendInput + Windows.Graphics.Capture)
- Webcam picture-in-picture, click-ripple overlays, auto-zoom on click
- Firefox/Safari support (WebDriver BiDi)
License
Author
Built by Jayadev Rana β @bluealgocapital Β· YouTube Β· GitHub
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.